Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove one layer of calls
[simgrid.git] / sonar-project.properties
1 # This file is used to scan the project for issues automatically 
2 # Browse the result here: https://sonarqube.com/dashboard?id=simgrid
3
4 sonar.projectKey=simgrid
5 sonar.projectName=SimGrid
6 sonar.projectVersion=3.16
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,jni1,jni2,c1,c2a,c2b,c3,c4a,c4b,c5a,c5b,f1
17
18 # The Object.finalize() method should not be overriden
19 # But we need to clean the native memory with JNI
20 sonar.issue.ignore.multicriteria.j1.ruleKey=squid:ObjectFinalizeOverridenCheck
21 sonar.issue.ignore.multicriteria.j1.resourceKey=**/*.java
22
23 # "reinterpret_cast" should not be used
24 # But this is exactly intended to store a pointer into a long -- what we do here
25 sonar.issue.ignore.multicriteria.jni1.ruleKey=cpp:S3630
26 sonar.issue.ignore.multicriteria.jni1.resourceKey=src/bindings/java/*.cpp
27
28 # Unused function parameters should be removed
29 # But JNI mandates these parameters
30 sonar.issue.ignore.multicriteria.jni2.ruleKey=cpp:S1172
31 sonar.issue.ignore.multicriteria.jni2.resourceKey=src/bindings/java/*.cpp
32
33
34 # Pointers should not be cast to integral types
35 # But we need that for jMSG, smpi and other places
36 sonar.issue.ignore.multicriteria.c1.ruleKey=cpp:S1767
37 sonar.issue.ignore.multicriteria.c1.resourceKey=**/*.cpp
38
39 # Preprocessor operators "#" and "##" should not be used
40 # This poses portability issues, but we test on a large panel of architectures on purpose
41 sonar.issue.ignore.multicriteria.c2a.ruleKey=cpp:PPStringifyAndPastingUsage
42 sonar.issue.ignore.multicriteria.c2a.resourceKey=**/*.cpp
43 sonar.issue.ignore.multicriteria.c2b.ruleKey=cpp:PPStringifyAndPastingUsage
44 sonar.issue.ignore.multicriteria.c2b.resourceKey=**/*.hpp
45
46 # Macro names should comply with a naming convention
47 # But the macros in this file are named after the MPI standard
48 sonar.issue.ignore.multicriteria.c3.ruleKey=c:PPMacroName
49 sonar.issue.ignore.multicriteria.c3.resourceKey=include/smpi/smpi_extended_traces.h
50
51 # Declarations should be placed in a namespace
52 # But examples are intended to remain small and simple
53 sonar.issue.ignore.multicriteria.c4a.ruleKey=cpp:GlobalNamespaceMembers 
54 sonar.issue.ignore.multicriteria.c4a.resourceKey=examples/**/*.cpp
55 sonar.issue.ignore.multicriteria.c4b.ruleKey=cpp:GlobalNamespaceMembers 
56 sonar.issue.ignore.multicriteria.c4b.resourceKey=examples/**/*.hpp
57
58 # Replace alternative operator "not" with "!"
59 # I like it better so please leave me alone
60 sonar.issue.ignore.multicriteria.c5a.ruleKey=cpp:S3659
61 sonar.issue.ignore.multicriteria.c5a.resourceKey=**/*.cpp
62 sonar.issue.ignore.multicriteria.c5b.ruleKey=cpp:S3659
63 sonar.issue.ignore.multicriteria.c5b.resourceKey=**/*.hpp
64
65
66 # "reinterpret_cast" should not be used
67 # But we need this to interface C and Fortran
68 sonar.issue.ignore.multicriteria.f1.ruleKey=cpp:S3630
69 sonar.issue.ignore.multicriteria.f1.resourceKey=src/smpi/smpi_f77.cpp
70
71
72 # Exclude some files from the analysis:
73 #  - our unit tests 
74 #  - the tests that we borrowed elsewhere (MPICH and ISP)
75 #  - Flex-generated files
76 #  - Collectives that we borrowed elsewhere (mpich, openMPI and other implems)
77 #  - the NAS, that are included in our examples
78 #  - RngStream, that is included in SimGrid
79 sonar.exclusions=src/*_unit.c*,teshsuite/smpi/mpich3-test/**,teshsuite/smpi/isp/**,**/*_dtd.c,**/*_dtd.h,**/*yy.c,src/xbt/automaton/parserPromela.tab.*,src/smpi/colls/**/*,examples/smpi/NAS/*,src/xbt/RngStream.c,include/xbt/RngStream.h
80
81 # Exclude our examples from the duplication detection.
82 # Examples are expected to be somehow repetitive
83 sonar.cpd.exclusions=examples/**,teshsuite/**
84
85 # The build-wrapper output dir
86 sonar.cfamily.build-wrapper-output=bw-outputs
87
88 # Where the coverage files are located
89 # See https://docs.sonarqube.org/pages/viewpage.action?pageId=5312222
90 sonar.cfamily.gcov.reportsPath=Testing/CoverageInfo
91 # Files to ignore from coverage analysis:
92 #   - foreign test suites
93 #   - platform files (I fail to get sonar ignore *.xml files)
94 sonar.coverage.exclusions=teshsuite/smpi/isp/**,teshsuite/smpi/mpich3-test/**,examples/platforms/**
95
96 # Encoding of the source files
97 sonar.sourceEncoding=UTF-8
98
99 # Version of the used prog languages
100 sonar.java.source=7
101 sonar.c.std=gnu11
102 sonar.cpp.std=gnu++11
103
104 # Don't talk to me: travis don't like your verbosity
105 # sonar.verbose=true