Skip to content

8.40

Compare
Choose a tag to compare
@sonar-dotnet-bot sonar-dotnet-bot released this 31 May 08:51
1032f59

Hi everyone,

In the last sprint, we took the time to reduce the noise by addressing some false positives and improving the handling of static local functions.

Special thanks to @Corniel for his contributions to improving our S4581 rule.

You can find the details below:

New Rules

  • 5616 - [C#] Rule S4581: Add C# code fix
  • 5615 - [VB.NET] Rule S4581: Guid.Empty is preferred for VB.NET

Improvements

  • 5674 - Update rule documentation
  • 5669 - S138: Exclude local static functions from the sum of lines when they are placed in other methods.
  • 5668 - [C#] S3776: Exclude static local functions from complexity computation
  • 5666 - [C#, VB.NET] S4159: Add support for System.Composition.ExportAttribute

False Positive

  • 5264 - [C#] Fix S3242 FP: Don't raise on public methods in controllers
  • 5245 - [C#] Fix S4581 FP: Cannot give method parameter a default value of an empty Guid.