-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathSonarQube.Analysis.xml
56 lines (45 loc) · 2.86 KB
/
SonarQube.Analysis.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?xml version="1.0" encoding="utf-8" ?>
<!--
This file defines properties which would be understood by the SonarQube Scanner for MSBuild, if not overridden (see below)
By default the SonarScanner.MSBuild.exe picks-up a file named SonarQube.Analysis.xml in the folder it
is located (if it exists). It is possible to use another properties file by using the /s:filePath.xml flag
The overriding strategy of property values is the following:
- A project-specific property defined in the MSBuild *.*proj file (corresponding to a SonarQube module) can override:
- A property defined in the command line (/d:propertyName=value) has which can override:
- A property defined in the SonarQube.Analysis.xml configuration file [this file] which can override:
- A property defined in the SonarQube User Interface at project level which can override:
- A property defined in the SonarQube User Interface at global level which can't override anything.
Note that the following properties cannot be set through an MSBuild project file or an SonarQube.Analysis.xml file:
sonar.projectName, sonar.projectKey, sonar.projectVersion, sonar.organization
The following flags need to be used to set their value: /n:[SonarQube Project Name] /k:[SonarQube Project Key] /v:[SonarQube Project Version] /o:[Sonar Project Organization]
-->
<SonarQubeAnalysisProperties xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sonarsource.com/msbuild/integration/2015/1">
<Property Name="sonar.projectKey">clientSSH</Property>
<!--
this is the name displayed in the SonarQube UI
-->
<Property Name="sonar.projectName">clientSSH</Property>
<!--
Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
Since SonarQube 4.2, this property is optional if sonar.modules is set.
If not set, SonarQube starts looking for source code from the directory containing
the sonar-project.properties file.
-->
<!--<Property Name="sonar.sources">./src</Property>-->
<Property Name="sonar.tests">./src/NUnitTests,./src/TestApp</Property>
<Property Name="sonar.inclusions">./src/**/*.cs</Property>
<Property Name="sonar.scm.enabled">true</Property>
<Property Name="sonar.scm.provider">git</Property>
<!--
Encoding of the source code. Default is default system encoding
-->
<Property Name="sonar.sourceEncoding">UTF-8</Property>
<!--
<Property Name="sonar.host.url">http://localhost:9000</Property>
<Property Name="sonar.login"></Property>
<Property Name="sonar.password"></Property>
<Property Name="sonar.tests">./tests</Property>
<Property Name="sonar.coverageReportPaths">build/reports/coverage.xml</Property>
<Property Name="sonar.testExecutionReportPaths">build/reports/nunit-result.xml</Property>
-->
</SonarQubeAnalysisProperties>