You should be able to use //NOSONAR (which will disable all rules for that line of code). It’s not possible to get more specific with in-code issue suppression for Go.
If you mark an issue as False-Positive/Won’t Fix in the SonarQube UI, this will also suppress the issue (including if you’re using SonarLint in Connected Mode).
Thanks for the answer. It seems strange that such powerful tool like SonarQube cannot allow to disable rules at code line level.
What about slang. I have found the following
How to disable rules through slang for go language?
Thanks
Walter