Sourced from SonarAnalyzer.CSharp's releases.
10.4
Improvements
In this release, we have added support for test density and metrics at the individual file level. You can now view the number of unit tests, as well as details on skipped tests, failed tests, and test duration, from all supported coverage tools (xUnit, MsTest, and nUnit).
Additionally, we have significantly optimized memory allocation, resulting in memory usage reduction during registration.
False Positive
- NET-868 - Fix S1854 FP: Don't raise when inner finally assignment is used to outer block
- NET-865 - Fix S1172 FP: Parameter used as extension delegate target
- NET-863 - Fix S1172 FP: Don't report on partial method parameters
- NET-862 - Fix S1854 FP: Don't raise in catch when variable is used in following catch
- NET-857 - Fix S3655 FP: Types with implicit conversion operator
- NET-836 - Fix S1854 FP: Value used after catch
False Negative
- NET-798 - Fix S1854 FN: Support &&, ||, ?? and ??=
Task
- NET-763 - Update RSPEC before 10.4 release
10.3
False Positive
- NET-675 - Fix S1144 FP: support struct constructor calls
- NET-499 Telemetry: Report Language version and target framework
Other
10.2
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
... (truncated)
6e42b50
NET-891 Unit test import: add import support for nunit projects logging
trx8acb7aa
NET-763 Update RSPEC before 10.4 released00f951
NET-808 Update NuGet packages description for the analyzers44b2f5e
NET-887 Unit test import: fix mapping in case of wrong casing02ed338
NET-886 XUnit fix mapping issue on explicit DisplayName831d94f
NET-878 Rename Helper classesaf3f528
NET-868 Fix S1854 FP: Don't raise when inner finally assignment is used
to ou...852b0ee
NET-881 Log debug message on failed test mapping in
XmlTestReportParser00ecc1e
NET-879 Cleanup EditorConfigGeneratore02c25d
NET-865 S1172 FP: Parameter used as extension delegate target