We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description:
Right now, the scan tool allows skipping specific rules when performing a scan. These apply to the entire scan.
E.g.,
bal scan --exclude-rules="ballerina:101, ballerina/io:201"
But, it is not possible to suppress analysis only at specific lines of code.
We may most probably need an annotation for this. Also see https://stackoverflow.com/questions/10971968/turning-sonar-off-for-certain-code
The text was updated successfully, but these errors were encountered:
Whichever method we choose needs to
Some points to consider with annotations
scan
Sorry, something went wrong.
This doc also specifies how to do this in Sonarqube for different usecases. https://docs.sonarsource.com/sonarqube/latest/project-administration/analysis-scope/#excluding-specific-rules-from-specific-files
One other option for this other than annotations is having an exclusion file similar to the spotbugs-exclude.xml.
spotbugs-exclude.xml
Created a design document on this [Design][Scan tool] Suppressing Analysis in Specific Places. @sameerajayasoma it would be great if you can review and provide feedback.
No branches or pull requests
Description:
Right now, the scan tool allows skipping specific rules when performing a scan. These apply to the entire scan.
E.g.,
bal scan --exclude-rules="ballerina:101, ballerina/io:201"
But, it is not possible to suppress analysis only at specific lines of code.
We may most probably need an annotation for this. Also see https://stackoverflow.com/questions/10971968/turning-sonar-off-for-certain-code
The text was updated successfully, but these errors were encountered: