Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
sonar: disable rule cpp:PPStringifyAndPastingUsage
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 14 Feb 2017 13:06:22 +0000 (14:06 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 14 Feb 2017 13:06:26 +0000 (14:06 +0100)
sonar-project.properties

index 3e5b3d8..62bb83d 100644 (file)
@@ -11,8 +11,9 @@ sonar.links.scm=https://github.com/simgrid/simgrid.git
 # Comma-separated paths to directories with sources (required)
 sonar.sources=src,examples,include,teshsuite
 
 # Comma-separated paths to directories with sources (required)
 sonar.sources=src,examples,include,teshsuite
 
+
 # Disable some rules on some files
 # Disable some rules on some files
-sonar.issue.ignore.multicriteria=j1,c1
+sonar.issue.ignore.multicriteria=j1,c1,c2
 
 # The Object.finalize() method should not be overriden -- we need to clean the native memory
 sonar.issue.ignore.multicriteria.j1.ruleKey=squid:ObjectFinalizeOverridenCheck
 
 # The Object.finalize() method should not be overriden -- we need to clean the native memory
 sonar.issue.ignore.multicriteria.j1.ruleKey=squid:ObjectFinalizeOverridenCheck
@@ -22,6 +23,12 @@ sonar.issue.ignore.multicriteria.j1.resourceKey=**/*.java
 sonar.issue.ignore.multicriteria.c1.ruleKey=cpp:S1767
 sonar.issue.ignore.multicriteria.c1.resourceKey=**/*.cpp
 
 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.c2.ruleKey=cpp:PPStringifyAndPastingUsage
+sonar.issue.ignore.multicriteria.c2.resourceKey=**/*.cpp
+
+
 # Exclude some files from the analysis:
 #  - our unit tests 
 #  - the tests that we borrowed elsewhere (MPICH and ISP)
 # Exclude some files from the analysis:
 #  - our unit tests 
 #  - the tests that we borrowed elsewhere (MPICH and ISP)