From: Martin Quinson Date: Thu, 26 Jan 2017 23:40:09 +0000 (+0100) Subject: sonar: these checks are just wrong in our context X-Git-Tag: v3_15~511 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ec3b42ed1e3bd862d4786b3154409bea8b7448e0 sonar: these checks are just wrong in our context --- diff --git a/sonar-project.properties b/sonar-project.properties index eedccd85d2..8e42539aba 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -8,13 +8,20 @@ sonar.projectVersion=3.13.91 sonar.links.homepage=http://simgrid.org sonar.links.issue=https://github.com/simgrid/simgrid/issues sonar.links.scm=https://github.com/simgrid/simgrid.git - -# Pointers should not be cast to integral types -- we need that for jMSG -sonar.exclusions=cpp:S1767 - # 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 + +# The Object.finalize() method should not be overriden -- we need to clean the native memory +sonar.issue.ignore.multicriteria.j1.ruleKey=squid:ObjectFinalizeOverridenCheck +sonar.issue.ignore.multicriteria.j1.resourceKey=**/*.java + +# Pointers should not be cast to integral types -- we need that for jMSG +sonar.issue.ignore.multicriteria.c1.ruleKey=cpp:S1767 +sonar.issue.ignore.multicriteria.c1.resourceKey=**/*.cpp + # Exclude some files from the analysis: # - our unit tests # - the tests that we borrowed elsewhere (MPICH and ISP)