Skip to content

8.54

Compare
Choose a tag to compare
@SonarTech SonarTech released this 07 Mar 15:22
8dab911

In this release we added six code structure and best practice rules.

Thank you @teo-tsirpanis, for contributing #6580

New Rules

  • 6706 - [C#] New Rule S3398: "private" methods called only by inner classes should be moved to those classes
  • 6704 - [C#] New Rule S2094: Classes should not be empty
  • 6703 - [C#, VB.NET] New Rule S4545: "DebuggerDisplayAttribute" strings should reference existing members
  • 6701 - [C#] New Rule S2445: Blocks should be synchronized on read-only fields
  • 6662 - [C#] New rule S2970: Assertions should be complete
  • 6854 - [C#] New rule S6507: Blocks should not be synchronized on local variables

Improvements

  • 6763 - Update RSPEC before 8.54 release
  • 6761 - Improve Rule S2223: cleanup and performance
  • 6678 - Report deprecation analysis warning for MsBuild 14/15

Performance

  • 6785 - Performance: Token Type Utility Analyzer: Avoid allocations

Bug Fixes

  • 6766 - [C#] Old SE: Handle unsupported syntax gracefully

False Positive

  • 6229 - [C#] Fix S2952 FN/FP: FNs on conditional invocation and FPs on additional disposal

False Negative

  • 6580 - [C#] FN S2857: Add support for Microsoft SqlClient Data Provider for SQL Server