Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
sonar: these checks are just wrong in our context
authorMartin Quinson <martin.quinson@loria.fr>
Thu, 26 Jan 2017 23:40:09 +0000 (00:40 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 26 Jan 2017 23:40:09 +0000 (00:40 +0100)
sonar-project.properties

index eedccd8..8e42539 100644 (file)
@@ -8,13 +8,20 @@ sonar.projectVersion=3.13.91
 sonar.links.homepage=http://simgrid.org
 sonar.links.issue=https://github.com/simgrid/simgrid/issues
 sonar.links.scm=https://github.com/simgrid/simgrid.git
-
-#¬†Pointers should not be cast to integral types -- we need that for jMSG
-sonar.exclusions=cpp:S1767
-
 # Comma-separated paths to directories with sources (required)
 sonar.sources=src,examples,include,teshsuite
 
+# Disable some rules on some files
+sonar.issue.ignore.multicriteria=j1,c1
+
+# The Object.finalize() method should not be overriden -- we need to clean the native memory
+sonar.issue.ignore.multicriteria.j1.ruleKey=squid:ObjectFinalizeOverridenCheck
+sonar.issue.ignore.multicriteria.j1.resourceKey=**/*.java
+
+#¬†Pointers should not be cast to integral types -- we need that for jMSG
+sonar.issue.ignore.multicriteria.c1.ruleKey=cpp:S1767
+sonar.issue.ignore.multicriteria.c1.resourceKey=**/*.cpp
+
 # Exclude some files from the analysis:
 #  - our unit tests 
 #  - the tests that we borrowed elsewhere (MPICH and ISP)