X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6fbcdfade89b3812c24152c86f8aa3be510df7f2..34b1612aaf4fb4375dc39f42941027e56b80aafa:/sonar-project.properties diff --git a/sonar-project.properties b/sonar-project.properties index 41b560aaa2..420769637d 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -14,10 +14,10 @@ sonar.sources=src,examples,include,teshsuite # Disable some rules on some files -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 +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,cxx17g,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 @@ -115,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 @@ -148,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 @@ -176,8 +177,7 @@ 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 -# - MSG (deprecated too) -sonar.coverage.exclusions=teshsuite/smpi/mpich3-test/**,teshsuite/smpi/MBI/**,examples/smpi/mc/**,**/*.xml,**/generate.py,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 @@ -187,11 +187,7 @@ 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