1# Apache Thrift © The Apache Software Foundation
2# http://www.apache.org/licenses/LICENSE-2.0
3# SPDX-License-Identifier: Apache-2.0
4
5# File: sonar-project.properties
6# Apache Thrift configuration file for Sonar https://analysis.apache.org/
7# Sonar is an open platform to manage code quality http://www.sonarsource.org/
8
9
10# required metadata
11sonar.projectKey=org.apache.thrift
12sonar.projectName=Apache Thrift
13sonar.projectDescription=
14The Apache Thrift software framework, for scalable cross-language services
15development, combines a software stack with a code generation engine to build
16services that work efficiently and seamlessly between all major languages.
17
18# Apache Thrift Version
19sonar.projectVersion=0.18.0
20# use this to set another version string
21# $ sonar-runner -D sonar.projectVersion=`git rev-parse HEAD`
22# set projectDate in combination with projectVersion for imports of old releases
23#sonar.projectDate=yyyy-MM-dd
24
25# TODO add website (sonar.projectUrl does not work)
26#sonar.XXXX=http//thrift.apache.org
27
28# Some properties that will be inherited by the modules
29sonar.sources=src
30sonar.language=java,js,c++,py,c
31sonar.sourceEncoding=UTF-8
32
33# scm
34sonar.scm.url=scm:git:https://github.com/apache/thrift.git
35
36# cppcheck -q --error-exitcode=0 --xml . 2> cppcheck-result.xml
37sonar.cxx.cppcheck.reportPath=cppcheck-result.xml
38
39# List of the module identifiers
40sonar.modules=module1,module3,module4,module5,module6,module7,module8,module9,module10,module11,module12
41
42
43
44# we need sonar-runner 2.1 for this, see http://jira.codehaus.org/browse/SONARPLUGINS-2421
45#sonar.modules=module2
46
47# delph plugin is broken
48#sonar.modules=module13
49
50# phpunit plugin is broken
51#sonar.modules=module14
52
53module1.sonar.projectName=Apache Thrift - Java Library
54module1.sonar.projectBaseDir=lib/java
55module1.sonar.sources=src
56module1.sonar.tests=test
57module1.sonar.binaries=build/libs/libthrift-0.18.0.jar
58module1.sonar.libraries=build/deps/*.jar
59module1.sonar.language=java
60
61module2.sonar.projectName=Apache Thrift - Java Tutorial
62module2.sonar.projectBaseDir=.
63module2.sonar.sources=tutorial/java/src, tutorial/java/gen-java
64module2.sonar.binaries=tutorial/java/tutorial.jar
65module2.sonar.libraries=lib/java/build/deps/*.jar,lib/java/build/libs/libthrift-0.18.0.jar
66module2.sonar.language=java
67
68module3.sonar.projectName=Apache Thrift - JavaScript Library
69module3.sonar.projectBaseDir=lib/js
70module3.sonar.sources=.
71module3.sonar.exclusions=test/**/*
72module3.sonar.language=js
73
74module4.sonar.projectName=Apache Thrift - JavaScript Tutorial
75module4.sonar.projectBaseDir=tutorial/js
76module4.sonar.sources=.
77module4.sonar.language=web
78
79module5.sonar.projectName=Apache Thrift - C++ Library
80module5.sonar.projectBaseDir=lib/cpp
81module5.sonar.sources=src
82module5.sonar.tests=test
83module5.sonar.language=c++
84
85module6.sonar.projectName=Apache Thrift - C++ Tutorial
86module6.sonar.projectBaseDir=tutorial/cpp
87module6.sonar.sources=.
88module6.sonar.exclusions=gen-cpp/**/*
89module6.sonar.language=c++
90
91module7.sonar.projectName=Apache Thrift - C++ Cross Language Test
92module7.sonar.projectBaseDir=test/cpp
93module7.sonar.sources=src
94module7.sonar.language=c++
95
96module8.sonar.projectName=Apache Thrift - Compiler
97module8.sonar.projectBaseDir=compiler/cpp
98module8.sonar.sources=src
99module8.sonar.language=c++
100
101module9.sonar.projectName=Apache Thrift - Python Library
102module9.sonar.projectBaseDir=lib/py
103module9.sonar.sources=src
104module9.sonar.language=py
105
106module10.sonar.projectName=Apache Thrift - Python Tutorial
107module10.sonar.projectBaseDir=tutorial/py
108module10.sonar.sources=.
109module10.sonar.exclusions=gen-py/**/*
110module10.sonar.language=py
111
112module11.sonar.projectName=Apache Thrift - Python Cross Language Test
113module11.sonar.projectBaseDir=test/py
114module11.sonar.sources=.
115module11.sonar.exclusions=gen-*/**/*
116module11.sonar.language=py
117
118module12.sonar.projectName=Apache Thrift - c_glib Library
119module12.sonar.projectBaseDir=lib/c_glib
120module12.sonar.sources=src
121module12.sonar.language=c
122
123module13.sonar.projectName=Apache Thrift - Delphi Library
124module13.sonar.projectBaseDir=lib/delphi
125module13.sonar.sources=src
126module13.sonar.tests=test
127module13.sonar.language=delph
128
129module14.sonar.projectName=Apache Thrift - PHP Library
130module14.sonar.projectBaseDir=lib/php
131module14.sonar.sources=src
132module14.sonar.language=php
133
134# TODO add some more languages here
135
136