Skip to content

Commit

Permalink
Ban ZipArchive.CreateEntry(string)
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinungf committed Oct 27, 2023
1 parent 8b03427 commit cdfb03c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions BannedSymbols.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
M:System.IO.Compression.ZipArchive.CreateEntry(System.String);Pass CompressionLevel parameter
4 changes: 4 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@
<NoWarn>MA0048</NoWarn>
</PackageReference>
</ItemGroup>

<ItemGroup>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)/BannedSymbols.txt" Visible="false" />
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<ItemGroup>
<GlobalPackageReference Include="ErrorProne.NET.CoreAnalyzers" Version="0.4.0-beta.1" />
<GlobalPackageReference Include="Meziantou.Analyzer" Version="2.0.93" />
<GlobalPackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="3.3.4" />
<GlobalPackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.7.30" />
<GlobalPackageReference Include="Roslynator.Analyzers" Version="4.5.0" />
<GlobalPackageReference Include="SonarAnalyzer.CSharp" Version="9.12.0.78982" />
Expand Down
1 change: 1 addition & 0 deletions SpreadCheetah.sln
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution items", "Solution
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
.globalconfig = .globalconfig
BannedSymbols.txt = BannedSymbols.txt
Directory.Build.props = Directory.Build.props
Directory.Packages.props = Directory.Packages.props
README.md = README.md
Expand Down

0 comments on commit cdfb03c

Please sign in to comment.