Skip to content

6.1

Choose a tag to compare

@michalb-sonar michalb-sonar released this 05 Jul 12:25
· 6265 commits to master since this release

Bug

  • #298 - Potential problem in CFG with continue statement in and do-while loop
  • #406 - SonarC# fails when parsing xUnit test results with empty tags
  • #462 - Fix S3897: Classes that provide "Equals()" should implement "IEquatable"
  • #489 - Provide better error message when using old version of Scanner for MSBuild

False Positive

  • #152 - Fix S2583: Rule should consider Nullable values
  • #376 - Fix S3897: Correctly recognize IEquatable implementations from base classes
  • #424 - Update S3427: "Method overloads" should not raise when methods differ by generic type arguments
  • #430 - Update S3237: Add exception for empty properties from interfaces
  • #431 - Fix S1944: don't raise issue on "as"
  • #472 - Fix S2386: Do not raise if the readonly field is initialized with a known immutable collection
  • #473 - Fix S4015: Rule should not raise on 'new' or 'override' members
  • #493 - Fix S2259: "Null pointer dereference" raises FP when a variable is initialized in catch(Exception) block

Improvement

  • #154 - Support many coverage reports
  • #235 - Update S1764: Comparing the same object with Object.Equals() method
  • #322 - Fail fast ITs if not on Windows
  • #380 - [Technical] Improve build scripts to allow building SonarC# on a dev box
  • #388 - Update S1479: "Switch with too many cases" should ignore empty, fall-through cases
  • #420 - S3897 is an unsafe suggestion in my opinion
  • #422 - default() should have a null or not null constraint on it
  • #455 - Add blocks for try-finally statements into CFG, ignoring catch clauses (happy path)
  • #467 - Add blocks in CFG for catch clauses and connect try-finally
  • #468 - Support nested try-catch blocks
  • #486 - Fix spelling errors

New Feature

  • #215 - Rule S3972: Conditionals should start on new lines
  • #433 - Rule S2221: "Exception" should not be caught when not required by called methods
  • #434 - Rule S4039: Interface methods should be callable by derived types
  • #436 - Rule S4041: Type names should not match namespaces
  • #437 - Rule S3927: Serialization event handlers should be implemented correctly
  • #461 - Rule S4035: Classes implementing "IEquatable" should be sealed

Notes