Skip to content

Commit 6bf103e

Browse files
committed
[ISSUE 142] new python rule : AvoidMultipleIfElseStatement
1 parent eea176a commit 6bf103e

File tree

7 files changed

+767
-2
lines changed

7 files changed

+767
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Added
1111

1212
- Python rules moved from `ecoCode` repository to current repository
13+
- [#142](https://github.com/green-code-initiative/ecoCode/issues/142) new Python rule : Multiple if-else statement + refactoring implementation
1314
- [#205](https://github.com/green-code-initiative/ecoCode/issues/205) compatibility with SonarQube 10.1
1415

1516
### Changed

src/main/java/fr/greencodeinitiative/python/PythonRuleRepository.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ public List<Class> checkClasses() {
6363
NoFunctionCallWhenDeclaringForLoop.class,
6464
AvoidFullSQLRequest.class,
6565
AvoidListComprehensionInIterations.class,
66-
DetectUnoptimizedImageFormat.class
66+
DetectUnoptimizedImageFormat.class,
67+
AvoidMultipleIfElseStatementCheck.class
6768
);
6869
}
6970
}

0 commit comments

Comments
 (0)