-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCodingStandards.targets
More file actions
35 lines (29 loc) · 1.88 KB
/
CodingStandards.targets
File metadata and controls
35 lines (29 loc) · 1.88 KB
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
<Project>
<!-- Register the EditorConfig files to the project -->
<!-- Remember that a particular .NET analysis rule can only be configured once across all imported global EditorConfig files -->
<ItemGroup>
<!-- Basic EditorConfig settings such as encoding, indentation, etc. -->
<EditorConfigFiles Include="$(MSBuildThisFileDirectory)\editorConfigs\1_FileDefaults.editorconfig" />
<!-- C# code style -->
<EditorConfigFiles Include="$(MSBuildThisFileDirectory)\editorConfigs\2_CodeStyle.editorconfig" />
<!-- .NET analyzers configuration for all projects, enforcing C# code style, quality, performance and security -->
<EditorConfigFiles Include="$(MSBuildThisFileDirectory)\editorConfigs\analyzers\*.editorconfig" />
<!-- Configure ReSharper analyzers that overlaps with built-in .NET analyzers (only appears in Rider and VisualStudio IDEs) -->
<EditorConfigFiles Include="$(MSBuildThisFileDirectory)\editorConfigs\3_ReSharperAnalyzers.editorconfig" />
<!-- .NET analyzers configuration only for test projects -->
<EditorConfigFiles Include="$(MSBuildThisFileDirectory)\editorConfigs\4_TestProjectsAnalyzers.editorconfig" Condition="'$(IsTestProject)' == 'true'" />
</ItemGroup>
<!-- Banned Symbols -->
<PropertyGroup>
<IncludeDefaultBannedSymbols Condition="$(IncludeDefaultBannedSymbols) == ''">true</IncludeDefaultBannedSymbols>
<BanNewtonsoftJsonSymbols Condition="$(BanNewtonsoftJsonSymbols) == ''">true</BanNewtonsoftJsonSymbols>
</PropertyGroup>
<ItemGroup>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)\editorConfigs\BannedSymbols.txt"
Condition="$(IncludeDefaultBannedSymbols) == 'true'"
Visible="false" />
<AdditionalFiles Include="$(MSBuildThisFileDirectory)\editorConfigs\BannedSymbols.Newtonsoft.Json.txt"
Condition="$(BanNewtonsoftJsonSymbols) == 'true'"
Visible="false" />
</ItemGroup>
</Project>