From db1a29a4d72273efaff5eb7d153826bb3bbfa20e Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Thu, 16 Mar 2017 17:00:02 +0100 Subject: [PATCH] Also ignore the 'avoid # and ##' rule in *.hpp This is really a pitty that I cannot do only one rule such as **/*.cpp,**/*.hpp Not speaking of something like **/*.[ch]pp that I'd write in the first place. The sonar regexp are sometimes disapointing to Unix users. --- sonar-project.properties | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sonar-project.properties b/sonar-project.properties index 345ba3ac74..945e47ac68 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -13,7 +13,7 @@ sonar.sources=src,examples,include,teshsuite # Disable some rules on some files -sonar.issue.ignore.multicriteria=j1,jni1,jni2,c1,c2,c3 +sonar.issue.ignore.multicriteria=j1,jni1,jni2,c1,c2a,c2b,c3 # The Object.finalize() method should not be overriden # But we need to clean the native memory with JNI @@ -37,8 +37,10 @@ sonar.issue.ignore.multicriteria.c1.resourceKey=**/*.cpp # Preprocessor operators "#" and "##" should not be used # This poses portability issues, but we test on a large panel of architectures on purpose -sonar.issue.ignore.multicriteria.c2.ruleKey=cpp:PPStringifyAndPastingUsage -sonar.issue.ignore.multicriteria.c2.resourceKey=**/*.cpp +sonar.issue.ignore.multicriteria.c2a.ruleKey=cpp:PPStringifyAndPastingUsage +sonar.issue.ignore.multicriteria.c2a.resourceKey=**/*.cpp +sonar.issue.ignore.multicriteria.c2b.ruleKey=cpp:PPStringifyAndPastingUsage +sonar.issue.ignore.multicriteria.c2b.resourceKey=**/*.hpp # Macro names should comply with a naming convention # But the macros in this file are named after the MPI standard -- 2.20.1