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 Sep 22, 2020
1 parent 61d3a21 commit e40da87
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 @@ -37,3 +37,9 @@ end_of_line = crlf
[*.yml]
indent_style = space
indent_size = 2

# 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="3.3.0">
<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 e40da87

Please sign in to comment.