Showing content from https://github.com/SonarSource/sonar-dotnet/releases/tag/9.7.0.75501 below:
Release 9.7 · SonarSource/sonar-dotnet · GitHub
This release focused on improving the precision of existing rules. We fixed a lot of False Positives, False Negatives, and bugs in Code Fixes.
We also reduced our memory footprint by reducing allocations in the hot path. Thank you @sharwell, for reporting this in #7439 and #7440.
Special thanks to our contributor @nalka0 for the correction of our rule documentation in #7587
Improvements
- 7462 - [C#] Fix S1125: Codefix should set correct condition priority by adding parentheses.
- 2618 - [C#] Fix S1125: Faulty code fix on C# pattern matching in conditional operator
- 7213 - [C#] Improve S109 message
False Positive
- 7633 - [C#] Fix S4023 FP: Interfaces that provide type parameters from base interface
- 7629 - [C#] Fix S1186 FP: Empty method comes from interface
- 7508 - [C#, VB.NET] Fix S6605 FP: Should not fire in expressions
- 7324 - [C#] Fix S3063 FP: StringBuilder used in concatenation
- 6912 - [C#] Fix S1144 FP: Unused fields in class with StructLayout
- 5521 - [C#] Fix S1643 FP: should not apply when strings are not aggregated
- 3945 - [C#] Fix S3925 FP: Classes not having extra properties should not have to extend ISerializable interface
False Negative
- 7688 - [C#] Fix S1125 FN: recognize C#9 "is not" constant pattern
- 2619 - [C#] Fix S1125 FN: recognize "is" keyword with constant pattern
- 7713 - [C#] Fix S1643 FN: consider simple assignments with variable not on the innermost add expression
Performance
- 7664 - Allocations: Make IsUnchanged allocation free in the common case
- 7663 - Allocations: Move stringliteral tokens array to static field
- 7656 - Allocations: Remove delegate allocation from IsExcluded
- 7655 - Allocations: Remove delegate allocation from IsGenerated
- 7440 - Allocations: Unroll AdditionalFile extension method
- 7439 - Allocations: Avoid capturing and delegate allocations in SonarAnalysisContextBase
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4