Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
sonar: allow 'Pointers should not be cast to integral types' everywhere in source
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 25 Feb 2017 15:12:49 +0000 (16:12 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 27 Feb 2017 20:11:30 +0000 (21:11 +0100)
sonar-project.properties

index f3b3907..c5addf1 100644 (file)
@@ -13,7 +13,7 @@ sonar.sources=src,examples,include,teshsuite
 
 
 # Disable some rules on some files
-sonar.issue.ignore.multicriteria=j1,jni1,jni2,jni3,c1,c2
+sonar.issue.ignore.multicriteria=j1,jni1,jni2,c1,c2,c3
 
 # The Object.finalize() method should not be overriden
 # But we need to clean the native memory with JNI
@@ -25,25 +25,25 @@ sonar.issue.ignore.multicriteria.j1.resourceKey=**/*.java
 sonar.issue.ignore.multicriteria.jni1.ruleKey=cpp:S3630
 sonar.issue.ignore.multicriteria.jni1.resourceKey=src/bindings/java/*.cpp
 
-#¬†Pointers should not be cast to integral types
-# But we need that for jMSG
-sonar.issue.ignore.multicriteria.jni2.ruleKey=cpp:S1767
-sonar.issue.ignore.multicriteria.jni2.resourceKey=src/bindings/java/*.cpp
-
 # Unused function parameters should be removed
 # But JNI mandates these parameters
-sonar.issue.ignore.multicriteria.jni3.ruleKey=cpp:S1172
-sonar.issue.ignore.multicriteria.jni3.resourceKey=src/bindings/java/*.cpp
+sonar.issue.ignore.multicriteria.jni2.ruleKey=cpp:S1172
+sonar.issue.ignore.multicriteria.jni2.resourceKey=src/bindings/java/*.cpp
+
+#¬†Pointers should not be cast to integral types
+# But we need that for jMSG, smpi and other places
+sonar.issue.ignore.multicriteria.c1.ruleKey=cpp:S1767
+sonar.issue.ignore.multicriteria.c1.resourceKey=**/*.cpp
 
 # Preprocessor operators "#" and "##" should not be used
 # This poses portability issues, but we check our usage on a large panel of architectures on purpose
-sonar.issue.ignore.multicriteria.c1.ruleKey=cpp:PPStringifyAndPastingUsage
-sonar.issue.ignore.multicriteria.c1.resourceKey=**/*.cpp
+sonar.issue.ignore.multicriteria.c2.ruleKey=cpp:PPStringifyAndPastingUsage
+sonar.issue.ignore.multicriteria.c2.resourceKey=**/*.cpp
 
 # Macro names should comply with a naming convention
 # But the macros in this file are named after the MPI standard
-sonar.issue.ignore.multicriteria.c2.ruleKey=c:PPMacroName
-sonar.issue.ignore.multicriteria.c2.resourceKey=include/smpi/smpi_extended_traces.h
+sonar.issue.ignore.multicriteria.c3.ruleKey=c:PPMacroName
+sonar.issue.ignore.multicriteria.c3.resourceKey=include/smpi/smpi_extended_traces.h