dotnet / roslyn-analyzers

MIT License
1.55k stars 460 forks source link

Improve CA1305 for nullable types #7306

Open CollinAlpert opened 1 month ago

CollinAlpert commented 1 month ago

Affected analyzer: SpecifyIFormatProviderAnalyzer Affected diagnostic IDs: CA1305

This PR improves nullable support for CA1305. So far only nullable number types were analyzed, this is now extended to all nullables.

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 96.48%. Comparing base (bc8aca0) to head (3871ef7).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #7306 +/- ## ======================================= Coverage 96.47% 96.48% ======================================= Files 1443 1443 Lines 345400 345408 +8 Branches 11364 11362 -2 ======================================= + Hits 333239 333251 +12 + Misses 9282 9279 -3 + Partials 2879 2878 -1 ```