github SonarSource/sonar-java 6.10.0.24201

latest releases: 8.6.0.37351, 8.5.0.37199, 8.4.0.37032...
3 years ago
    Release Notes - SonarJava - Version 6.10.0.24201

Bug

  • [SONARJAVA-3056] - Classes for the analysis are loaded with parent first strategy
  • [SONARJAVA-3602] - JavaCheckVerifier does not support consistent behavior when having multiple issues reported on the same line

New Feature

  • [SONARJAVA-3550] - Rule S5994: Regex patterns following a possessive quantifier should not always fail
  • [SONARJAVA-3552] - Rule S5996: Regex boundaries should not be used in a way that can never match
  • [SONARJAVA-3554] - Rule S5998: Regular expressions should not overflow the stack
  • [SONARJAVA-3557] - Rule S6001: Back references in regular expressions should only refer to capturing groups that are matched before the reference
  • [SONARJAVA-3560] - Rule S6002: Regex lookahead assertions should not be contradictory
  • [SONARJAVA-3566] - Rule S5855: Regex alternatives should not be redundant
  • [SONARJAVA-3567] - Rule S6019: Reluctant quantifiers in regular expressions should be followed by an expression that can't match the empty string
  • [SONARJAVA-3572] - Rule S6035: Single-character alternations in regular expressions should be replaced with character classes
  • [SONARJAVA-3608] - Rule S6068: Call to Mockito method "verify", "when" or "given" should be simplified
  • [SONARJAVA-3610] - Rule S6070: The regex escape sequence \cX should only be used with characters in the @-_ range

Task

Improvement

False-Positive

  • [SONARJAVA-3470] - Add more exceptions to S107
  • [SONARJAVA-3545] - Rule S4973 shouldn't report an issue if "==" is used to compare Boolean constants
  • [SONARJAVA-3565] - FP on S1948 when using SpringBean from Apache Wicket
  • [SONARJAVA-3571] - FP on S1948 when collection implements Serializable
  • [SONARJAVA-3577] - FP in S3457 when slf4j log arguments contains a concatenation and a single Throwable
  • [SONARJAVA-3579] - FP in S1170 when class is annotated with @lombok.Builder and field with @default
  • [SONARJAVA-3580] - FP in S2390: do not report an issue on static class nested in the parent.
  • [SONARJAVA-3586] - Support Nullable annotation from reactor-core
  • [SONARJAVA-3598] - FP in S2973 when symbol is in lowercase
  • [SONARJAVA-3599] - FP in S2226 for non final Servlet fields initialized in init() method without parameters
  • [SONARJAVA-3605] - FP in S3305 when field has an initializer
  • [SONARJAVA-3612] - FP in S1185 when class is annotated "@transactional"
  • [SONARJAVA-3613] - FP in S1193 when the catch block contains more code
  • [SONARJAVA-3615] - FP in S1905 when casted argument is a method reference to a varargs.
  • [SONARJAVA-3617] - S1170 should not raise an issue when the initializer contains "this" or "super"
  • [SONARJAVA-3618] - FP on S3438 when "value" is set inside the property tag
  • [SONARJAVA-3619] - FP S2589 when Boolean variable doesn't always evaluate to TRUE/FALSE
  • [SONARJAVA-3621] - Union of Unknown types should be Unknown

False Negative

  • [SONARJAVA-3130] - S3824: raise issue when "containsKey" is used
  • [SONARJAVA-3482] - Support character classes as operand to reluctant quantifier in rule S5857
  • [SONARJAVA-3483] - FN in S5869 with escaped character classes

Don't miss a new sonar-java release

NewReleases is sending notifications on new releases.