sonar-java icon indicating copy to clipboard operation
sonar-java copied to clipboard

SONARJAVA-4415 Add parameter to ignore particular annotations in S1068

Open bvfalcon opened this issue 2 years ago • 1 comments

Parameter ignoreAnnotations (default value "") can contain a list of annotation names (example: "javax.inject.Inject,jakarta.inject.Inject") which would be ignored by Analyzer. In other words, annotations are listed in ignoreAnnotations have no impact on analysis process. In other case they cause false-negative result of rule evaluation

Please ensure your pull request adheres to the following guidelines:

  • [x] Use the following formatting style: SonarSource/sonar-developer-toolset
  • [x] Unit tests are passing and you provided a unit test for your fix
  • [x] ITs should pass : To run ITs locally, checkout the README of the project.
  • [x] If there is a Jira ticket available, please make your commits and pull request start with the ticket number (SONARJAVA-XXXX)

bvfalcon avatar Jan 30 '23 16:01 bvfalcon

Review is continued in PR 4637 (mirrors this PR to trigger CI and add further commits).

kaufco avatar Jan 19 '24 15:01 kaufco

Hi @bvfalcon , PR 4637 is merged into master, so I'm closing this one as well. The ignoreAnnotations parameter will be included in our next SonarJava release.

Thanks for your contribution!

kaufco avatar Mar 20 '24 14:03 kaufco