From: Arnaud Giersch Date: Fri, 24 Feb 2023 13:48:59 +0000 (+0100) Subject: Update sonar-project.properties [ci-skip] X-Git-Tag: v3.34~444 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5c81bafcf11230047c2d8fa2d402efa457019a55 Update sonar-project.properties [ci-skip] --- diff --git a/sonar-project.properties b/sonar-project.properties index d947564c02..c0e695c485 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -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,14 +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 -sonar.exclusions=src/3rd-party/*,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 +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