Skip to content

10.2

Compare
Choose a tag to compare
@mary-georgiou-sonarsource mary-georgiou-sonarsource released this 02 Dec 09:18
· 133 commits to master since this release

New Rules

  • NET-635 - [C#] New rule S6418 for C#: Hard-coded secrets are security-sensitive

Improvement

  • NET-567 - Remove S6605 from SonarWay profile and update the RSPEC to mention that the rule makes sense only for .NET versions <9
  • NET-566 - Remove S6603 from SonarWay profile and update the RSPEC to mention that the rule makes sense only for .NET versions <9
  • NET-407 - S2551: Improve RSpec recommendation
  • NET-226 - S3878: Improve RSPEC to include collection expressions
  • NET-528 - MetricAnalyzer: Line numbers does not respect ExcludeFromCodeCoverage for partial properties
  • NET-527 - MetricAnalyzer: Function count should not count partial property declaration parts

False Positive

  • NET-553 - Fix S4260 FP: Do not raise twice for partial properties
  • NET-543 - Fix S4059 FP: Do not raise twice for partial properties
  • NET-534 - Fix S3353 FP: Support ref locals
  • NET-456 - Fix S2292 FP: Do not raise on partial properties
  • NET-389 - Fix S2386 FP: support 'ReadOnlySet'
  • NET-388 - Fix S3887 FP: support 'ReadOnlySet'
  • NET-356 - Fix S3878 FP: support 'param' with implicit custom methods
  • NET-568 - Remove S6602 from SonarWay profile and update the RSPEC to mention that the rule makes sense only for .NET versions <9
  • NET-601 - Fix S4275 FP: Support &= assignment

False Negative

  • NET-550 - SymbolReferenceAnalyzer: References to partial declarations are not detected
  • NET-416 - Fix S2201 FN: Add support for FrozenSet
  • NET-368 - Fix S4015 FN: Does not trigger on indexers
  • NET-359 - Fix S4545 FN: Escape chars and new lines breaks DebuggerDisplay