Skip to content

9.13

Compare
Choose a tag to compare
@SonarTech SonarTech released this 01 Nov 12:40
0b84a16

Hello everyone!

We are happy to announce that we now officially support .Net 8 and C# 12 🚀 🥳

Special thanks to our contributor (and former colleague) @sagi1623 for fixing #8152.

Due to some technical problems, we could not sign the NuGet packages and we did not push them to nuget.org.

Improvements

  • 8234 - [C#, VB.NET] Revert optional plugin support
  • 3682 - [C#, VB.NET] Update S4830: add a message on secondary locations
  • 3694 - [C#] Update S5773: add a message on secondary locations
  • 8159 - Update RSPEC before 9.13 release

Bug Fixes

  • 8024 - [C#] Fix AD0001 in S1144: Implicit object creation inside collection expression

False Positive

  • 8080 - [C#, VB.NET] Fix S2583 FP: Issue is raised when there is comparison to a constant.
  • 8045 - [C#, VB.NET] Fix S2583/S2589 FP: Rule S4158 sets number constraint on Length property, unrelated to Collections.
  • 8041 - [C#, VB.NET] Fix S4158 FP: The analyzer incorrectly concludes the HashSet is guaranteed to be empty
  • 7964 - [C#, VB.NET] Fix S6602 FP: "Find" method should not be used for EF Core queries
  • 7329 - [C#, VB.NET] Fix S2368 FP: Do not raise on extension methods when "this" is multidimensional array
  • 7582 - [C#] Fix S4158 FP: rule raised where there is no guarantees of emptiness
  • 8156 - [C#] Fix S107 FP: Don't raise on Zero-overhead member access methods
  • 8087 - [C#] Fix S3253 FP: Conflicts with CS8983 - A 'struct' with field initializers must include an explicitly declared constructor.
  • 7991 - [C#] Fix S4070 FP: Raised on flagged enum
  • 7935 - [C#] Fix S2092 FP: When the "Secure" field is set in a conditional (may also impact S3330)
  • 7867 - [C#] Fix S5693 FP: custom fileUploadSizeLimit parameter ignored when parsing Web.config files
  • 7714 - [C#] Fix S3928 FP: Parameter names used into ArgumentException constructors should match an existing one
  • 6126 - [C#] Fix S2857 FP: @ parameter with nameof and FN after [tablename]

False Negative

  • 8083 - [C#, VB.NET] Fix S2368 FN: constructors
  • 8070 - [C#, VB.NET] Fix S2234 FN: this and base constructors
  • 8172 - [C#] Fix S1075 FN: Support collections and collection expressions
  • 8143 - [C#] Fix S107 FN: support primary constructors
  • 8131 - [C#] Fix S1117 FN: support primary constructors
  • 8130 - [C#] Fix S4061 FN: support constructors
  • 8129 - [C#] Fix S1075 FN: default parameters
  • 8122 - [C#] Fix S1118 FN: empty primary constructor
  • 8119 - [C#] Fix S3878 FN: collection expressions
  • 8103 - [C#] CalculationsShouldNotOverflow.SyntaxKindWalker reduce allocations and evaluations in the hot path
  • 8096 - [C#] Fix S3254 FN: primary constructors
  • 8092 - [C#] Fix S3253 FN: primary parameterless constructors
  • 8071 - [C#] Fix S2234 FN: primary constructors for records, classes and structs

Performance

  • 8106 - [C#, VB.NET] LightupHelpers CanWrapNode, CanWrapObject and CanWrapOperation are performance sensitive

Breaking changes

  • 8229 - Temporarily disable code signing