Skip to content

Commit 5734362

Browse files
committed
Add FxCop to the build
1 parent c814877 commit 5734362

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.editorconfig

+6
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,9 @@ end_of_line = crlf
3737
[*.yml]
3838
indent_style = space
3939
indent_size = 2
40+
41+
# C# source
42+
[*.{cs}]
43+
44+
# CA1303: Do not pass literals as localized parameters
45+
dotnet_diagnostic.CA1303.severity = none

src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ Please see https://github.com/icsharpcode/SharpZipLib/wiki/Release-1.3.1 for mor
3131
</PropertyGroup>
3232

3333
<ItemGroup>
34+
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.2">
35+
<PrivateAssets>all</PrivateAssets>
36+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
37+
</PackageReference>
3438
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
3539
</ItemGroup>
3640

0 commit comments

Comments
 (0)