xxxxxxxxxx
You need to add this line in coc-settings.json file
"diagnostic.checkCurrentLine": true
OBS:
If you don't have the file created yet execute the following command to create the file:
:CocConfig
Then add the following lines of code:
{
"diagnostic.checkCurrentLine": true
}