Skip to content

Commit d315613

Browse files
authored
Merge pull request #15 from green-code-initiative/ISSUE_14
[ISSUE 14] correction error on deprecated rule EC34
2 parents 731af81 + ae72814 commit d315613

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
- [#14](https://github.com/green-code-initiative/ecoCode-python/issues/14) Correction of error with deprecated EC34 rule
15+
1416
### Deleted
1517

1618
## [1.4.1] - 2024-01-05
@@ -41,6 +43,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4143
- [#142](https://github.com/green-code-initiative/ecoCode/issues/142) new Python rule : Multiple if-else statement + refactoring implementation
4244
- [#205](https://github.com/green-code-initiative/ecoCode/issues/205) compatibility with SonarQube 10.1
4345

44-
[unreleased]: https://github.com/green-code-initiative/ecoCode-python/compare/v1.4.1...HEAD
45-
[1.4.1]: https://github.com/green-code-initiative/ecoCode-python/compare/v1.4.0...1.4.1
46-
[1.4.0]: https://github.com/green-code-initiative/ecoCode-python/compare/v0.0.0...1.4.0
46+
## Comparison list
47+
48+
[unreleased](https://github.com/green-code-initiative/ecoCode-python/compare/1.4.1...HEAD)
49+
[1.4.1](https://github.com/green-code-initiative/ecoCode-python/compare/1.4.0...1.4.1)
50+
[1.4.0](https://github.com/green-code-initiative/ecoCode-python/releases/tag/1.4.0)

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<mockito.version>5.3.1</mockito.version>
6060

6161
<!-- temporary version waiting for real automatic release in ecocode repository -->
62-
<ecocode-rules-specifications.version>1.4.6</ecocode-rules-specifications.version>
62+
<ecocode-rules-specifications.version>1.4.7</ecocode-rules-specifications.version>
6363

6464
<sonar-analyzer-commons.version>2.5.0.1358</sonar-analyzer-commons.version>
6565

src/main/java/fr/greencodeinitiative/python/checks/AvoidTryCatchWithFileOpenedCheck.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
@Rule(key = "EC35")
3030
@DeprecatedRuleKey(repositoryKey = "gci-python", ruleKey = "S34")
31-
@DeprecatedRuleKey(repositoryKey = "gci-python", ruleKey = "EC34")
31+
@DeprecatedRuleKey(ruleKey = "EC34")
3232
public class AvoidTryCatchWithFileOpenedCheck extends PythonSubscriptionCheck {
3333

3434
public static final String DESCRIPTION = "Avoid the use of try-catch with a file open in try block";

0 commit comments

Comments
 (0)