akamsteeg / AtleX.HaveIBeenPwned

A fully async .NET Standard client library for the API of HaveIBeenPwned.com
https://www.nuget.org/packages/AtleX.HaveIBeenPwned/
MIT License
5 stars 0 forks source link

Enable .NET analyzers on main project and fix warnings/errors #57

Closed akamsteeg closed 2 years ago

akamsteeg commented 2 years ago

Standard .NET analyzers are only enabled by default for projects targeting .NET 5 and up. We can enable them for projects targeting earlier TFMs by adding the following to the .csproj:

<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisMode>Recommended</AnalysisMode>
<AnalysisLevel>latest</AnalysisLevel>
akamsteeg commented 2 years ago

All analyzer warnings and errors are fixed.