X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/35872ecf7e72f9438acce7808724745c98b77aba..968613a336f2fff832f9085e69b990e7371ca8e5:/sonar-project.properties diff --git a/sonar-project.properties b/sonar-project.properties index 7cb6fdae0e..c0e695c485 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -14,40 +14,10 @@ sonar.sources=src,examples,include,teshsuite # Disable some rules on some files -sonar.issue.ignore.multicriteria=j1,j2,j3,j4,jni1,jni2,c1,c2a,c2b,c3,c5a,c5b,c6a,c6b,c7,c8,c9,c10a,c10b,c10c,cex1a,cex1b,cex2a,cex2b,cex3,cex4,cxx17a,cxx17b,cxx17c,cxx17d,cxx17e,cxx17f,f1,p1,s1,s2,s3,s4,s5 - -# The Object.finalize() method should not be overridden -# But we need to clean the native memory with JNI -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=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=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=java:S106 -sonar.issue.ignore.multicriteria.j4.resourceKey=src/bindings/java/org/simgrid/NativeLib.java - -# "reinterpret_cast" should not be used -# But this is exactly intended to store a pointer into a long -- what we do here -sonar.issue.ignore.multicriteria.jni1.ruleKey=cpp:S3630 -sonar.issue.ignore.multicriteria.jni1.resourceKey=src/bindings/java/*.cpp - -# Unused function parameters should be removed -# But JNI mandates these parameters -sonar.issue.ignore.multicriteria.jni2.ruleKey=cpp:S1172 -sonar.issue.ignore.multicriteria.jni2.resourceKey=src/bindings/java/*.cpp +sonar.issue.ignore.multicriteria=c1,c2a,c2b,c3,c5a,c5b,c6a,c6b,c7,c8,c9,c10a,c10b,c10c,cex1a,cex1b,cex2a,cex2b,cex3,cex4,cxx17a,cxx17b,cxx17c,cxx17d,cxx17e,cxx17f,f1,p1,s1,s2,s3,s4,s5 # Pointers should not be cast to integral types -# But we need that for jMSG, smpi and other places +# But we need that for smpi and other places sonar.issue.ignore.multicriteria.c1.ruleKey=cpp:S1767 sonar.issue.ignore.multicriteria.c1.resourceKey=**/*.cpp @@ -145,6 +115,9 @@ sonar.issue.ignore.multicriteria.cxx17e.resourceKey=include/**/*.hpp # C++17: The "_t" and "_v" version of type traits should be used instead of "::type" and "::value" sonar.issue.ignore.multicriteria.cxx17f.ruleKey=cpp:S6020 sonar.issue.ignore.multicriteria.cxx17f.resourceKey=include/**/*.hpp +# C++17: "std::scoped_lock" should be used instead of "std::lock_guard" +sonar.issue.ignore.multicriteria.cxx17g.ruleKey=cpp:S5997 +sonar.issue.ignore.multicriteria.cxx17g.resourceKey=include/**/*.hpp # "reinterpret_cast" should not be used # But we need this to interface C and Fortran @@ -178,15 +151,13 @@ 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 MBI) # - Flex-generated files # - 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 # - The xxHash library, used by the MC -# - MSG along with its examples and teshsuite -sonar.exclusions=src/include/catch.hpp,src/include/xxhash.hpp,src/*_unit.c*,teshsuite/smpi/mpich3-test/**,teshsuite/smpi/MBI/**,**/*_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/** +sonar.exclusions=src/3rd-party/*,teshsuite/smpi/mpich3-test/**,teshsuite/smpi/MBI/**,**/*_dtd.c,**/*_dtd.h,**/*yy.c,src/xbt/automaton/parserPromela.tab.*,src/smpi/colls/**/*,examples/smpi/NAS/*,examples/smpi/gemm/gemm.c # Exclude our examples from the duplication detection. # Examples are expected to be somehow repetitive @@ -206,26 +177,17 @@ sonar.cfamily.gcov.reportsPath=Testing/CoverageInfo # - examples in smpi/mc (coverage doesn't work with model checker) # - XML files # - Python files used to generate either simcalls or deployment files -# - Any java source code (it's deprecated now) -# - MSG (deprecated too) -sonar.coverage.exclusions=teshsuite/smpi/mpich3-test/**,teshsuite/smpi/MBI/**,examples/smpi/mc/**,**/*.xml,**/generate.py,**/*.java,src/bindings/java/**,src/msg/**,include/msg/**,examples/deprecated/**,teshsuite/msg/** +sonar.coverage.exclusions=teshsuite/smpi/mpich3-test/**,teshsuite/smpi/MBI/**,examples/smpi/mc/**,**/*.xml,**/generate.py, # Encoding of the source files sonar.sourceEncoding=UTF-8 # Version of the used prog languages -sonar.java.source=8 -sonar.java.binaries=CMakeFiles/simgrid-java_jar.dir,examples/deprecated/java -sonar.java.libraries= sonar.python.version=3 ### NOTE: the following properties are overridden by Jenkins configuration ### -#sonar.java.binaries #sonar.cfamily.build-wrapper-output #sonar.cfamily.gcov.reportsPath #sonar.python.coverage.reportPaths -#sonar.coverage.jacoco.xmlReportPaths #sonar.cfamily.threads -#sonar.cfamily.cache.enabled -#sonar.cfamily.cache.path