I am trying to exclude a specific rule from a file in sonarlint, I have multiple java automation projects open in eclipse, and I am wondering if my "Value" is correct on my analyzed property that I have set. (LN_LexisConveyOnline is the name of the project) I have implemented the below, and nothing seems to change. Thanks
CodePudding user response:
You can do right clic over rule, and clic in Exclude rule. This, in the browser of rules in Eclipse IDE
CodePudding user response:
If this is a Java file, you might want to opt for @SuppressWarnings("java:S100")
instead or //NOSONAR
.
Note that SonarLint (the Eclipse plugin) and Sonar (the server) may not share the same key for the same rule. I had at least the problem with issue prefixed by java:
and squid:
(I presumed this was the old prefix).