Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
It is now possible to read/write the RNG state in a file.
[simgrid.git] / sonar-project.properties
index 9669eb2..dc7f58b 100644 (file)
@@ -4,7 +4,7 @@
 sonar.organization=simgrid
 sonar.projectKey=simgrid_simgrid
 sonar.projectName=SimGrid
-sonar.projectVersion=3.23.1
+sonar.projectVersion=3.25.1
 
 sonar.links.homepage=https://simgrid.org
 sonar.links.issue=https://framagit.org/simgrid/simgrid/issues
@@ -14,31 +14,31 @@ sonar.sources=src,examples,include,teshsuite
 
 
 # Disable some rules on some files
-sonar.issue.ignore.multicriteria=j1,j2,j3,j4,j5,jni1,jni2,c1,c2a,c2b,c3,c4a,c4b,c5a,c5b,c6a,c6b,c7,c8,c9,c10,f1,p1,s1,s2,s3,s4
+sonar.issue.ignore.multicriteria=j1,j2,j3,j4,j5,jni1,jni2,c1,c2a,c2b,c3,c4a,c4b,c5a,c5b,c6a,c6b,c7,c8a,c8b,c9,c10a,c10b,c10c,f1,p1,s1,s2,s3,s4,s5
 
-# The Object.finalize() method should not be overriden
+# The Object.finalize() method should not be overridden
 # But we need to clean the native memory with JNI
-sonar.issue.ignore.multicriteria.j1.ruleKey=squid:ObjectFinalizeOverridenCheck
+sonar.issue.ignore.multicriteria.j1.ruleKey=java:S1113
 sonar.issue.ignore.multicriteria.j1.resourceKey=**/*.java
 
 # Throwable.printStackTrace(...) should not be called
-# But we don't have no better mechanism, and our Java apps are not rocket science
-sonar.issue.ignore.multicriteria.j2.ruleKey=squid:S1148
+# But we don't have no better mechanism, and our Java apps are not rocket science
+sonar.issue.ignore.multicriteria.j2.ruleKey=java:S1148
 sonar.issue.ignore.multicriteria.j2.resourceKey=**/*.java
 
 # Using command line arguments is security-sensitive
-# But the authors of the applications using our library will be their only users, so there is no security concern
-sonar.issue.ignore.multicriteria.j3.ruleKey=squid:S4823
+# But the authors of the applications using our library will be their only users, so there is no security concern
+sonar.issue.ignore.multicriteria.j3.ruleKey=java:S4823
 sonar.issue.ignore.multicriteria.j3.resourceKey=**/*.java
 
 # Standard outputs should not be used directly to log anything
-# But this file is used before SimGrid is initialized
-sonar.issue.ignore.multicriteria.j4.ruleKey=squid:S106
+# But this file is used before SimGrid is initialized
+sonar.issue.ignore.multicriteria.j4.ruleKey=java:S106
 sonar.issue.ignore.multicriteria.j4.resourceKey=src/bindings/java/org/simgrid/NativeLib.java
 
 # Deprecated code should be removed
 # We do have a process to remove deprecated code
-sonar.issue.ignore.multicriteria.j5.ruleKey=squid:S1133
+sonar.issue.ignore.multicriteria.j5.ruleKey=java:S1133
 sonar.issue.ignore.multicriteria.j5.resourceKey=**/*.java
 
 # "reinterpret_cast" should not be used
@@ -51,7 +51,6 @@ sonar.issue.ignore.multicriteria.jni1.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
@@ -99,8 +98,10 @@ sonar.issue.ignore.multicriteria.c7.resourceKey=**/*.h
 
 # Deprecated code should be removed
 # We do have a process to remove deprecated code
-sonar.issue.ignore.multicriteria.c8.ruleKey=cpp:S1133
-sonar.issue.ignore.multicriteria.c8.resourceKey=**/*
+sonar.issue.ignore.multicriteria.c8a.ruleKey=c:S1133
+sonar.issue.ignore.multicriteria.c8a.resourceKey=**/*
+sonar.issue.ignore.multicriteria.c8b.ruleKey=cpp:S1133
+sonar.issue.ignore.multicriteria.c8b.resourceKey=**/*
 
 # Lambda return types should be implicit
 # I don't see the point in general, plus we mostly use them when forced, to disambiguate
@@ -108,9 +109,13 @@ sonar.issue.ignore.multicriteria.c9.ruleKey=cpp:S3574
 sonar.issue.ignore.multicriteria.c9.resourceKey=**/*
 
 # Standard outputs should not be used directly to log anything
-# Irrelevant for parsing examples in teshsuite/simdag
-sonar.issue.ignore.multicriteria.c10.ruleKey=cpp:S106
-sonar.issue.ignore.multicriteria.c10.resourceKey=teshsuite/simdag/**/*.cpp
+# Irrelevant for parsing examples
+sonar.issue.ignore.multicriteria.c10a.ruleKey=cpp:S106
+sonar.issue.ignore.multicriteria.c10a.resourceKey=teshsuite/s4u/evaluate-*-time/*.cpp
+sonar.issue.ignore.multicriteria.c10b.ruleKey=cpp:S106
+sonar.issue.ignore.multicriteria.c10b.resourceKey=teshsuite/s4u/is-router/*.cpp
+sonar.issue.ignore.multicriteria.c10c.ruleKey=cpp:S106
+sonar.issue.ignore.multicriteria.c10c.resourceKey=teshsuite/simdag/flatifier/*.cpp
 
 # "reinterpret_cast" should not be used
 # But we need this to interface C and Fortran
@@ -138,6 +143,11 @@ sonar.issue.ignore.multicriteria.s3.resourceKey=src/smpi/**/*.cpp
 sonar.issue.ignore.multicriteria.s4.ruleKey=cpp:S859
 sonar.issue.ignore.multicriteria.s4.resourceKey=src/smpi/**/*.cpp
 
+# Pointer and reference parameters should be "const" if the corresponding object is not modified
+# AFAICT, the "constness" is required by the MPI standard and cannot be fixed.
+sonar.issue.ignore.multicriteria.s5.ruleKey=cpp:S995
+sonar.issue.ignore.multicriteria.s5.resourceKey=src/smpi/bindings/*.cpp
+
 # Exclude some files from the analysis:
 #  - our unit tests
 #  - the tests that we borrowed elsewhere (MPICH and ISP)
@@ -145,8 +155,8 @@ sonar.issue.ignore.multicriteria.s4.resourceKey=src/smpi/**/*.cpp
 #  - Collectives that we borrowed elsewhere (mpich, openMPI and other implems)
 #  - the NAS, that are included in our examples
 #  - The Catch2 library, that is included in our unit tests
-#  - RngStream, that is included in SimGrid
-sonar.exclusions=src/include/catch.hpp,src/*_unit.c*,teshsuite/smpi/mpich3-test/**,teshsuite/smpi/isp/**,**/*_dtd.c,**/*_dtd.h,**/*yy.c,src/xbt/automaton/parserPromela.tab.*,src/smpi/colls/**/*,examples/smpi/NAS/*,examples/smpi/gemm/gemm.c,src/xbt/RngStream.c,include/xbt/RngStream.h
+#  - MSG along with its examples and teshsuite, and the simdag examples
+sonar.exclusions=src/include/catch.hpp,src/*_unit.c*,teshsuite/smpi/mpich3-test/**,teshsuite/smpi/isp/**,**/*_dtd.c,**/*_dtd.h,**/*yy.c,src/xbt/automaton/parserPromela.tab.*,src/smpi/colls/**/*,examples/smpi/NAS/*,examples/smpi/gemm/gemm.c,src/msg/**,include/msg/**,examples/deprecated/**,teshsuite/msg/**
 
 # Exclude our examples from the duplication detection.
 # Examples are expected to be somehow repetitive
@@ -166,12 +176,13 @@ sonar.cfamily.gcov.reportsPath=Testing/CoverageInfo
 #   - XML files
 #   - Python files used to generate either simcalls or deployment files
 #   - Any java source code (it's deprecated now)
-sonar.coverage.exclusions=teshsuite/smpi/isp/**,teshsuite/smpi/mpich3-test/**,**/*.xml,src/simix/simcalls.py,**/generate.py,**/*.java,src/bindings/java/**
+#   - MSG (deprecated too)
+sonar.coverage.exclusions=teshsuite/smpi/isp/**,teshsuite/smpi/mpich3-test/**,**/*.xml,src/simix/simcalls.py,**/generate.py,**/*.java,src/bindings/java/**,src/msg/**,include/msg/**,examples/deprecated/**,teshsuite/msg/**
 # Encoding of the source files
 sonar.sourceEncoding=UTF-8
 
 # Version of the used prog languages
-sonar.java.source=7
+sonar.java.source=8
 sonar.java.binaries=CMakeFiles/simgrid-java_jar.dir,examples/deprecated/java
 
 # Don't talk to me: travis don't like your verbosity
@@ -182,6 +193,8 @@ sonar.java.binaries=CMakeFiles/simgrid-java_jar.dir,examples/deprecated/java
 #sonar.java.binaries
 #sonar.cfamily.build-wrapper-output
 #sonar.cfamily.gcov.reportsPath
-#sonar.python.coverage.reportPath
+#sonar.python.coverage.reportPaths
 #sonar.coverage.jacoco.xmlReportPaths
 #sonar.cfamily.threads
+#sonar.cfamily.cache.enabled
+#sonar.cfamily.cache.path