SonarPython 2.7
gyula-sallai-sonarsource
released this
09 Mar 15:29
·
1580 commits
to master
since this release
Release Notes - SonarPython - Version 2.7
New Feature
- [SONARPY-562] - Rule S5747: Bare "raise" statements should only be used in "except" blocks
- [SONARPY-563] - Rule S5704: Bare "raise" should not be used in "finally" blocks
- [SONARPY-564] - Rule S1045: All "except" blocks should be able to catch exceptions
- [SONARPY-566] - Rule S5754: "SystemExit" should be re-raised
- [SONARPY-567] - Rule S5706: Special method "__exit__" should not re-raise the provided exception
- [SONARPY-568] - Rule S5708: Caught Exceptions must derive from BaseException
- [SONARPY-569] - Rule S5709: Custom Exception classes should inherit from "Exception" or one of its subclasses
- [SONARPY-570] - Rule S112: "Exception" and "BaseException" should not be raised
- [SONARPY-571] - Rule S5712: Some special methods should return "NotImplemented" instead of raising "NotImplementedError"
- [SONARPY-572] - Rule S5714: Boolean expressions of exceptions should not be used in "except" statements:
- [SONARPY-573] - Rule S1143: Break, continue and return statements should not occur in "finally" blocks
- [SONARPY-574] - Rule S5713: A subclass should not be in the same "except" statement as a parent class
- [SONARPY-575] - Rule S5707: Exceptions' "__cause__" should be either an Exception or None
- [SONARPY-615] - Rule S5727: Comparison to None should not be constant