SONARJAVA-4415 Add parameter to ignore particular annotations in S1068
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)
Review is continued in PR 4637 (mirrors this PR to trigger CI and add further commits).
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!