From 5c81bafcf11230047c2d8fa2d402efa457019a55 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Fri, 24 Feb 2023 14:48:59 +0100 Subject: [PATCH] Update sonar-project.properties [ci-skip] --- sonar-project.properties | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.20.1