Skip to content

SonarPython 3.2

Compare
Choose a tag to compare
@andrea-guarino-sonarsource andrea-guarino-sonarsource released this 01 Feb 13:21
· 1681 commits to master since this release
d0e59d3
    Release Notes - SonarPython - Version 3.2

Bug

  • [SONARPY-799] - Avoid StackOverflow Error in presence of loop in class inheritance
  • [SONARPY-827] - Rule S5780 (DictionaryDuplicateKeyCheck) should not fail when comparing hex long integers

New Feature

  • [SONARPY-791] - S4790 should support "cryptography.hazmat.primitives.hashes"
  • [SONARPY-818] - Parser should allow decorators to be any valid expression
  • [SONARPY-819] - Update Typeshed to support Python 3.9
  • [SONARPY-820] - Type inference: standard collections as generics
  • [SONARPY-822] - Type inference: support typing.Annotated

Task

  • [SONARPY-798] - S4784 should be deprecated because it's too noisy
  • [SONARPY-821] - Update license file headers

False-Positive

  • [SONARPY-704] - Rule S4790 should raise only for weak hashs
  • [SONARPY-814] - RSPEC-1481 (UnusedLocalVars) should not raise on annotated assignments without RHS
  • [SONARPY-815] - RSPEC-1481 (UnusedLocalVars) should not raise on vars used inside f-strings containing conditional expressions
  • [SONARPY-816] - S1720 should not raise on empty __init__.py
  • [SONARPY-817] - InsufficientLineCoverage shouldn't raise issues on empty __init__.py
  • [SONARPY-823] - RSPEC-5607 should not report on Python 3.9 dict union operator