From 37f63070893c4686f44c705c9e926cdb6c2a0eed Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 13 May 2019 10:06:48 +0200 Subject: [PATCH] sonar: silence a rule on python code --- sonar-project.properties | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sonar-project.properties b/sonar-project.properties index b955658936..54b6f87e62 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -13,7 +13,7 @@ sonar.sources=src,examples,include,teshsuite # Disable some rules on some files -sonar.issue.ignore.multicriteria=j1,j2,j3,jni1,jni2,c1,c2a,c2b,c3,c4a,c4b,c5a,c5b,c6a,c6b,c7,c8,c9,c10,f1 +sonar.issue.ignore.multicriteria=j1,j2,j3,jni1,jni2,c1,c2a,c2b,c3,c4a,c4b,c5a,c5b,c6a,c6b,c7,c8,c9,c10,f1,p1 # The Object.finalize() method should not be overriden # But we need to clean the native memory with JNI @@ -106,6 +106,11 @@ sonar.issue.ignore.multicriteria.c10.resourceKey=teshsuite/simdag/**/*.cpp sonar.issue.ignore.multicriteria.f1.ruleKey=cpp:S3630 sonar.issue.ignore.multicriteria.f1.resourceKey=src/smpi/bindings/smpi_f77*.cpp +# In Python, Using command line arguments is security-sensitive +# But we are cautionous with it +sonar.issue.ignore.multicriteria.p1.ruleKey=python:S4823 +sonar.issue.ignore.multicriteria.p1.resourceKey=**/*.py + # Exclude some files from the analysis: # - our unit tests # - the tests that we borrowed elsewhere (MPICH and ISP) -- 2.20.1