From: Martin Quinson Date: Tue, 14 Feb 2017 13:06:22 +0000 (+0100) Subject: sonar: disable rule cpp:PPStringifyAndPastingUsage X-Git-Tag: v3_15~384^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/43d4b61ce56d1a977b1a8f978688a2aa53870747?hp=--cc;ds=sidebyside sonar: disable rule cpp:PPStringifyAndPastingUsage --- 43d4b61ce56d1a977b1a8f978688a2aa53870747 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)