-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStyleCopAnalyzers.props
37 lines (33 loc) · 1.99 KB
/
StyleCopAnalyzers.props
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
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<CommonAnalyzersRootPath>$(MSBuildThisFileDirectory)Analysers\</CommonAnalyzersRootPath>
<StyleCopAnalyzersRootPath>$(CommonAnalyzersRootPath)StyleCopAnalyzers\</StyleCopAnalyzersRootPath>
<CodeAnalysisRuleSet>$(StyleCopAnalyzersRootPath)CodeAnalysisRules.ruleset</CodeAnalysisRuleSet>
<!--
* Suppress XML comment warnings completely.
* Ignore duplicate 'using' statements, which might be introduced by merges.
-->
<NoWarn>1591,1592,1573,1574,1571,1570,1572,1711,1587,0105</NoWarn>
<!-- Treat warnings as errors by default: -->
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
<!-- Keep '#warning' and some internally-suppressed warnings as warnings: -->
<WarningsNotAsErrors>1030,1701,1702</WarningsNotAsErrors>
<!-- Do not fail on SemVer 2 compatibility warnings when building packages. -->
<NoWarn>$(NoWarn),NU5105</NoWarn>
</PropertyGroup>
<!-- Enable stylecop analyzers for all non-release builds or a release build that's running a build in visual studio (i.e. Intellisense). -->
<ItemGroup Condition=" '$(Configuration)' != 'Release' Or '$(BuildingInsideVisualStudio)' != 'True' Or '$(BuildingProject)' != 'True' ">
<Analyzer Include="$(StyleCopAnalyzersRootPath)lib\1.0.0\Newtonsoft.Json.dll" />
<Analyzer Include="$(StyleCopAnalyzersRootPath)lib\1.0.0\StyleCop.Analyzers.CodeFixes.dll" />
<Analyzer Include="$(StyleCopAnalyzersRootPath)lib\1.0.0\StyleCop.Analyzers.dll" />
<Analyzer Include="$(CommonAnalyzersRootPath)Bluewire.Analysers\lib\netstandard1.3\Bluewire.Analysers.dll" />
</ItemGroup>
<!-- All our projects share the same style requirements -->
<ItemGroup>
<AdditionalFiles Include="$(StyleCopAnalyzersRootPath)stylecop.json">
<Link>stylecop.json</Link>
<Visible>true</Visible>
</AdditionalFiles>
</ItemGroup>
</Project>