Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please sonar
[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,c3,c4
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.c1.ruleKey=cpp:S3630
26 sonar.issue.ignore.multicriteria.c1.resourceKey=src/bindings/java/*.cpp
27
28 # Pointers should not be cast to integral types
29 # But we need that for jMSG
30 sonar.issue.ignore.multicriteria.c2.ruleKey=cpp:S1767
31 sonar.issue.ignore.multicriteria.c2.resourceKey=**/*.cpp
32
33 # Preprocessor operators "#" and "##" should not be used
34 # This poses portability issues, but we check our usage on a large panel of architectures on purpose
35 sonar.issue.ignore.multicriteria.c3.ruleKey=cpp:PPStringifyAndPastingUsage
36 sonar.issue.ignore.multicriteria.c3.resourceKey=**/*.cpp
37
38 # Macro names should comply with a naming convention
39 # But the macros in this file are named after the MPI standard
40 sonar.issue.ignore.multicriteria.c4.ruleKey=c:PPMacroName
41 sonar.issue.ignore.multicriteria.c4.resourceKey=include/smpi/smpi_extended_traces.h
42
43
44
45 # Exclude some files from the analysis:
46 #  - our unit tests 
47 #  - the tests that we borrowed elsewhere (MPICH and ISP)
48 #  - Flex-generated files
49 #  - Collectives that we borrowed elsewhere (mpich, openMPI and other implems)
50 #  - the NAS, that are included in our examples
51 #  - RngStream, that is included in SimGrid
52 sonar.exclusions=src/*_unit.c*,teshsuite/smpi/mpich3-test/**,teshsuite/smpi/isp/**,**/*_dtd.c,**/*_dtd.h,**/*yy.c,src/smpi/colls/*,examples/smpi/NAS/*,src/xbt/RngStream.c,include/xbt/RngStream.h
53
54 # Exclude our examples from the duplication detection.
55 # Examples are expected to be somehow repetitive
56 sonar.cpd.exclusions=examples/**
57
58 # Ignore some files based on regex on their content (not working)
59 #sonar.issue.ignore.allfile=flexGenerated,flexMLGenerated
60 #  - The one that are generated from Flex
61 #sonar.issue.ignore.allfile.flexGenerated.fileRegexp="generated by flex"
62 #  - The one that are generated from FlexML (the header files are directly generated, not going though Flex)
63 sonar.issue.ignore.allfile.flexMLGenerated.fileRegexp="generated with the FleXML XML processor generator"
64
65 # Ignore the files that SMPI scavenged here and there (not working)
66 #sonar.issue.ignore.allfile=mpiColls
67 #sonar.issue.ignore.allfile.flexGenerated.mpiColls="Ahmad Faraj"
68 #sonar.issue.ignore.allfile=mpivapich
69 #sonar.issue.ignore.allfile.flexGenerated.mpivapich="This file is part of the MVAPICH2 software package"
70 #sonar.issue.ignore.allfile=mpiOmpi
71 #sonar.issue.ignore.allfile.flexGenerated.mpiOmpi="University of Tennessee"
72
73 # The build-wrapper output dir
74 sonar.cfamily.build-wrapper-output=bw-outputs
75
76 # Encoding of the source files
77 sonar.sourceEncoding=UTF-8
78
79 sonar.java.source=7
80 sonar.c.std=gnu11
81 sonar.cpp.std=gnu++11
82
83 # Talk to me (travis don't like it, it's too much)
84 # sonar.verbose=true