Skip to content

Commit

Permalink
Add FxCop to the build
Browse files Browse the repository at this point in the history
  • Loading branch information
Numpsy committed Apr 30, 2020
1 parent f36ca37 commit d755233
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ indent_size = 2
end_of_line = lf
[*.{cmd, bat}]
end_of_line = crlf

# C# source
[*.{cs}]

# CA1303: Do not pass literals as localized parameters
dotnet_diagnostic.CA1303.severity = none
4 changes: 4 additions & 0 deletions src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ Please see https://github.com/icsharpcode/SharpZipLib/wiki/Release-1.2 for more
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.9">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>

Expand Down

0 comments on commit d755233

Please sign in to comment.