Skip to content

3.20.0.8080

Compare
Choose a tag to compare
@karim-ouerghemmi-sonarsource karim-ouerghemmi-sonarsource released this 13 Sep 13:46
· 461 commits to master since this release
7427173

New Feature

  • [SONARPHP-1180] - Add PCRE recursion feature to regex parser
  • [SONARPHP-1189] - Rule S6035: Single-character alternations in regular expressions should be replaced with character classes
  • [SONARPHP-1190] - Rule S5996: Regex boundaries should not be used in a way that can never be matched
  • [SONARPHP-1191] - Rule S5855: Regex alternatives should not be redundant
  • [SONARPHP-1194] - Rule S5868: Unicode Grapheme Clusters should be avoided inside regex character classes
  • [SONARPHP-1196] - Rule S5869: Character classes in regular expressions should not contain the same character twice
  • [SONARPHP-1199] - Rule S5994: Regex patterns following a possessive quantifier should not always fail
  • [SONARPHP-1202] - Rule S5842: Regex repetition pattern's body should not match the empty String
  • [SONARPHP-1203] - Rule S5361: `str_replace` should be preferred to `preg_replace`

Task

  • [SONARPHP-1216] - Collect statistics to recognize and identify time consumers

Improvement

False-Positive

  • [SONARPHP-1219] - S1808 NamespaceAndUseStatementCheck does not consider group use statements
  • [SONARPHP-1234] - Rule S4792: Invalid exceptions for error_reporting