Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
sonar: disable rule cpp:PPStringifyAndPastingUsage
[simgrid.git] / sonar-project.properties
1 # This file is used to scan the project for issues automatically 
2 # Browse the result here: https://nemo.sonarqube.org/overview?id=simgrid
3
4 sonar.projectKey=simgrid
5 sonar.projectName=SimGrid
6 sonar.projectVersion=3.15
7
8 sonar.links.homepage=http://simgrid.org
9 sonar.links.issue=https://github.com/simgrid/simgrid/issues
10 sonar.links.scm=https://github.com/simgrid/simgrid.git
11 # Comma-separated paths to directories with sources (required)
12 sonar.sources=src,examples,include,teshsuite
13
14
15 # Disable some rules on some files
16 sonar.issue.ignore.multicriteria=j1,c1,c2
17
18 # The Object.finalize() method should not be overriden -- we need to clean the native memory
19 sonar.issue.ignore.multicriteria.j1.ruleKey=squid:ObjectFinalizeOverridenCheck
20 sonar.issue.ignore.multicriteria.j1.resourceKey=**/*.java
21
22 #¬†Pointers should not be cast to integral types -- we need that for jMSG
23 sonar.issue.ignore.multicriteria.c1.ruleKey=cpp:S1767
24 sonar.issue.ignore.multicriteria.c1.resourceKey=**/*.cpp
25
26 #¬†Preprocessor operators "#" and "##" should not be used
27 #¬†This poses portability issues, but we check our usage on a large panel of architectures on purpose
28 sonar.issue.ignore.multicriteria.c2.ruleKey=cpp:PPStringifyAndPastingUsage
29 sonar.issue.ignore.multicriteria.c2.resourceKey=**/*.cpp
30
31
32 # Exclude some files from the analysis:
33 #  - our unit tests 
34 #  - the tests that we borrowed elsewhere (MPICH and ISP)
35 #  - Flex-generated files
36 #  - Collectives that we borrowed elsewhere (mpich, openMPI and other implems)
37 #  - the NAS, that are included in our examples
38 sonar.exclusions=src/*_unit.c*,teshsuite/smpi/mpich3-test/**,teshsuite/smpi/isp/**,**/*_dtd.c,src/smpi/colls/*,examples/smpi/NAS/*
39 # Ignore files that are generated from Flex
40 sonar.issue.ignore.allfile=flexGenerated
41 sonar.issue.ignore.allfile.flexGenerated.fileRegexp="generated by flex"
42
43 # Ignore the files that SMPI scavenged here and there (not working)
44 #sonar.issue.ignore.allfile=mpiColls
45 #sonar.issue.ignore.allfile.flexGenerated.mpiColls="Ahmad Faraj"
46 #sonar.issue.ignore.allfile=mpivapich
47 #sonar.issue.ignore.allfile.flexGenerated.mpivapich="This file is part of the MVAPICH2 software package"
48 #sonar.issue.ignore.allfile=mpiOmpi
49 #sonar.issue.ignore.allfile.flexGenerated.mpiOmpi="University of Tennessee"
50
51 # The build-wrapper output dir
52 sonar.cfamily.build-wrapper-output=bw-outputs
53
54 # Encoding of the source files
55 sonar.sourceEncoding=UTF-8
56
57 sonar.java.source=7
58
59 # Talk to me (travis don't like it, it's too much)
60 # sonar.verbose=true