SonarPython 3.7.0.8753
karim-ouerghemmi-sonarsource
released this
05 Nov 15:19
·
1200 commits
to master
since this release
Bug
- [SONARPY-860] - Parse error on `with` statements with parens
New Feature
- [SONARPY-882] - Rule S5850: Alternatives in regular expressions should be grouped when used with anchors
- [SONARPY-883] - Rule S6019 Reluctant quantifiers in regular expressions should be followed by an expression that can't match the empty string
- [SONARPY-884] - Rule S6035 Single-character alternations in regular expressions should be replaced with character classes
- [SONARPY-885] - Rule S5996 Regex boundaries should not be used in a way that can never be matched
- [SONARPY-886] - Rule S5855 Regex alternatives should not be redundant
- [SONARPY-887] - Extend existing RegexParser to parse Python regular expressions
- [SONARPY-888] - Rule S5868 Unicode Grapheme Clusters should be avoided inside regex character classes
- [SONARPY-889] - Rule S5869 Character classes in regular expressions should not contain the same character twice
- [SONARPY-891] - Rule S5857 Character classes should be preferred over reluctant quantifiers in regular expressions
- [SONARPY-892] - Rule S6002 Regex lookahead assertions should not be contradictory
- [SONARPY-893] - Rule S5843 Regular expressions should not be too complicated
- [SONARPY-894] - Rule S5842 Regex repetition pattern's body should not match the empty String
- [SONARPY-895] - Rule S5361 "str.replace" should be preferred to "re.sub"
- [SONARPY-923] - Analyze regex in variables whose values we can infer
Task
- [SONARPY-911] - Provide global regex flags to the parser