Reputation: 967
I am developing a Java application and Using SonarLint to test the code quality. Sonar shows the error : Take the required action to fix the issue indicated by this comment.
For below line of code:
// FIXME: temp here until we drop tomee or remove all exceptions from ejb <-> non-ejb path.
Is there any way I can suppress the warning in SonarLint ?
Upvotes: 2
Views: 1789
Reputation: 965
As this behaviour has not changed in 7 years, the trick might be to use a tag that Sonar has not heard of:
Upvotes: 1
Reputation: 2938
You can use the connected mode to bind your project in the IDE to a project in SonarQube. SonarLint will use the same code analyzers and rules as the ones in SonarQube.
In SonarQube, it's possible to change the quality profile assigned to projects and in this way, to enable or disable rules.
More information: https://www.sonarlint.org/intellij/howto.html
Upvotes: 5
Reputation: 202
I checked several places and tried many things to suppress the warnings, but turns out that //FIXME
are considered as major warnings
in Sonar
. You need to take care of them by removing the tag and fixing the issue which was mentioned in the tag (by the developer of tag).
Or you can simply remove the tag if that issue is not needed to be fixed or that is itself not an issue now.
Upvotes: 2