You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+17-6Lines changed: 17 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,24 +5,35 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
+
8
9
## [Unreleased]
9
10
10
11
### Added
11
12
12
-
-[#207](https://github.com/green-code-initiative/ecoCode/issues/207) Add release tag analyzis on SonarCloud
13
-
-[#23](https://github.com/green-code-initiative/ecoCode-ios/pull/23) Docker update (updated SonarQube and sonar-apple versions)
13
+
### Changed
14
+
15
+
### Deleted
16
+
17
+
## [2.0.0]
18
+
19
+
### Added
20
+
21
+
-[#207](https://github.com/green-code-initiative/creedengo/issues/207) Add release tag analysis on SonarCloud
14
22
15
23
### Changed
16
24
25
+
-[#23](https://github.com/green-code-initiative/creedengo-ios/pull/23) Docker update (updated SonarQube and sonar-apple versions)
26
+
-[#37](https://github.com/green-code-initiative/creedengo-ios/issues/37) Renaming to Creedengo
27
+
17
28
### Deleted
18
29
19
30
## [1.1.0]
20
31
21
32
### Changed
22
33
23
-
- Extracted iOS plugin from https://github.com/green-code-initiative/ecoCode-mobile to new repository (https://github.com/green-code-initiative/ecoCode-ios)
24
-
-[#11](https://github.com/green-code-initiative/ecoCode-ios/pull/11) License and source headers update (LGPL v3 to GPL v3)
34
+
- Extracted iOS plugin from https://github.com/green-code-initiative/creedengo-mobile to new repository (https://github.com/green-code-initiative/creedengo-ios)
35
+
-[#11](https://github.com/green-code-initiative/creedengo-ios/pull/11) License and source headers update (LGPL v3 to GPL v3)
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ The iOS plugin is split into 3 different modules:
16
16
17
17
Swift file parser is build using the [ANTLR](https://www.antlr.org/) parser generator.
18
18
19
-
The generated parser source files are located into `swift-lang/src/main/java/io/ecocode/ios/swift/antlr/generated`. Those source files should not be edited manually.
19
+
The generated parser source files are located into `swift-lang/src/main/java/org/greencodeinitiative/creedengo/ios/swift/antlr/generated`. Those source files should not be edited manually.
20
20
21
21
When necessary (in case of Swift language syntax upgrade for example), those source files should be re-generated with ANTLR.
22
22
@@ -30,14 +30,14 @@ When adding a new rule, the following steps are required:
30
30
31
31
### Declaring the rule
32
32
33
-
The new rule must be declared in `swift-lang/src/resources/ecocode_swift_profile.json`
33
+
The new rule must be declared in `swift-lang/src/resources/creedengo_swift_profile.json`
34
34
35
-
> Note: in case the new rule is not available in https://github.com/green-code-initiative/ecoCode/tree/main/ecocode-rules-specifications yet create a matching <RULE_ID>.json ans <RULE_ID>.html in `swift-lang/src/resources/io/ecocode/rules/swift/` to provide rule metadata.
35
+
> Note: in case the new rule is not available in https://github.com/green-code-initiative/creedengo/tree/main/creedengo-rules-specifications yet create a matching <RULE_ID>.json ans <RULE_ID>.html in `swift-lang/src/resources/io/creedengo/rules/swift/` to provide rule metadata.
36
36
37
37
### Implementing a check
38
38
39
-
In order to implement a check for the rule, create a Check class inherited from `SwiftRuleCheck` in `src/main/java/io/ecocode/ios/swift/checks`.
39
+
In order to implement a check for the rule, create a Check class inherited from `SwiftRuleCheck` in `src/main/java/org/greencodeinitiative/creedengo/ios/swift/checks`.
40
40
41
-
Have a look at `swift-lang/src/main/java/io/ecocode/ios/swift/checks/idleness/IdleTimerDisabledCheck` to learn more about the implementation.
41
+
Have a look at `swift-lang/src/main/java/org/greencodeinitiative/creedengo/ios/swift/checks/idleness/IdleTimerDisabledCheck` to learn more about the implementation.
42
42
43
43
Don't forget to add the `@org.sonar.check.Rule` annotation to the check in order to register it to the AST visitor.
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,27 +1,27 @@
1
1

2
2
======================================
3
3
4
-
Mobile apps running on top of battery-limited devices are more than others concerned by the reduction of their environmental footprint. Hence, we created `ecoCode iOS`, the version of ecoCode project fully dedicated to the iOS platform. It provides static code analyzers to highlight code structures that may have a negative ecological impact: energy over-consumption, "fatware", shortening devices' lifespan, etc.
4
+
Mobile apps running on top of battery-limited devices are more than others concerned by the reduction of their environmental footprint. Hence, we created `Creedengo iOS`, the version of Creedengo project fully dedicated to the iOS platform. It provides static code analyzers to highlight code structures that may have a negative ecological impact: energy over-consumption, "fatware", shortening devices' lifespan, etc.
5
5
6
-
ecoCode iOS is based on evolving catalogs of [best practices for iOS](https://github.com/cnumr/best-practices-mobile?#-ios-platform). A SonarQube plugin then implements these catalogs as rules for scanning your projects.
6
+
Creedengo iOS is based on evolving catalogs of [best practices for iOS](https://github.com/cnumr/best-practices-mobile?#-ios-platform). A SonarQube plugin then implements these catalogs as rules for scanning your projects.
ecoCode iOS SonarQube plugin is an "eco-responsibility" static code analyzer for iOS projects written in Swift. Its aim is to detect code smells indicating how the source code can be improved to reduce their environmental and social impact.
15
+
Creedengo iOS SonarQube plugin is an "eco-responsibility" static code analyzer for iOS projects written in Swift. Its aim is to detect code smells indicating how the source code can be improved to reduce their environmental and social impact.
16
16
17
17
🛒 Distribution
18
18
---------------
19
19
20
-
Ready to use binaries are available [from GitHub](https://github.com/green-code-initiative/ecoCode-ios/releases).
20
+
Ready to use binaries are available [from GitHub](https://github.com/green-code-initiative/creedengo-ios/releases).
21
21
22
-
> NB: To work, `ecocode-ios` needs `Swift` language support in SonarQube. For *SonarQube Community Edition* (which does not support Swift language), you need to install an additional plugin like [sonar-apple](https://github.com/insideapp-oss/sonar-apple).
22
+
> NB: To work, `creedengo-ios` needs `Swift` language support in SonarQube. For *SonarQube Community Edition* (which does not support Swift language), you need to install an additional plugin like [sonar-apple](https://github.com/insideapp-oss/sonar-apple).
23
23
24
-
By default ecoCode profile is not activated. To activate ecoCode rules in SonarQube, create a new profile (or extend an existing one) where ecoCode rules are activated. Here is an example:
24
+
By default Creedengo profile is not activated. To activate Creedengo rules in SonarQube, create a new profile (or extend an existing one) where Creedengo rules are activated. Here is an example:
25
25
26
26

27
27
@@ -62,7 +62,7 @@ The tests instance of SonarQube with the plugin will then be available at: [http
62
62
63
63
### Test
64
64
65
-
An iOS test project is available [here](https://github.com/green-code-initiative/ecoCode-mobile-ios-swift-test-project)/
65
+
An iOS test project is available [here](https://github.com/green-code-initiative/creedengo-mobile-ios-swift-test-project)/
66
66
67
67
🤝 Partners
68
68
------------
@@ -85,4 +85,4 @@ An iOS test project is available [here](https://github.com/green-code-initiative
85
85
86
86
If you want to contribute to the project, your help will be greatly appreciated.
87
87
88
-
Start right away by reading [General contribution guide](https://github.com/green-code-initiative/ecoCode-common/blob/main/doc/CONTRIBUTING.md) and the [iOS specific contribution guide](https://github.com/green-code-initiative/ecoCode-ios/blob/main/CONTRIBUTING.md).
88
+
Start right away by reading [General contribution guide](https://github.com/green-code-initiative/creedengo-common/blob/main/doc/CONTRIBUTING.md) and the [iOS specific contribution guide](https://github.com/green-code-initiative/creedengo-ios/blob/main/CONTRIBUTING.md).
0 commit comments