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 Dec 6, 2020
1 parent b7bc4e0 commit 464c68a
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.3.1 for mor
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.2">
<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 464c68a

Please sign in to comment.