Skip to content

Commit

Permalink
Add SonarQube configuration to ignore specific issues for library fun…
Browse files Browse the repository at this point in the history
…ctions and access modifiers.
  • Loading branch information
przemek83 committed Jan 13, 2025
1 parent f2dd80d commit 62d67d3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,13 @@ sonar.tests=tests
sonar.sourceEncoding=UTF-8

sonar.cfamily.threads=4

sonar.issue.ignore.multicriteria=e1,e2

# Switch off detection of dead functions/method in library. Rule S1144 still applied.
sonar.issue.ignore.multicriteria.e1.ruleKey=cpp:S5536
sonar.issue.ignore.multicriteria.e1.resourceKey=include/**/*

# Switch off checking of public, protected, private ordering as Q_OBJECT raises false positives.
sonar.issue.ignore.multicriteria.e2.ruleKey=cpp:S1773
sonar.issue.ignore.multicriteria.e2.resourceKey=include/**/*

0 comments on commit 62d67d3

Please sign in to comment.