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 Aug 9, 2020
1 parent 96b4d86 commit e882412
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .editorconfig
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
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.10">
<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 e882412

Please sign in to comment.