File tree Expand file tree Collapse file tree 6 files changed +596
-19
lines changed Expand file tree Collapse file tree 6 files changed +596
-19
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -18,18 +18,19 @@ EndProject
18
18
Project ("{2150E333-8FDC-42A3-9474-1A3956D46DE8}" ) = "Solution Items" , "Solution Items" , "{B6AF0B6E-14FB-4737-A69B-13B0D7195E2B}"
19
19
Project Section (SolutionItems ) = preProject
20
20
Readme .md = Readme .md
21
- stylecop .analyzers .ruleset = stylecop .analyzers .ruleset
22
- stylecop .json = stylecop .json
21
+ .editorconfig = .editorconfig
23
22
EndProject Section
24
23
EndProject
25
24
Project ("{2150E333-8FDC-42A3-9474-1A3956D46DE8}" ) = "src" , "src" , "{86FD0EB5-13F9-4F1C-ADA1-072EEFEFF1E9}"
26
25
Project Section (SolutionItems ) = preProject
27
26
src \Directory .Build .props = src \Directory .Build .props
27
+ src \.editorconfig = src \.editorconfig
28
28
EndProject Section
29
29
EndProject
30
30
Project ("{2150E333-8FDC-42A3-9474-1A3956D46DE8}" ) = "tests" , "tests" , "{CAD2F4A3-1282-49B5-B0AB-655CDBED0A35}"
31
31
Project Section (SolutionItems ) = preProject
32
32
tests \Directory .Build .props = tests \Directory .Build .props
33
+ tests \.editorconfig = tests \.editorconfig
33
34
EndProject Section
34
35
EndProject
35
36
Global
Original file line number Diff line number Diff line change
1
+ # ATC coding rules - https://github.com/atc-net/atc-coding-rules
2
+ # Version: 1.0.5
3
+ # Updated: 02-05-2021
4
+ # Location: Src
5
+ # Inspired by: https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/code-style-rule-options
6
+
7
+ # #########################################
8
+ # Code Analyzers Rules
9
+ # #########################################
10
+ [* .{cs,csx,cake} ]
11
+
12
+ # AsyncFixer
13
+ # http://www.asyncfixer.com
14
+
15
+
16
+ # Asyncify
17
+ # https://github.com/hvanbakel/Asyncify-CSharp
18
+
19
+
20
+ # Meziantou
21
+ # https://www.meziantou.net/enforcing-asynchronous-code-good-practices-using-a-roslyn-analyzer.htm
22
+
23
+
24
+ # Microsoft - Code Analysis
25
+ # https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/
26
+
27
+
28
+ # SecurityCodeScan
29
+ # https://security-code-scan.github.io/
30
+
31
+
32
+ # SonarAnalyzer.CSharp
33
+ # https://rules.sonarsource.com/csharp
34
+
35
+
36
+ # #########################################
37
+ # Custom - Code Analyzers Rules
38
+ # #########################################
Original file line number Diff line number Diff line change 26
26
</PropertyGroup >
27
27
28
28
<PropertyGroup >
29
- <WarningLevel >99</WarningLevel >
30
29
<TreatWarningsAsErrors >true</TreatWarningsAsErrors >
31
30
</PropertyGroup >
32
31
33
- </Project >
32
+ </Project >
Original file line number Diff line number Diff line change 19
19
<ProjectReference Include =" ..\LinkDotNet.Blog.Infrastructure\LinkDotNet.Blog.Infrastructure.csproj" />
20
20
</ItemGroup >
21
21
22
- <ItemGroup >
23
- <_ContentIncludedByDefault Remove =" Areas\Identity\Pages\Account\LogOut.cshtml" />
24
- <_ContentIncludedByDefault Remove =" Areas\Identity\Pages\Shared\_LoginPartial.cshtml" />
25
- </ItemGroup >
26
-
27
22
<ItemGroup >
28
23
<InternalsVisibleTo Include =" LinkDotNet.Blog.IntegrationTests" />
29
24
</ItemGroup >
30
25
31
- <ItemGroup >
32
- <None Update =" Features\ShowBlogPost\Components\Giscus.razor.js" >
33
- <DependentUpon >Giscus.razor</DependentUpon >
34
- </None >
35
- <None Update =" Features\ShowBlogPost\Components\Disqus.razor.js" >
36
- <DependentUpon >Disqus.razor</DependentUpon >
37
- </None >
38
- </ItemGroup >
39
-
40
- </Project >
26
+ </Project >
Original file line number Diff line number Diff line change
1
+ # ATC coding rules - https://github.com/atc-net/atc-coding-rules
2
+ # Version: 1.0.5
3
+ # Updated: 02-05-2021
4
+ # Location: Test
5
+ # Inspired by: https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/code-style-rule-options
6
+
7
+ # #########################################
8
+ # Code Analyzers Rules
9
+ # #########################################
10
+ [* .{cs,csx,cake} ]
11
+
12
+ # AsyncFixer
13
+ # http://www.asyncfixer.com
14
+
15
+
16
+ # Asyncify
17
+ # https://github.com/hvanbakel/Asyncify-CSharp
18
+
19
+
20
+ # Meziantou
21
+ # https://www.meziantou.net/enforcing-asynchronous-code-good-practices-using-a-roslyn-analyzer.htm
22
+ dotnet_diagnostic.MA0002.severity = silent # MA0002: IEqualityComparer<string> or IComparer<string> is missing
23
+ dotnet_diagnostic.MA0004.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0004.md
24
+
25
+ # Microsoft - Code Analysis
26
+ # https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/
27
+ dotnet_diagnostic.CA1064.severity = suggestion # CA1064: Exceptions should be public
28
+ dotnet_diagnostic.CA1707.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA1707.md
29
+ dotnet_diagnostic.CA2007.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA2007.md
30
+
31
+ # SecurityCodeScan
32
+ # https://security-code-scan.github.io/
33
+
34
+
35
+ # SonarAnalyzer.CSharp
36
+ # https://rules.sonarsource.com/csharp
37
+
38
+
39
+ # #########################################
40
+ # Custom - Code Analyzers Rules
41
+ # #########################################
42
+
43
+ dotnet_diagnostic.CA1819.severity = suggestion # CA1819: Properties should not return arrays
44
+ dotnet_diagnostic.CA1849.severity = suggestion # CA1849: Call async methods when in an async method
45
+
46
+ dotnet_diagnostic.xUnit1026.severity = none # xUnit1026: Theory methods should use all of their parameters
You can’t perform that action at this time.
0 commit comments