From 62d67d35f7181709b3569f0c6ee8346544cb78c5 Mon Sep 17 00:00:00 2001 From: przemek83 <4788832+przemek83@users.noreply.github.com> Date: Mon, 13 Jan 2025 13:29:43 +0100 Subject: [PATCH] Add SonarQube configuration to ignore specific issues for library functions and access modifiers. --- sonar-project.properties | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sonar-project.properties b/sonar-project.properties index 5c88b50..945b93a 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -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/**/*