From: Frederic Suter Date: Tue, 14 Feb 2017 13:08:58 +0000 (+0100) Subject: Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid X-Git-Tag: v3_15~384 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b388a4b552ef42185023f48bb4bc865c99247724?hp=056d48c9fa3d5fa5afd2be695f54edbc5fd5434d Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid --- diff --git a/sonar-project.properties b/sonar-project.properties index 3e5b3d8edf..62bb83dd33 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -11,8 +11,9 @@ sonar.links.scm=https://github.com/simgrid/simgrid.git # Comma-separated paths to directories with sources (required) sonar.sources=src,examples,include,teshsuite + # Disable some rules on some files -sonar.issue.ignore.multicriteria=j1,c1 +sonar.issue.ignore.multicriteria=j1,c1,c2 # The Object.finalize() method should not be overriden -- we need to clean the native memory sonar.issue.ignore.multicriteria.j1.ruleKey=squid:ObjectFinalizeOverridenCheck @@ -22,6 +23,12 @@ sonar.issue.ignore.multicriteria.j1.resourceKey=**/*.java sonar.issue.ignore.multicriteria.c1.ruleKey=cpp:S1767 sonar.issue.ignore.multicriteria.c1.resourceKey=**/*.cpp +# Preprocessor operators "#" and "##" should not be used +# This poses portability issues, but we check our usage on a large panel of architectures on purpose +sonar.issue.ignore.multicriteria.c2.ruleKey=cpp:PPStringifyAndPastingUsage +sonar.issue.ignore.multicriteria.c2.resourceKey=**/*.cpp + + # Exclude some files from the analysis: # - our unit tests # - the tests that we borrowed elsewhere (MPICH and ISP)