Skip to content

sonar-python 2.11

Compare
Choose a tag to compare
@guillaume-dequenne guillaume-dequenne released this 26 May 07:47
· 1841 commits to master since this release
41fd9ee
    Release Notes - SonarPython - Version 2.11

Bug

  • [SONARPY-687] - Analysis stuck when computing type of a long sequence of binary expressions

New Feature

  • [SONARPY-216] - Rule S2201: Return values from functions without side effects should not be ignored
  • [SONARPY-467] - Rule S5549: Function arguments should be passed only once
  • [SONARPY-650] - Rule S2836 - Loops without "break" should not have "else" clauses
  • [SONARPY-663] - Rule S5780: Expressions creating dictionaries should not have duplicate keys
  • [SONARPY-664] - Rule S5781: Expressions creating sets should not have duplicate values
  • [SONARPY-666] - Rule S3984: Exceptions should not be created without being raised
  • [SONARPY-667] - Rule S905: Non-empty statements should change control flow or have at least one side-effect
  • [SONARPY-669] - Rule S2208: Wildcard imports should not be used
  • [SONARPY-672] - Rule S5797 Constants should not be used as conditions
  • [SONARPY-673] - Rule S5795: Identity comparisons should not rely on interpreter's cache
  • [SONARPY-674] - Rule S5796: New objects should not be created just to check their identity

Improvement

  • [SONARPY-684] - Count module-level docstrings as comments