This repository has been archived by the owner on Oct 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
sonar-project.properties
56 lines (45 loc) · 2.46 KB
/
sonar-project.properties
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
#sonar.host.url=http://[sonar-server]:9000/
# cf.: https://github.com/SonarSource/sonar-examples/blob/master/projects/languages/csharp/sonar-project.properties
# Note: It is not recommended to use the colon ':' character in the projectKey
sonar.projectKey=inc.awesome.OneClickBuild:OneClickBuild
sonar.projectName=OneClickBuild
# Should be specified at runtime using
# gitversion /showvariable MajorMinorPatch > current.version
# set /P MajorMinorPatch=<current.version
# sonar-runner -Dsonar.projectVersion=%MajorMinorPatch%
#sonar.projectVersion=1.10
sonar.sourceEncoding=UTF-8
# To prevent any issues while analyzing multiple solutions containing projects with similar keys
# Will be set by default to safe starting at version 2.2: http://jira.codehaus.org/browse/SONARDOTNT-339
sonar.dotnet.key.generation.strategy=safe
# Required only when using SonarQube < 4.2
sonar.language=cs
# This property is set because it is required by the SonarQube Runner.
# But it is not taken into account because the location of the source
# code is retrieved from the .sln and .csproj files.
sonar.sources=.
# exclusions
# Properties/AssemblyInfo.cs
# WPF generated files (in obj *.g.cs, g.i.cs, ...)
# MiniMods
# Tests
# WCF generated service contracts
# nuget packages
sonar.exclusions=**/Properties/*.cs,**/*.g.cs,**/obj/**.cs,**/MiniMods/*.cs,**/Tests/**/*.cs,**/Service References/**.cs,**/packages/**.*,**/*_Should.cs
# Enable the Visual Studio bootstrapper
sonar.visualstudio.enable=true
# Exclude non-built projects from the analysis to avoid the missing assembly error with FxCop
# http://docs.sonarqube.org/display/SONAR/Analysis+Bootstrapper+for+Visual+Studio+Projects+Plugin
sonar.visualstudio.skipIfNotBuilt=true
# FxCop, cf.:
# - http://stackoverflow.com/questions/23822527/how-to-set-fxcop-installation-path-using-sonarqubes-c-sharp-plugin
# - http://stackoverflow.com/questions/23838631/sonarqube-visual-studio-bootstrapper-cant-finding-assemblies
# NOTE: This should be moved into global sonar-runner conf.
sonar.cs.fxcop.fxCopCmdPath=c:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Team Tools\\Static Analysis Tools\\FxCop\\FxCopCmd.exe
# ReSharper
sonar.resharper.solutionFile=OneClickBuild.sln
# NUnit test results (since C# 3.3)
# cf.: http://stackoverflow.com/questions/27460489/how-to-include-nunit-test-results-in-sonarcube-4-5-1-c-sharp-plugin-3-3-sonar-pr
sonar.cs.nunit.reportsPaths=testresults/*.Tests.xml
# Code Coverage
sonar.cs.opencover.reportsPaths=testresults/*.Coverage.xml