Skip to content

SonarPython 4.2.0.11487

Compare
Choose a tag to compare
@joke1196 joke1196 released this 05 Apr 13:44
· 757 commits to master since this release
bb667e8

Release notes - SonarPython - 4.2

New Feature

SONARPY-1233 Allow import of mypy reports

SONARPY-1301 Rule S5994: Regex patterns following a possessive quantifier should not always fail

SONARPY-1302 Rule S5860: Names of regular expressions named groups should be used

SONARPY-1303 Rule S6001: Back references in regular expressions should only refer to capturing groups that are matched before the reference

SONARPY-1310 Add support of possessive quantifiers in regex parser for Python

SONARPY-1311 Add support of atomic groups in regex parser for Python

SONARPY-1312 Rule S5852: Using slow regular expressions is security-sensitive

SONARPY-1314 Rule S6538: Function returns should have type hints

SONARPY-1315 S6540: Function parameters should have type hints

SONARPY-1316 Rule S6542: Any should not be used as a type hint

SONARPY-1318 Rule S6545: Built-in generic types should be preferred over the typing module in type hints

SONARPY-1319 Rule S6543: Type hints of generic types should have a type parameter

SONARPY-1321 S6546: Union type expressions should be preferred over "typing.Union" in type hints

Task

SONARPY-1324 Update sonar-analyzer-commons dependency to a released version

Improvement

SONARPY-1304 Add quick fix for S6326 (MultipleWhitespaceCheck)

SONARPY-1305 Add quick fix for S6395 (UnquantifiedNonCapturingGroupCheck)

SONARPY-1306 Add quick fix for S6397 (SingleCharCharacterClassCheck)

SONARPY-1307 Add character range validation to S6353 (VerboseRegexCheck)

SONARPY-1308 Add repetition validation to S6353 (VerboseRegexCheck)

SONARPY-1313 Rule S6537: Octal escape sequences should not be used in regular expressions.