Releases: SonarSource/sonar-dotnet
Releases · SonarSource/sonar-dotnet
10.16.2
10.16.1
Rotations of binary signing keys
10.16
10.15
False Positive
- NET-2198 - Fix S1905 FP: Cast of default! expression is required
- NET-2197 - Fix S1905 FP: stackalloc and Span conversions
- NET-1641 - Fix S1905 FP: casting
IEnumerable<string?>toIEnumerable<string> - NET-2157 - Fix S2589 FP: Don't raise an issue after a delegate is invoked
- NET-2073 - Fix S2699 FP: Add support for FsCheck property tests
- NET-1537 - Fix S6964 FP: Don't raise on properties annotated with the BindRequiredAttribute
Improvement
- NET-2112 - Consider ExplodedNodes relevant if a successor would be relevant
- NET-2183 - SE: Set constraint on operation when learning from IsPattern
False Negative
Task
- NET-2208 - Update RSpec before release
10.14
Hey everyone,
This release mostly focuses on mitigating (NET-2196) a performance regression that was introduced in 10.13.
Improvement
- NET-2196 - Fix path algorithm for execution flows to mitigate performance regression
- NET-2177 - Improve how the Symbolic Execution engine handles exception paths
- NET-2135 - Support xUnit V3
- NET-2163 - Provide Interface for other plugins to add rules to VB.NET SonarWay profile
False Negative
Task
- NET-2170 - Update RSPEC before 10.14 release
10.13
Hello everyone,
In this release, we've focused on:
- False positive fixes
- Enhancing S2259's secondary locations to provide clearer, step-by-step explanations of null pointer dereferences issues.
False Positives
- NET-2099 - Fix S3885 FP: Do not raise in ResolutionEventHandler
- NET-2023 - Fix S3257 FP: Array with target-typed new
- NET-1646 - Fix S3267 FP: Loops should be simplified with LINQ expressions
- NET-1588 - Fix S1066 FP: Combination of
dynamicandoutshould not raise - NET-882 - Fix S3257 FP: Don't raise for C# 10 and later when there's explicit delegate creation
Improvements
10.12
This release brings the VB version of S6418 and a few FP and FN fixes.
New Rule
False Positive
False Negative
- NET-1260 - Fix S1215 FN: GC.GetTotalMemory(forceFullCollection: true) should not be called
- NET-1258 - Fix S6678 FN: Lowercase placeholders in interpolated string
- NET-1255 - Fix S3267 FN: Logical operators are not supported
Task
- NET-2060 - Update RSPEC before 11.12 release
10.11
Hello everyone!
In this release we fixed a bunch of false positives and false negatives.
Additionally this version adds support for telemetry in order to gather information on feature usage. Telemetry, requires scanner 10.2.0 or greater.
False Positive
- NET-1522 - Fix S2068 FP: Do not raise on
password:secret - NET-1149 - Fix S3626 FP: Add exception when return statement is preceding local functions
False Negative
- NET-1263 - Fix S1871 FN: Nested if .. else if chain
- NET-1256 - S2068: Remove word boundary(\b) from regex
- NET-1254 - Fix S3878 FN: When params are passed as array through an attribute
- NET-1252 - FN S1168: Support IndexerDeclaration and ConversionOperatorDeclaration
- NET-459 - Fix S1168 FN: Add support for partial indexers
10.10.1
10.10
Hey everyone, this release mostly focuses on internal and technical things.
General
- NET-1444 - Move ProfileRegistrar to org.sonar.plugins.csharpenterprise.api
- NET-1326 - Update RSPEC before 10.10 release
Internal Styling Rules
- NET-1378 - New Rule T0045: Use var
- NET-1359 - New Rule T0043: Avoid primary constructors on normal classes and structs
- NET-1358 - New Rule T0042: Indent raw string literal +4
- NET-1357 - New Rule T0041: Use raw string literals for multiline strings
- NET-1356 - New Rule T0040: Use minimum necessary interpolation characters
- NET-1355 - New Rule T0039: Protected field should start with lower case letter
- NET-1354 - New Rule T0038: Use fields instead of auto-implemented private or protected properties
- NET-1347 - New Rule T0000: Don't use Get prefixes
- NET-1346 - New Rule T0037: Use .Test suffix namespace
- NET-1345 - New rule T0046: Move extension method to dedicated class
- NET-1344 - New Rule T0035: Do not use var for this deconstruction
- NET-1343 - New Rule T0034: Do not embed var into this condition
- NET-1342 - New Rule T0033: Swap the logic to use positive conditions instead
- NET-1341 - New Rule T0032: Move the method body to the next line
- NET-1339 - New Rule T0030: Move the field initializer on the same line
- NET-1338 - New Rule T0029: Indent all arguments +4 further than the invocation line
- NET-1337 - New Rule T0028: Move all arguments on the same line, or wrap all of them
- NET-1336 - New Rule T0027: Move subsequent expressions on separate lines
- NET-1335 - New Rule T0026: Indent member access +4 further than the initial line
- NET-1334 - New Rule T0025: Indent ‘?’ and ‘:’ +4 further than the condition line
- NET-1333 - New Rule T0024: Place multiline ‘?’ and ‘:’ on separate lines
- NET-1332 - New Rule T0022: Indent all parameters with the first one
- NET-1331 - New Rule T0021: Use extension methods for Linq
- NET-1329 - New Rule T0019: Indent operator correctly
- NET-1328 - New Rule T0018: Move the operator to the beginning of the next line
- NET-1327 - New Rule T0015: Move local function at the end of the method
- NET-1237 - New Rule T0044: Don't add Arrange, Act, and Assert(s) comments
- NET-1325 - Improve T0007: Raise on nondeclaring is { } check