X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f8e7b4cec7149a685b0a4a58ba56088613124377..6fbcdfade89b3812c24152c86f8aa3be510df7f2:/sonar-project.properties diff --git a/sonar-project.properties b/sonar-project.properties index 7cb6fdae0e..41b560aaa2 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -14,37 +14,7 @@ sonar.sources=src,examples,include,teshsuite # Disable some rules on some files -sonar.issue.ignore.multicriteria=j1,j2,j3,j4,jni1,jni2,c1,c2a,c2b,c3,c5a,c5b,c6a,c6b,c7,c8,c9,c10a,c10b,c10c,cex1a,cex1b,cex2a,cex2b,cex3,cex4,cxx17a,cxx17b,cxx17c,cxx17d,cxx17e,cxx17f,f1,p1,s1,s2,s3,s4,s5 - -# The Object.finalize() method should not be overridden -# But we need to clean the native memory with JNI -sonar.issue.ignore.multicriteria.j1.ruleKey=java:S1113 -sonar.issue.ignore.multicriteria.j1.resourceKey=**/*.java - -# Throwable.printStackTrace(...) should not be called -# But we don't have no better mechanism, and our Java apps are not rocket science -sonar.issue.ignore.multicriteria.j2.ruleKey=java:S1148 -sonar.issue.ignore.multicriteria.j2.resourceKey=**/*.java - -# Using command line arguments is security-sensitive -# But the authors of the applications using our library will be their only users, so there is no security concern -sonar.issue.ignore.multicriteria.j3.ruleKey=java:S4823 -sonar.issue.ignore.multicriteria.j3.resourceKey=**/*.java - -# Standard outputs should not be used directly to log anything -# But this file is used before SimGrid is initialized -sonar.issue.ignore.multicriteria.j4.ruleKey=java:S106 -sonar.issue.ignore.multicriteria.j4.resourceKey=src/bindings/java/org/simgrid/NativeLib.java - -# "reinterpret_cast" should not be used -# But this is exactly intended to store a pointer into a long -- what we do here -sonar.issue.ignore.multicriteria.jni1.ruleKey=cpp:S3630 -sonar.issue.ignore.multicriteria.jni1.resourceKey=src/bindings/java/*.cpp - -# Unused function parameters should be removed -# But JNI mandates these parameters -sonar.issue.ignore.multicriteria.jni2.ruleKey=cpp:S1172 -sonar.issue.ignore.multicriteria.jni2.resourceKey=src/bindings/java/*.cpp +sonar.issue.ignore.multicriteria=c1,c2a,c2b,c3,c5a,c5b,c6a,c6b,c7,c8,c9,c10a,c10b,c10c,cex1a,cex1b,cex2a,cex2b,cex3,cex4,cxx17a,cxx17b,cxx17c,cxx17d,cxx17e,cxx17f,f1,p1,s1,s2,s3,s4,s5 # Pointers should not be cast to integral types # But we need that for jMSG, smpi and other places @@ -206,17 +176,13 @@ sonar.cfamily.gcov.reportsPath=Testing/CoverageInfo # - examples in smpi/mc (coverage doesn't work with model checker) # - XML files # - Python files used to generate either simcalls or deployment files -# - Any java source code (it's deprecated now) # - MSG (deprecated too) -sonar.coverage.exclusions=teshsuite/smpi/mpich3-test/**,teshsuite/smpi/MBI/**,examples/smpi/mc/**,**/*.xml,**/generate.py,**/*.java,src/bindings/java/**,src/msg/**,include/msg/**,examples/deprecated/**,teshsuite/msg/** +sonar.coverage.exclusions=teshsuite/smpi/mpich3-test/**,teshsuite/smpi/MBI/**,examples/smpi/mc/**,**/*.xml,**/generate.py,src/msg/**,include/msg/**,examples/deprecated/**,teshsuite/msg/** # Encoding of the source files sonar.sourceEncoding=UTF-8 # Version of the used prog languages -sonar.java.source=8 -sonar.java.binaries=CMakeFiles/simgrid-java_jar.dir,examples/deprecated/java -sonar.java.libraries= sonar.python.version=3 ### NOTE: the following properties are overridden by Jenkins configuration