From 484d2e362212c0193ab0e4410d9bf779dcd8fdc1 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Thu, 31 Jan 2019 21:35:01 +0100 Subject: [PATCH] Ignore Catch2 in sonar --- sonar-project.properties | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sonar-project.properties b/sonar-project.properties index 3ef152be61..4a768aa90b 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -99,13 +99,14 @@ sonar.issue.ignore.multicriteria.f1.ruleKey=cpp:S3630 sonar.issue.ignore.multicriteria.f1.resourceKey=src/smpi/bindings/smpi_f77*.cpp # Exclude some files from the analysis: -# - our unit tests +# - our unit tests # - the tests that we borrowed elsewhere (MPICH and ISP) # - 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 # - RngStream, that is included in SimGrid -sonar.exclusions=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/*,src/xbt/RngStream.c,include/xbt/RngStream.h +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/*,src/xbt/RngStream.c,include/xbt/RngStream.h # Exclude our examples from the duplication detection. # Examples are expected to be somehow repetitive -- 2.20.1