diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b6c035fe..fa91ab1f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -65,4 +65,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: mvn -e -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=green-code-initiative_ecocode-android + run: mvn -e -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=green-code-initiative_creedengo-android diff --git a/.github/workflows/build_container.yml b/.github/workflows/build_container.yml index ab582731..b0bb55b6 100644 --- a/.github/workflows/build_container.yml +++ b/.github/workflows/build_container.yml @@ -14,9 +14,9 @@ on: env: # github.repository as / - IMAGE_NAME: sonarqube-ecocode-android + IMAGE_NAME: sonarqube-creedengo-android IMAGES: | - ghcr.io/${{ github.repository_owner }}/sonarqube-ecocode-android + ghcr.io/${{ github.repository_owner }}/sonarqube-creedengo-android PLATFORMS: linux/amd64,linux/arm64/v8 jobs: Build: diff --git a/.github/workflows/tag_release.yml b/.github/workflows/tag_release.yml index b0ae8217..e6ea0f18 100644 --- a/.github/workflows/tag_release.yml +++ b/.github/workflows/tag_release.yml @@ -46,7 +46,7 @@ jobs: id: export_jar_files uses: actions/upload-artifact@v3 with: - name: ecocode-plugins + name: creedengo-plugins path: lib - name: Export UPLOAD_URL id: export_upload_url @@ -60,7 +60,7 @@ jobs: id: import_jar_files uses: actions/download-artifact@v3 with: - name: ecocode-plugins + name: creedengo-plugins path: lib - name: Upload Release Asset - Android Plugin id: upload-release-asset @@ -69,7 +69,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{needs.build.outputs.upload_url}} - asset_path: lib/ecocode-android-${{ github.ref_name }}.jar - asset_name: ecocode-android-${{ github.ref_name }}.jar + asset_path: lib/creedengo-android-${{ github.ref_name }}.jar + asset_name: creedengo-android-${{ github.ref_name }}.jar asset_content_type: application/zip diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ddd6947..a80f0224 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Rebrand ecoCode to Creedengo across code, resources, build files, and docs +- Update contact email to `contact@green-code-initiative.org` +- Keep deprecated rule repository key as `ecocode-android-java` +- Align profile names for Java/XML/Gradle and update Java/XML profile JSON names +- Refine README rebranding wording and structure + ### Deleted ## [1.2.0] - 2026-01-04 @@ -46,19 +52,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Home page URL for plugins (for display on SonarQube administration page) - Add `eco-design` tag on all rules -- [#207](https://github.com/green-code-initiative/ecoCode/issues/207) Add release tag analyzis on SonarCloud +- [#207](https://github.com/green-code-initiative/Creedengo/issues/207) Add release tag analyzis on SonarCloud - [#58](https://github.com/green-code-initiative/ecoCode-android/pull/58) Add Dark UI theme XML rule - Support of SonarQube 10.3 ### Changed -- Rename repository `ecoCode-mobile` to `ecoCode-android` -- Update the rules naming convention to have the same one as the others ecoCode plugin. Rules identifier now starts by `EC`. -- Update built-in profile names to `ecoCode (Android)` +- Rename repository `creedengo-mobile` to `ecoCode-android` +- Update the rules naming convention to have the same one as the others Creedengo plugin. Rules identifier now starts by `EC`. +- Update built-in profile names to `Creedengo (Android)` ### Deleted -- Moved iOS plugin to its [own repository](https://github.com/green-code-initiative/ecoCode-ios). +- Moved iOS plugin to its [own repository](https://github.com/green-code-initiative/creedengo-ios). ## [1.0.1] - 2023-03-10 @@ -70,30 +76,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- [#5](https://github.com/green-code-initiative/ecocode-android/pull/5) Add IOS plugin delivery +- [#5](https://github.com/green-code-initiative/ecoCode-android/pull/5) Add IOS plugin delivery - Add `CONTRIBUTING.md` - Add `CODE_STYLE.md` -- move `INSTALL.md` to common doc in `ecoCode-common` repository +- move `INSTALL.md` to common doc in `creedengo-common` repository ### Changed - upgrade SonarQube version to 9.9 -- [#27](https://github.com/green-code-initiative/ecocode-android/pull/27) preparation for Plugin SonarSource Marketplace integration +- [#27](https://github.com/green-code-initiative/ecoCode-android/pull/27) preparation for Plugin SonarSource Marketplace integration - docker / docker-compose upgrade - update documentation - upgrade RULES -- [#28](https://github.com/green-code-initiative/ecocode-android/pull/28) Add minSdk and targetSdk -- [#4](https://github.com/green-code-initiative/ecocode-android/pull/4) minSdk and targetSdk properties must be supported too -- [#23](https://github.com/green-code-initiative/ecocode-android/issues/23) Fix CodeNarc issue -- [#20](https://github.com/green-code-initiative/ecocode-android/issues/20) Refactoring `cnumr` to `greencodeinitiative` +- [#28](https://github.com/green-code-initiative/ecoCode-android/pull/28) Add minSdk and targetSdk +- [#4](https://github.com/green-code-initiative/ecoCode-android/pull/4) minSdk and targetSdk properties must be supported too +- [#23](https://github.com/green-code-initiative/ecoCode-android/issues/23) Fix CodeNarc issue +- [#20](https://github.com/green-code-initiative/ecoCode-android/issues/20) Refactoring `cnumr` to `greencodeinitiative` ## [0.1.0] - 2023-01-03 ### Added -- [#13](https://github.com/green-code-initiative/ecocode-android/pull/13) Upgrade some versions + sonar version from 9.3 +- [#13](https://github.com/green-code-initiative/ecoCode-android/pull/13) Upgrade some versions + sonar version from 9.3 to 9.8 -- [#14](https://github.com/green-code-initiative/ecocode-android/issues/14) Improve release system +- [#14](https://github.com/green-code-initiative/ecoCode-android/issues/14) Improve release system ### Changed @@ -105,18 +111,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- First official release of ecocode plugins : android plugin +- First official release of creedengo plugins : android plugin -[unreleased]: https://github.com/green-code-initiative/ecoCode/compare/v1.2.0...HEAD +[unreleased]: https://github.com/green-code-initiative/ecoCode-android/compare/v1.2.0...HEAD -[1.2.0]: https://github.com/green-code-initiative/ecoCode/releases/tag/v1.2.0 +[1.2.0]: https://github.com/green-code-initiative/Creedengo/releases/tag/v1.2.0 -[1.1.0]: https://github.com/green-code-initiative/ecoCode/releases/tag/v1.1.0 +[1.1.0]: https://github.com/green-code-initiative/Creedengo/releases/tag/v1.1.0 -[1.0.1]: https://github.com/green-code-initiative/ecoCode/releases/tag/v1.0.1 +[1.0.1]: https://github.com/green-code-initiative/Creedengo/releases/tag/v1.0.1 -[1.0.0]: https://github.com/green-code-initiative/ecoCode/releases/tag/v1.0.0 +[1.0.0]: https://github.com/green-code-initiative/Creedengo/releases/tag/v1.0.0 -[0.1.0]: https://github.com/green-code-initiative/ecoCode/releases/tag/v0.1.0 +[0.1.0]: https://github.com/green-code-initiative/Creedengo/releases/tag/v0.1.0 -[0.0.1]: https://github.com/green-code-initiative/ecoCode/releases/tag/v0.0.1 +[0.0.1]: https://github.com/green-code-initiative/Creedengo/releases/tag/v0.0.1 diff --git a/CITATION.cff b/CITATION.cff index af6ea552..37f4a17c 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -12,6 +12,6 @@ preferred-citation: orcid: "https://orcid.org/0000-0001-5405-1688" - family-names: "Hertout" given-names: "Julien" - title: "ecoCode: A SonarQube Plugin to Remove Energy Smells from Android Projects" + title: "Creedengo: A SonarQube Plugin to Remove Energy Smells from Android Projects" doi: 10.1145/3551349.3559518 year: 2022 diff --git a/CODE_STYLE.md b/CODE_STYLE.md index 86b0ab3f..c46ab38c 100644 --- a/CODE_STYLE.md +++ b/CODE_STYLE.md @@ -1 +1 @@ -Please read common [CODE_STYLE.md](https://github.com/green-code-initiative/ecoCode-common/blob/main/doc/CODE_STYLE.md) in `ecoCode-common` repository. +Please read common [CODE_STYLE.md](https://github.com/green-code-initiative/creedengo-common/blob/main/doc/CODE_STYLE.md) in `creedengo-common` repository. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 89c87ff2..2c487fe9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1 +1 @@ -Please read common [CONTRIBUTING.md](https://github.com/green-code-initiative/ecoCode-common/blob/main/doc/CONTRIBUTING.md) in `ecoCode-common` repository. \ No newline at end of file +Please read common [CONTRIBUTING.md](https://github.com/green-code-initiative/creedengo-common/blob/main/doc/CONTRIBUTING.md) in `creedengo-common` repository. \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 8f8de484..c37a2d41 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,13 @@ FROM maven:3.8-openjdk-11 AS builder -COPY . /usr/src/ecocode +COPY . /usr/src/creedengo -WORKDIR /usr/src/ecocode +WORKDIR /usr/src/creedengo RUN ./tool_prepare-codenarc.sh RUN ./tool_build.sh FROM sonarqube:10.3.0-community USER root -COPY --from=builder /usr/src/ecocode/lib/* /opt/sonarqube/extensions/plugins/ +COPY --from=builder /usr/src/creedengo/lib/* /opt/sonarqube/extensions/plugins/ USER sonarqube diff --git a/INSTALL.md b/INSTALL.md index 7ec0be93..01db94b1 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -1,14 +1,14 @@ - [Common installation notes / requirements](#common-installation-notes--requirements) - [Special points for Android plugins](#special-points-for-android-plugins) - [Project structure](#project-structure) - - [Howto build the SonarQube ecoCode plugins](#howto-build-the-sonarqube-ecocode-plugins) + - [Howto build the SonarQube Creedengo plugins](#howto-build-the-sonarqube-creedengo-plugins) - [Preliminary steps (only Android)](#preliminary-steps-only-android) - [Others steps](#others-steps) Common installation notes / requirements ======================================== -Please read common [INSTALL.md](https://github.com/green-code-initiative/ecoCode-common/blob/main/doc/INSTALL.md) in `ecoCode-common` repository. +Please read common [INSTALL.md](https://github.com/green-code-initiative/creedengo-common/blob/main/doc/INSTALL.md) in `creedengo-common` repository. Special points for Android plugins ================================= @@ -19,7 +19,7 @@ Project structure Here is a preview of project tree : ```txt -ecocode-android # Root directory +creedengo-android # Root directory | +--android-plugin # Android | @@ -30,7 +30,7 @@ ecocode-android # Root directory You will find more information about the plugins’ architecture in their folders -Howto build the SonarQube ecoCode plugins +Howto build the SonarQube Creedengo plugins ----------------------------------------- ### Preliminary steps (only Android) diff --git a/README.md b/README.md index e4f22457..a4ca80ad 100644 --- a/README.md +++ b/README.md @@ -1,35 +1,77 @@ ![Logo](docs/resources/5ekko.png) -====================================== -Mobile apps running on top of battery-limited, android-powered devices are more than others concerned by the reduction of their environmental footprint. Hence, we created `ecoCode android`, the version of ecoCode project fully dedicated to the Android 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. - -ecoCode android is based on an evolving catalog of [best practices for Android](https://github.com/cnumr/best-practices-mobile#-android-platform). A SonarQube plugin then implements this catalog as rules for scanning your native Android projects **written in Java only**. To learn more, take a look at the [complete presentation](docs/resources/devfest-2022.pdf) (:fr:) or the [presentation in a nutshell](docs/resources/apidays-2022.pdf). A hands-on [tutorial](https://olegoaer.perso.univ-pau.fr/green-it-summer-school/ecoCode/lab.html) and free demo access is also available (:fr:). +# Creedengo Android Java [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) -🌿 SonarQube Plugin +Creedengo is a collective project aiming to reduce the environmental footprint of software at the code level. This repository hosts the Android-focused plugin, originally released as `ecoCode android` and now branded as **Creedengo Android Java**. + +It provides static code analyzers to highlight code structures that may have a negative ecological impact: energy over-consumption, "fatware", shortening devices' lifespan, etc. + +The project is based on an evolving catalog of [best practices for Android](https://github.com/cnumr/best-practices-mobile#-android-platform). A SonarQube plugin implements this catalog as rules for scanning native Android projects **written in Java only**. + +Resources: +- [Complete presentation](docs/resources/devfest-2022.pdf) (FR) +- [Presentation in a nutshell](docs/resources/apidays-2022.pdf) +- [Hands-on tutorial](https://olegoaer.perso.univ-pau.fr/green-it-summer-school/ecoCode/lab.html) (FR, ecoCode name) + +🌿 SonarQube plugin ------------------- ![Screenshot](android-plugin/docs/screenshot.png) The custom GUI above is reserved to educational purpose only. +This plugin targets: +- Android Java source code +- Android XML configurations +- Gradle build files (Groovy) + 🚀 Quickstart ------------- -A SonarQube container image with ecoCode Android embedded exists ! +A SonarQube container image with Creedengo Android Java embedded exists! ```bash docker run -ti --rm \ - -v sq_ecocode_android_logs:/opt/sonarqube/logs \ - -v sq_ecocode_android_data:/opt/sonarqube/data \ + -v sq_creedengo_android_logs:/opt/sonarqube/logs \ + -v sq_creedengo_android_data:/opt/sonarqube/data \ -p 9000:9000 \ - --name sonarqube-ecocode-android \ - ghcr.io/green-code-initiative/sonarqube-ecocode-android:latest + --name sonarqube-creedengo-android \ + ghcr.io/green-code-initiative/sonarqube-creedengo-android:latest ``` Wait a little bit during first start initialization, and go to [http://localhost:9000](http://localhost:9000). Default credentials are `admin`/`admin` +🛒 Distribution +--------------- + +Ready to use binaries are available [from GitHub](https://github.com/green-code-initiative/creedengo-java-android/releases). + +🧩 Plugins version compatibility +------------------ + +| Plugins Version | SonarQube version | +|-----------------|-----------------------------| +| 0.0.+ | SonarQube 8.9.+ LTS to 9.3 | +| 0.1.+ | SonarQube 9.4.+ LTS to 9.9 | +| 1.0.+ | SonarQube 9.4.+ LTS to 9.9 | +| 1.1.+ | SonarQube 9.4.+ LTS to 10.3 | + +☕ Plugin Java part compatibility +------------------ + +| Plugins Version | Java version | +|------------------|--------------| +| 0.0.+ | 11 / 17 | +| 0.1.+ | 11 / 17 | +| 1.0.+ | 11 / 17 | +| 1.1.+ | 11 / 17 | + +🤝 Contributing +--------------- + +Have an idea or want to help? We welcome contributions. See `CONTRIBUTING.md` and the related guides. 🤝 Partners ------------ @@ -42,12 +84,12 @@ Wait a little bit during first start initialization, and go to [http://localhost 📢 Cite this work ------------------ -If you use ecoCode in an academic work we would be really glad if you cite our seminal paper using the following bibtex entry: +If you use Creedengo in an academic work we would be really glad if you cite our seminal paper using the following bibtex entry: ```bibtex @inproceedings{10.1145/3551349.3559518, author = {Le Goaer, Olivier and Hertout, Julien}, - title = {ecoCode: A SonarQube Plugin to Remove Energy Smells from Android Projects}, + title = {Creedengo: A SonarQube Plugin to Remove Energy Smells from Android Projects}, year = {2023}, isbn = {9781450394758}, publisher = {Association for Computing Machinery}, @@ -62,28 +104,3 @@ If you use ecoCode in an academic work we would be really glad if you cite our s series = {ASE22} } ``` - -🛒 Distribution ---------------- - -Ready to use binaries are available [from GitHub](https://github.com/green-code-initiative/ecocode-android/releases). - -🧩 Plugins version compatibility ------------------- - -| Plugins Version | SonarQube version | -|-----------------|-----------------------------| -| 0.0.+ | SonarQube 8.9.+ LTS to 9.3 | -| 0.1.+ | SonarQube 9.4.+ LTS to 9.9 | -| 1.0.+ | SonarQube 9.4.+ LTS to 9.9 | -| 1.1.+ | SonarQube 9.4.+ LTS to 10.3 | - -☕ Plugin Java part compatibility ------------------- - -| Plugins Version | Java version | -|------------------|--------------| -| 0.0.+ | 11 / 17 | -| 0.1.+ | 11 / 17 | -| 1.0.+ | 11 / 17 | -| 1.1.+ | 11 / 17 | diff --git a/android-plugin/CONTRIBUTING.md b/android-plugin/CONTRIBUTING.md index 5daed169..cc64d3c4 100644 --- a/android-plugin/CONTRIBUTING.md +++ b/android-plugin/CONTRIBUTING.md @@ -4,7 +4,7 @@ Contributing Guidelines Contributions are welcome! **Before spending lots of time on something, ask for feedback on your idea first.** -Contact us at to be sure that we are interested with your contribution idea. +Contact us at to be sure that we are interested with your contribution idea. To avoid frustration, please discuss before submitting any contributions. @@ -33,7 +33,7 @@ Plugin-specific recommendations Choose a rule within the [table of unimplemented android-specific rules](RULES.md). When submitting a *Pull Request* with your code, give it the following name: `[] `, along with both labels `android` and `rule` to ease the work of reviewers. ### Naming conventions -Before submitting an Android-specific SonarQube custom rule, please take a look at our [naming conventions](https://doc.rules.ecocode.io/#how-to-specify-rules). +Before submitting an Android-specific SonarQube custom rule, please take a look at our [naming conventions](https://doc.rules.creedengo.io/#how-to-specify-rules). ### Avoid doing things the hard way -Idealy, take also a look at the [helpers fonctions](./src/main/java/io/ecocode/java/checks/helpers). +Idealy, take also a look at the [helpers fonctions](./src/main/java/io/creedengo/java/checks/helpers). diff --git a/android-plugin/NOTICE.txt b/android-plugin/NOTICE.txt index f19ec54a..9a20ff59 100644 --- a/android-plugin/NOTICE.txt +++ b/android-plugin/NOTICE.txt @@ -1,3 +1,3 @@ -ecoCode SonarQube plugin +Creedengo SonarQube plugin Copyright (C) 2020-2021 Snapp' - Université de Pau et des Pays de l'Adour -mailto: contact@ecocode.io +mailto: contact@green-code-initiative.org diff --git a/android-plugin/README.md b/android-plugin/README.md index d580c61a..1128d8ed 100644 --- a/android-plugin/README.md +++ b/android-plugin/README.md @@ -1,9 +1,9 @@ -ecoCode Android SonarQube plugin +Creedengo Android Java SonarQube plugin ================================ ![Logo Ekko](docs/ekko-sonar.png) -ecoCode Android SonarQube plugin is an "eco-responsibility" static code analyzer for native Android projects written in Java (Kotlin unsupported yet). Its aim is to detect code smells to indicate weither the source code can be improved to reduce their environmental and social impact. +Creedengo Android Java SonarQube plugin is an "eco-responsibility" static code analyzer for native Android projects written in Java (Kotlin unsupported yet). Its aim is to detect code smells to indicate weither the source code can be improved to reduce their environmental and social impact. Build and deploy the plugin --------------------------- @@ -39,8 +39,8 @@ where `FusedLocationCheckTest` is the test to run. Tests are located under: -- [/src/test/java/io/ecocode/java](./src/test/java/io/ecocode/java) -- [/src/test/java/io/ecocode/xml](./src/test/java/io/ecocode/xml) +- [/src/test/java/io/creedengo/java](./src/test/java/io/creedengo/java) +- [/src/test/java/io/creedengo/xml](./src/test/java/io/creedengo/xml) ### Plugin build @@ -95,7 +95,7 @@ Plugin usage ------------ The plugin contains two sets of rules, one for Java and one for XML. They can be found in the **Quality profiles** section of -SonarQube (*ecoCode* profiles). +SonarQube (*Creedengo* profiles). Do not forget to set them as "DEFAULT" or to configure your Android project on SonarQube to use these profiles before performing an analysis. @@ -108,16 +108,16 @@ Plugin development For Java rules: -- Java rules’ code can be found in: [./src/main/java/io/ecocode/java](./src/main/java/io/ecocode/java) +- Java rules’ code can be found in: [./src/main/java/io/creedengo/java](./src/main/java/io/creedengo/java) - Java rules’ definition can be found in: [./src/main/resources/org/sonar/l10n/java/rules/squid](./src/main/resources/org/sonar/l10n/java/rules/squid). Please do not add / or modify rules here since the code is generated. To update or add a rule, please reach us though our mail - , prior to submitting any code change. -- Java rules’ tests can be found in: [./src/test/java/io/ecocode/java](./src/test/java/io/ecocode/java). One file = one rule. + , prior to submitting any code change. +- Java rules’ tests can be found in: [./src/test/java/io/creedengo/java](./src/test/java/io/creedengo/java). One file = one rule. For XML rules: -- XML rules’ code can be found in: [./src/main/java/io/ecocode/xml](./src/main/java/io/ecocode/xml) -- XML rules’ definition can be found in: [./src/main/resources/io/ecocode/xml/rules](./src/main/resources/io/ecocode/xml/rules). +- XML rules’ code can be found in: [./src/main/java/io/creedengo/xml](./src/main/java/io/creedengo/xml) +- XML rules’ definition can be found in: [./src/main/resources/io/creedengo/xml/rules](./src/main/resources/io/creedengo/xml/rules). Please do not add / or modifiy rules here since the code is generated. To update or add a rule, please reach us though our mail - , prior to submitting any code change. -- XML rules’ tests can be found in: [./src/test/java/io/ecocode/xml](./src/test/java/io/ecocode/xml). One file = one rule. + , prior to submitting any code change. +- XML rules’ tests can be found in: [./src/test/java/io/creedengo/xml](./src/test/java/io/creedengo/xml). One file = one rule. diff --git a/android-plugin/docker-compose.yml b/android-plugin/docker-compose.yml index 9cc7ce14..5490a230 100644 --- a/android-plugin/docker-compose.yml +++ b/android-plugin/docker-compose.yml @@ -2,7 +2,7 @@ version: "3.3" services: sonar: image: sonarqube:9.9-community - container_name: sonar_ecocode_android + container_name: sonar_creedengo_android ports: - "9000:9000" networks: @@ -16,14 +16,14 @@ services: SONAR_ES_BOOTSTRAP_CHECKS_DISABLE: 'true' volumes: - type: bind - source: ./target/ecocode-android-1.1.1-SNAPSHOT.jar - target: /opt/sonarqube/extensions/plugins/ecocode-android-1.1.1-SNAPSHOT.jar + source: ./target/creedengo-android-1.1.1-SNAPSHOT.jar + target: /opt/sonarqube/extensions/plugins/creedengo-android-1.1.1-SNAPSHOT.jar - "logs:/opt/sonarqube/logs" - "data:/opt/sonarqube/data" db: image: postgres:12 - container_name: postgresql_ecocode_android + container_name: postgresql_creedengo_android networks: - sonarnet volumes: diff --git a/android-plugin/pom.xml b/android-plugin/pom.xml index 11987a02..2f8221e3 100644 --- a/android-plugin/pom.xml +++ b/android-plugin/pom.xml @@ -3,18 +3,18 @@ 4.0.0 - io.ecocode - ecocode-android-parent - 1.2.1-SNAPSHOT + io.creedengo + creedengo-android-parent + 2.0.0-SNAPSHOT - ecocode-android + creedengo-android sonar-plugin - ecoCode Android plugin + Creedengo Android Java plugin Help the earth, adopt this green plugin for your applications 2020 - https://github.com/green-code-initiative/ecocode-android/tree/main/android-plugin + https://github.com/green-code-initiative/creedengo-java-android/tree/main/android-plugin 1.21 @@ -222,9 +222,9 @@ sonar-packaging-maven-plugin true - ecocodeandroid + creedengoandroid ${project.name} - io.ecocode.EcoCodeRulesPlugin + io.creedengo.CreedengoRulesPlugin true ${sonarqube.version} ${java.version} diff --git a/android-plugin/src/main/java/io/ecocode/EcoCodeRulesPlugin.java b/android-plugin/src/main/java/io/creedengo/CreedengoRulesPlugin.java similarity index 75% rename from android-plugin/src/main/java/io/ecocode/EcoCodeRulesPlugin.java rename to android-plugin/src/main/java/io/creedengo/CreedengoRulesPlugin.java index 85c97bbc..7426c43f 100644 --- a/android-plugin/src/main/java/io/ecocode/EcoCodeRulesPlugin.java +++ b/android-plugin/src/main/java/io/creedengo/CreedengoRulesPlugin.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,14 +15,14 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode; +package io.creedengo; -import io.ecocode.java.JavaEcoCodeProfile; -import io.ecocode.java.JavaFileCheckRegistrar; -import io.ecocode.java.JavaRulesDefinition; -import io.ecocode.xml.XmlEcoCodeProfile; -import io.ecocode.xml.XmlRulesDefinition; -import io.ecocode.xml.XmlSensor; +import io.creedengo.java.JavaCreedengoProfile; +import io.creedengo.java.JavaFileCheckRegistrar; +import io.creedengo.java.JavaRulesDefinition; +import io.creedengo.xml.XmlCreedengoProfile; +import io.creedengo.xml.XmlRulesDefinition; +import io.creedengo.xml.XmlSensor; import org.sonar.api.Plugin; import org.sonar.api.config.PropertyDefinition; import org.sonar.api.resources.Qualifiers; @@ -33,9 +33,9 @@ /** * Entry point of your plugin containing your custom rules */ -public class EcoCodeRulesPlugin implements Plugin { +public class CreedengoRulesPlugin implements Plugin { - public static final String FILE_SUFFIXES_KEY = "ecocode.xml.file.suffixes"; + public static final String FILE_SUFFIXES_KEY = "creedengo.xml.file.suffixes"; @Override public void define(Context context) { @@ -46,7 +46,7 @@ public void define(Context context) { // batch extensions -> objects are instantiated during code analysis context.addExtension(JavaFileCheckRegistrar.class); // === Add Java rules profile === - context.addExtension(JavaEcoCodeProfile.class); + context.addExtension(JavaCreedengoProfile.class); // === Add XML rules extension === context.addExtensions( PropertyDefinition.builder(FILE_SUFFIXES_KEY) @@ -58,7 +58,7 @@ public void define(Context context) { .onQualifiers(Qualifiers.PROJECT) .build(), XmlRulesDefinition.class, - XmlEcoCodeProfile.class, + XmlCreedengoProfile.class, XmlSensor.class); // === Add Groovy rules extension === context.addExtensions(Groovy.getExtensions()) diff --git a/android-plugin/src/main/java/io/ecocode/java/Java.java b/android-plugin/src/main/java/io/creedengo/java/Java.java similarity index 56% rename from android-plugin/src/main/java/io/ecocode/java/Java.java rename to android-plugin/src/main/java/io/creedengo/java/Java.java index 3a8fdd5a..614a5fec 100644 --- a/android-plugin/src/main/java/io/ecocode/java/Java.java +++ b/android-plugin/src/main/java/io/creedengo/java/Java.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,13 +15,13 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java; +package io.creedengo.java; public interface Java { //NOSONAR - we use the interface for constant without inheriting it - String REPOSITORY_NAME = "ecoCode (Android)"; + String REPOSITORY_NAME = "Creedengo (Android Java)"; String KEY = "java"; - String REPOSITORY_KEY = "ecocode-android-java"; - String RULES_SPECIFICATIONS_JAVA_PATH = "/io/ecocode/rules/java"; //NOSONAR - this URI is the same everywhere - String PROFILE_NAME = "ecoCode (Android)"; - String PROFILE_PATH = "io/ecocode/android/java/ecocode_java_profile.json"; + String REPOSITORY_KEY = "creedengo-android-java"; + String RULES_SPECIFICATIONS_JAVA_PATH = "/io/creedengo/rules/java"; //NOSONAR - this URI is the same everywhere + String PROFILE_NAME = "Creedengo (Android Java)"; + String PROFILE_PATH = "io/creedengo/android/java/creedengo_java_profile.json"; } diff --git a/android-plugin/src/main/java/io/ecocode/java/JavaCheckList.java b/android-plugin/src/main/java/io/creedengo/java/JavaCheckList.java similarity index 72% rename from android-plugin/src/main/java/io/ecocode/java/JavaCheckList.java rename to android-plugin/src/main/java/io/creedengo/java/JavaCheckList.java index ac6e6c90..9407905a 100644 --- a/android-plugin/src/main/java/io/ecocode/java/JavaCheckList.java +++ b/android-plugin/src/main/java/io/creedengo/java/JavaCheckList.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,23 +15,23 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java; +package io.creedengo.java; -import io.ecocode.java.checks.environment.batch.JobCoalesceRule; -import io.ecocode.java.checks.environment.batch.SensorCoalesceRule; -import io.ecocode.java.checks.environment.bottleneck.InternetInTheLoopRule; -import io.ecocode.java.checks.environment.bottleneck.UncompressedDataTransmissionRule; -import io.ecocode.java.checks.environment.bottleneck.WifiMulticastLockRule; -import io.ecocode.java.checks.environment.idleness.*; -import io.ecocode.java.checks.environment.leakage.*; -import io.ecocode.java.checks.environment.optimized_api.BluetoothLowEnergyRule; -import io.ecocode.java.checks.environment.optimized_api.FusedLocationRule; -import io.ecocode.java.checks.environment.power.ChargeAwarenessRule; -import io.ecocode.java.checks.environment.power.SaveModeAwarenessRule; -import io.ecocode.java.checks.environment.sobriety.*; -import io.ecocode.java.checks.social.gdpr.GoogleAndroidAdsConsentRule; -import io.ecocode.java.checks.social.privacy.GoogleTrackerRule; -import io.ecocode.java.checks.social.privacy.TrackingIdRule; +import io.creedengo.java.checks.environment.batch.JobCoalesceRule; +import io.creedengo.java.checks.environment.batch.SensorCoalesceRule; +import io.creedengo.java.checks.environment.bottleneck.InternetInTheLoopRule; +import io.creedengo.java.checks.environment.bottleneck.UncompressedDataTransmissionRule; +import io.creedengo.java.checks.environment.bottleneck.WifiMulticastLockRule; +import io.creedengo.java.checks.environment.idleness.*; +import io.creedengo.java.checks.environment.leakage.*; +import io.creedengo.java.checks.environment.optimized_api.BluetoothLowEnergyRule; +import io.creedengo.java.checks.environment.optimized_api.FusedLocationRule; +import io.creedengo.java.checks.environment.power.ChargeAwarenessRule; +import io.creedengo.java.checks.environment.power.SaveModeAwarenessRule; +import io.creedengo.java.checks.environment.sobriety.*; +import io.creedengo.java.checks.social.gdpr.GoogleAndroidAdsConsentRule; +import io.creedengo.java.checks.social.privacy.GoogleTrackerRule; +import io.creedengo.java.checks.social.privacy.TrackingIdRule; import org.sonar.plugins.java.api.JavaCheck; import java.util.ArrayList; diff --git a/android-plugin/src/main/java/io/ecocode/java/JavaEcoCodeProfile.java b/android-plugin/src/main/java/io/creedengo/java/JavaCreedengoProfile.java similarity index 60% rename from android-plugin/src/main/java/io/ecocode/java/JavaEcoCodeProfile.java rename to android-plugin/src/main/java/io/creedengo/java/JavaCreedengoProfile.java index 56a50987..35458cd2 100644 --- a/android-plugin/src/main/java/io/ecocode/java/JavaEcoCodeProfile.java +++ b/android-plugin/src/main/java/io/creedengo/java/JavaCreedengoProfile.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,17 +15,17 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java; +package io.creedengo.java; import org.sonar.api.server.profile.BuiltInQualityProfilesDefinition; import org.sonarsource.analyzer.commons.BuiltInQualityProfileJsonLoader; -public class JavaEcoCodeProfile implements BuiltInQualityProfilesDefinition { +public class JavaCreedengoProfile implements BuiltInQualityProfilesDefinition { @Override public void define(Context context) { - NewBuiltInQualityProfile ecoCodeProfile = context.createBuiltInQualityProfile(Java.PROFILE_NAME, Java.KEY); - BuiltInQualityProfileJsonLoader.load(ecoCodeProfile, Java.REPOSITORY_KEY, Java.PROFILE_PATH); - ecoCodeProfile.done(); + NewBuiltInQualityProfile creedengoProfile = context.createBuiltInQualityProfile(Java.PROFILE_NAME, Java.KEY); + BuiltInQualityProfileJsonLoader.load(creedengoProfile, Java.REPOSITORY_KEY, Java.PROFILE_PATH); + creedengoProfile.done(); } } diff --git a/android-plugin/src/main/java/io/ecocode/java/JavaFileCheckRegistrar.java b/android-plugin/src/main/java/io/creedengo/java/JavaFileCheckRegistrar.java similarity index 90% rename from android-plugin/src/main/java/io/ecocode/java/JavaFileCheckRegistrar.java rename to android-plugin/src/main/java/io/creedengo/java/JavaFileCheckRegistrar.java index c9a72e20..ba66a53c 100644 --- a/android-plugin/src/main/java/io/ecocode/java/JavaFileCheckRegistrar.java +++ b/android-plugin/src/main/java/io/creedengo/java/JavaFileCheckRegistrar.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java; +package io.creedengo.java; import java.util.ArrayList; import java.util.List; diff --git a/android-plugin/src/main/java/io/ecocode/java/JavaRulesDefinition.java b/android-plugin/src/main/java/io/creedengo/java/JavaRulesDefinition.java similarity index 95% rename from android-plugin/src/main/java/io/ecocode/java/JavaRulesDefinition.java rename to android-plugin/src/main/java/io/creedengo/java/JavaRulesDefinition.java index 8e8f662f..c70d3fcf 100644 --- a/android-plugin/src/main/java/io/ecocode/java/JavaRulesDefinition.java +++ b/android-plugin/src/main/java/io/creedengo/java/JavaRulesDefinition.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java; +package io.creedengo.java; import com.google.gson.Gson; import java.io.BufferedReader; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/batch/JobCoalesceRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/batch/JobCoalesceRule.java similarity index 92% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/batch/JobCoalesceRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/batch/JobCoalesceRule.java index fd2fb9fd..b4c83c51 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/batch/JobCoalesceRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/batch/JobCoalesceRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.batch; +package io.creedengo.java.checks.environment.batch; import org.sonar.check.Rule; import org.sonar.plugins.java.api.IssuableSubscriptionVisitor; @@ -31,7 +31,7 @@ * Checks also the call of "onPerformSync" & "getSyncAdapterBinder" from "android.content.AbstractThreadedSyncAdapter". */ @Rule(key = "EC501") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "EBAT003") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "EBAT003") public class JobCoalesceRule extends IssuableSubscriptionVisitor { private static final String ALARM_MANAGER_CLASS = "android.app.AlarmManager"; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/batch/SensorCoalesceRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/batch/SensorCoalesceRule.java similarity index 90% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/batch/SensorCoalesceRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/batch/SensorCoalesceRule.java index 0b32073c..b77eb4fa 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/batch/SensorCoalesceRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/batch/SensorCoalesceRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.batch; +package io.creedengo.java.checks.environment.batch; -import io.ecocode.java.checks.helpers.CheckArgumentComplexTypeUtils; +import io.creedengo.java.checks.helpers.CheckArgumentComplexTypeUtils; import org.sonar.check.Rule; import org.sonar.plugins.java.api.IssuableSubscriptionVisitor; import org.sonar.plugins.java.api.semantic.MethodMatchers; @@ -35,7 +35,7 @@ * If it isn't present, report issue. */ @Rule(key = "EC500") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "EBAT002") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "EBAT002") public class SensorCoalesceRule extends IssuableSubscriptionVisitor { private final MethodMatchers sensorListenerMethodMatcher = MethodMatchers.create().ofTypes("android.hardware.SensorManager").names("registerListener").withAnyParameters().build(); diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/bottleneck/InternetInTheLoopRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/bottleneck/InternetInTheLoopRule.java similarity index 88% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/bottleneck/InternetInTheLoopRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/bottleneck/InternetInTheLoopRule.java index 8f8081ef..2cefc176 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/bottleneck/InternetInTheLoopRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/bottleneck/InternetInTheLoopRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.bottleneck; +package io.creedengo.java.checks.environment.bottleneck; import org.sonar.check.Rule; import org.sonar.plugins.java.api.IssuableSubscriptionVisitor; @@ -31,7 +31,7 @@ * Not thrown if openConnection() call is deported into an other method. */ @Rule(key = "EC502") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "EBOT001") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "EBOT001") public class InternetInTheLoopRule extends IssuableSubscriptionVisitor { private static final String ERROR_MESSAGE = "Internet connection should not be opened in loops to preserve the battery."; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/bottleneck/UncompressedDataTransmissionRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/bottleneck/UncompressedDataTransmissionRule.java similarity index 92% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/bottleneck/UncompressedDataTransmissionRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/bottleneck/UncompressedDataTransmissionRule.java index 6e9e5ada..39bc5d0a 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/bottleneck/UncompressedDataTransmissionRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/bottleneck/UncompressedDataTransmissionRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.bottleneck; +package io.creedengo.java.checks.environment.bottleneck; import java.util.List; @@ -32,7 +32,7 @@ import org.sonar.plugins.java.api.tree.Tree; import org.sonar.plugins.java.api.tree.VariableTree; -import io.ecocode.java.checks.helpers.CheckArgumentComplexTypeUtils; +import io.creedengo.java.checks.helpers.CheckArgumentComplexTypeUtils; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; /** @@ -41,7 +41,7 @@ * - if a constructor is called with for parameter getOutputStream, reports the issue if the constructor isn't a GZIPOutputStream. */ @Rule(key = "EC504") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "EBOT003") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "EBOT003") public class UncompressedDataTransmissionRule extends IssuableSubscriptionVisitor { private static final Logger LOG = Loggers.get(UncompressedDataTransmissionRule.class); diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/bottleneck/WifiMulticastLockRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/bottleneck/WifiMulticastLockRule.java similarity index 77% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/bottleneck/WifiMulticastLockRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/bottleneck/WifiMulticastLockRule.java index 997cb8af..073df189 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/bottleneck/WifiMulticastLockRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/bottleneck/WifiMulticastLockRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.bottleneck; +package io.creedengo.java.checks.environment.bottleneck; -import io.ecocode.java.checks.helpers.OpeningClosingMethodCheck; +import io.creedengo.java.checks.helpers.OpeningClosingMethodCheck; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -27,7 +27,7 @@ * @see OpeningClosingMethodCheck */ @Rule(key = "EC503") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "EBOT002") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "EBOT002") public class WifiMulticastLockRule extends OpeningClosingMethodCheck { private static final String ERROR_MESSAGE = "Failing to call WifiManager.MulticastLock#release() can cause a noticeable battery drain."; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/idleness/ContinuousRenderingRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/idleness/ContinuousRenderingRule.java similarity index 75% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/idleness/ContinuousRenderingRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/idleness/ContinuousRenderingRule.java index 38ba8c9d..e483a890 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/idleness/ContinuousRenderingRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/idleness/ContinuousRenderingRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.idleness; +package io.creedengo.java.checks.environment.idleness; -import io.ecocode.java.checks.helpers.constant.FlagOnMethodCheck; +import io.creedengo.java.checks.helpers.constant.FlagOnMethodCheck; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -26,7 +26,7 @@ * If argument value is "1" report issue. */ @Rule(key = "EC510") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "EIDL008") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "EIDL008") public class ContinuousRenderingRule extends FlagOnMethodCheck { public ContinuousRenderingRule() { diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/idleness/DurableWakeLockRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/idleness/DurableWakeLockRule.java similarity index 85% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/idleness/DurableWakeLockRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/idleness/DurableWakeLockRule.java index 2de179af..95d3c2ed 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/idleness/DurableWakeLockRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/idleness/DurableWakeLockRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.idleness; +package io.creedengo.java.checks.environment.idleness; import org.sonar.check.Rule; import org.sonar.plugins.java.api.IssuableSubscriptionVisitor; @@ -31,7 +31,7 @@ * Reports an issue if found without any parameters. */ @Rule(key = "EC508") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "EIDL006") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "EIDL006") public class DurableWakeLockRule extends IssuableSubscriptionVisitor { private String methodOwnerType = "android.os.PowerManager$WakeLock"; private String methodName = "acquire"; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/idleness/KeepCpuOnRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/idleness/KeepCpuOnRule.java similarity index 75% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/idleness/KeepCpuOnRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/idleness/KeepCpuOnRule.java index e76b95e5..91a75da9 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/idleness/KeepCpuOnRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/idleness/KeepCpuOnRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.idleness; +package io.creedengo.java.checks.environment.idleness; -import io.ecocode.java.checks.helpers.SpecificMethodCheck; +import io.creedengo.java.checks.helpers.SpecificMethodCheck; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -26,7 +26,7 @@ * Reports an issue if found. */ @Rule(key = "EC507") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "EIDL004") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "EIDL004") public class KeepCpuOnRule extends SpecificMethodCheck { diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/idleness/KeepScreenOnAddFlagsRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/idleness/KeepScreenOnAddFlagsRule.java similarity index 75% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/idleness/KeepScreenOnAddFlagsRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/idleness/KeepScreenOnAddFlagsRule.java index 2b90c033..a856ff3b 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/idleness/KeepScreenOnAddFlagsRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/idleness/KeepScreenOnAddFlagsRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.idleness; +package io.creedengo.java.checks.environment.idleness; -import io.ecocode.java.checks.helpers.constant.FlagOnMethodCheck; +import io.creedengo.java.checks.helpers.constant.FlagOnMethodCheck; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -25,7 +25,7 @@ * Check the call of "FLAG_KEEP_SCREEN_ON" on the method "addFlags" of "android.view.Window". */ @Rule(key = "EC505") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "EIDL001") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "EIDL001") public class KeepScreenOnAddFlagsRule extends FlagOnMethodCheck { public KeepScreenOnAddFlagsRule() { diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/idleness/KeepScreenOnSetFlagsRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/idleness/KeepScreenOnSetFlagsRule.java similarity index 75% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/idleness/KeepScreenOnSetFlagsRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/idleness/KeepScreenOnSetFlagsRule.java index c4429fec..ce55b4d0 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/idleness/KeepScreenOnSetFlagsRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/idleness/KeepScreenOnSetFlagsRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.idleness; +package io.creedengo.java.checks.environment.idleness; -import io.ecocode.java.checks.helpers.constant.FlagOnMethodCheck; +import io.creedengo.java.checks.helpers.constant.FlagOnMethodCheck; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -25,7 +25,7 @@ * Check the call of "FLAG_KEEP_SCREEN_ON" on the method "setFlags" (both parameters) of "android.view.Window". */ @Rule(key = "EC506") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "EIDL002") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "EIDL002") public class KeepScreenOnSetFlagsRule extends FlagOnMethodCheck { public KeepScreenOnSetFlagsRule() { diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/idleness/KeepVoiceAwakeRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/idleness/KeepVoiceAwakeRule.java similarity index 93% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/idleness/KeepVoiceAwakeRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/idleness/KeepVoiceAwakeRule.java index 0dd11c2e..5ab034e3 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/idleness/KeepVoiceAwakeRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/idleness/KeepVoiceAwakeRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.idleness; +package io.creedengo.java.checks.environment.idleness; -import io.ecocode.java.checks.helpers.CheckArgumentComplexTypeUtils; +import io.creedengo.java.checks.helpers.CheckArgumentComplexTypeUtils; import org.sonar.api.utils.log.Logger; import org.sonar.api.utils.log.Loggers; import org.sonar.check.Rule; @@ -40,7 +40,7 @@ * Otherwise report an issue on the new class nodes. */ @Rule(key = "EC511") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "EIDL009") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "EIDL009") public class KeepVoiceAwakeRule extends IssuableSubscriptionVisitor { private static final Logger LOG = Loggers.get(KeepVoiceAwakeRule.class); diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/idleness/RigidAlarmRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/idleness/RigidAlarmRule.java similarity index 76% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/idleness/RigidAlarmRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/idleness/RigidAlarmRule.java index fba8fa13..ceef22d2 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/idleness/RigidAlarmRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/idleness/RigidAlarmRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.idleness; +package io.creedengo.java.checks.environment.idleness; -import io.ecocode.java.checks.helpers.SpecificMethodCheck; +import io.creedengo.java.checks.helpers.SpecificMethodCheck; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -25,7 +25,7 @@ * Check the call of the method "setExact" And "setExactAndAllowWhileIdle" and "setRepeating" of "android.app.AlarmManager". */ @Rule(key = "EC509") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "EIDL007") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "EIDL007") public class RigidAlarmRule extends SpecificMethodCheck { public RigidAlarmRule() { diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/leakage/CameraLeakRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/leakage/CameraLeakRule.java similarity index 75% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/leakage/CameraLeakRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/leakage/CameraLeakRule.java index 0837f9ee..f63e6921 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/leakage/CameraLeakRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/leakage/CameraLeakRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.leakage; +package io.creedengo.java.checks.environment.leakage; -import io.ecocode.java.checks.helpers.OpeningClosingMethodCheck; +import io.creedengo.java.checks.helpers.OpeningClosingMethodCheck; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -27,7 +27,7 @@ * @see OpeningClosingMethodCheck */ @Rule(key = "EC512") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "ELEA002") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "ELEA002") public class CameraLeakRule extends OpeningClosingMethodCheck { public CameraLeakRule() { diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/leakage/LocationLeakRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/leakage/LocationLeakRule.java similarity index 76% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/leakage/LocationLeakRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/leakage/LocationLeakRule.java index 04093a3a..6d52254e 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/leakage/LocationLeakRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/leakage/LocationLeakRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.leakage; +package io.creedengo.java.checks.environment.leakage; -import io.ecocode.java.checks.helpers.OpeningClosingMethodCheck; +import io.creedengo.java.checks.helpers.OpeningClosingMethodCheck; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -27,7 +27,7 @@ * @see OpeningClosingMethodCheck */ @Rule(key = "EC513") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "ELEA003") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "ELEA003") public class LocationLeakRule extends OpeningClosingMethodCheck { public LocationLeakRule() { diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/leakage/MediaLeakMediaPlayerRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/leakage/MediaLeakMediaPlayerRule.java similarity index 76% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/leakage/MediaLeakMediaPlayerRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/leakage/MediaLeakMediaPlayerRule.java index caa9375d..37f0df86 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/leakage/MediaLeakMediaPlayerRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/leakage/MediaLeakMediaPlayerRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.leakage; +package io.creedengo.java.checks.environment.leakage; -import io.ecocode.java.checks.helpers.ConstructorBeforeMethodCheck; +import io.creedengo.java.checks.helpers.ConstructorBeforeMethodCheck; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -27,7 +27,7 @@ * @see ConstructorBeforeMethodCheck */ @Rule(key = "EC516") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "ELEA006") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "ELEA006") public class MediaLeakMediaPlayerRule extends ConstructorBeforeMethodCheck { private static final String ERROR_MESSAGE = "Failing to call release() on a Media Player may lead to continuous battery consumption."; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/leakage/MediaLeakMediaRecorderRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/leakage/MediaLeakMediaRecorderRule.java similarity index 76% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/leakage/MediaLeakMediaRecorderRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/leakage/MediaLeakMediaRecorderRule.java index 60215539..a329d173 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/leakage/MediaLeakMediaRecorderRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/leakage/MediaLeakMediaRecorderRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.leakage; +package io.creedengo.java.checks.environment.leakage; -import io.ecocode.java.checks.helpers.ConstructorBeforeMethodCheck; +import io.creedengo.java.checks.helpers.ConstructorBeforeMethodCheck; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -27,7 +27,7 @@ * @see ConstructorBeforeMethodCheck */ @Rule(key = "EC515") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "ELEA005") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "ELEA005") public class MediaLeakMediaRecorderRule extends ConstructorBeforeMethodCheck { private static final String ERROR_MESSAGE = "Failing to call release() on a Media Recorder may lead to continuous battery consumption."; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/leakage/SensorManagerLeakRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/leakage/SensorManagerLeakRule.java similarity index 77% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/leakage/SensorManagerLeakRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/leakage/SensorManagerLeakRule.java index 2309e0d8..02e35700 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/leakage/SensorManagerLeakRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/leakage/SensorManagerLeakRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.leakage; +package io.creedengo.java.checks.environment.leakage; -import io.ecocode.java.checks.helpers.OpeningClosingMethodCheck; +import io.creedengo.java.checks.helpers.OpeningClosingMethodCheck; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -27,7 +27,7 @@ * @see OpeningClosingMethodCheck */ @Rule(key = "EC514") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "ELEA004") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "ELEA004") public class SensorManagerLeakRule extends OpeningClosingMethodCheck { public SensorManagerLeakRule() { diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/optimized_api/BluetoothLowEnergyRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/optimized_api/BluetoothLowEnergyRule.java similarity index 93% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/optimized_api/BluetoothLowEnergyRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/optimized_api/BluetoothLowEnergyRule.java index ee6afde1..4788923e 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/optimized_api/BluetoothLowEnergyRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/optimized_api/BluetoothLowEnergyRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.optimized_api; +package io.creedengo.java.checks.environment.optimized_api; -import io.ecocode.java.checks.helpers.TreeHelper; +import io.creedengo.java.checks.helpers.TreeHelper; import org.sonar.check.Rule; import org.sonar.plugins.java.api.JavaFileScanner; import org.sonar.plugins.java.api.JavaFileScannerContext; @@ -41,7 +41,7 @@ * */ @Rule(key = "EC518") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "EOPT002") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "EOPT002") public class BluetoothLowEnergyRule extends BaseTreeVisitor implements JavaFileScanner { private static final String ERROR_MESSAGE = "You are using Bluetooth. Did you take a look at the Bluetooth Low Energy API?"; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/optimized_api/FusedLocationRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/optimized_api/FusedLocationRule.java similarity index 87% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/optimized_api/FusedLocationRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/optimized_api/FusedLocationRule.java index f0e16dd1..3521181a 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/optimized_api/FusedLocationRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/optimized_api/FusedLocationRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.optimized_api; +package io.creedengo.java.checks.environment.optimized_api; -import io.ecocode.java.checks.helpers.TreeHelper; +import io.creedengo.java.checks.helpers.TreeHelper; import org.sonar.check.Rule; import org.sonar.plugins.java.api.IssuableSubscriptionVisitor; import org.sonar.plugins.java.api.JavaFileScannerContext; @@ -35,7 +35,7 @@ * ` */ @Rule(key = "EC517") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "EOPT001") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "EOPT001") public class FusedLocationRule extends IssuableSubscriptionVisitor { protected static final String WRONG_IMPORT = "android.location"; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/power/ChargeAwarenessRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/power/ChargeAwarenessRule.java similarity index 93% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/power/ChargeAwarenessRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/power/ChargeAwarenessRule.java index 0502e21a..031e2326 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/power/ChargeAwarenessRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/power/ChargeAwarenessRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.power; +package io.creedengo.java.checks.environment.power; import java.util.List; import java.util.Optional; @@ -41,7 +41,7 @@ * android.intent.action.BATTERY_OKAY` reports a (positive) issue. */ @Rule(key = "EC519") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "EPOW004") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "EPOW004") public class ChargeAwarenessRule extends IssuableSubscriptionVisitor { private static final Logger LOG = Loggers.get(ChargeAwarenessRule.class); diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/power/SaveModeAwarenessRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/power/SaveModeAwarenessRule.java similarity index 92% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/power/SaveModeAwarenessRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/power/SaveModeAwarenessRule.java index 198f6ff9..e5088663 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/power/SaveModeAwarenessRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/power/SaveModeAwarenessRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.power; +package io.creedengo.java.checks.environment.power; import org.sonar.api.utils.log.Logger; import org.sonar.api.utils.log.Loggers; @@ -34,7 +34,7 @@ * Checks the use of the BATTERY_CHANGED propriety in intentFilter or the use of the isPowerSaveMode() method */ @Rule(key = "EC520") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "EPOW006") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "EPOW006") public class SaveModeAwarenessRule extends IssuableSubscriptionVisitor { private static final Logger LOG = Loggers.get(SaveModeAwarenessRule.class); diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/BrightnessOverrideRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/BrightnessOverrideRule.java similarity index 94% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/BrightnessOverrideRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/BrightnessOverrideRule.java index 376292fd..48d8e70c 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/BrightnessOverrideRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/BrightnessOverrideRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.sobriety; +package io.creedengo.java.checks.environment.sobriety; import org.sonar.check.Rule; import org.sonar.plugins.java.api.IssuableSubscriptionVisitor; @@ -30,7 +30,7 @@ * "BRIGHTNESS_OVERRIDE_FULL" (1.0f). */ @Rule(key = "EC522") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "ESOB002") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "ESOB002") public class BrightnessOverrideRule extends IssuableSubscriptionVisitor { private static final String ERROR_MESSAGE = "Forcing brightness to max value may cause useless energy consumption."; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/HighFrameRateRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/HighFrameRateRule.java similarity index 88% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/HighFrameRateRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/HighFrameRateRule.java index 9f3dc670..f7700805 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/HighFrameRateRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/HighFrameRateRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.sobriety; +package io.creedengo.java.checks.environment.sobriety; -import io.ecocode.java.checks.helpers.CheckArgumentComplexTypeUtils; +import io.creedengo.java.checks.helpers.CheckArgumentComplexTypeUtils; import org.sonar.check.Rule; import org.sonar.plugins.java.api.IssuableSubscriptionVisitor; import org.sonar.plugins.java.api.semantic.MethodMatchers; @@ -28,7 +28,7 @@ import java.util.Optional; @Rule(key = "EC531") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "ESOB014") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "ESOB014") public class HighFrameRateRule extends IssuableSubscriptionVisitor { private static final float FRAME_RATE_60 = 60.0f; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/ThriftyBluetoothLowEnergyRequestConnectionPriorityRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/ThriftyBluetoothLowEnergyRequestConnectionPriorityRule.java similarity index 79% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/ThriftyBluetoothLowEnergyRequestConnectionPriorityRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/ThriftyBluetoothLowEnergyRequestConnectionPriorityRule.java index 617f1826..cec82851 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/ThriftyBluetoothLowEnergyRequestConnectionPriorityRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/ThriftyBluetoothLowEnergyRequestConnectionPriorityRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.sobriety; +package io.creedengo.java.checks.environment.sobriety; -import io.ecocode.java.checks.helpers.constant.ConstantOnMethodCheck; +import io.creedengo.java.checks.helpers.constant.ConstantOnMethodCheck; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -26,7 +26,7 @@ * it is called with a parameter value different from `CONNECTION_PRIORITY_LOW_POWER (2)`. */ @Rule(key = "EC526") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "ESOB008") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "ESOB008") public class ThriftyBluetoothLowEnergyRequestConnectionPriorityRule extends ConstantOnMethodCheck { private static final int CONNECTION_PRIORITY_LOW_POWER = 2; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/ThriftyBluetoothLowEnergySetAdvertiseModeRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/ThriftyBluetoothLowEnergySetAdvertiseModeRule.java similarity index 78% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/ThriftyBluetoothLowEnergySetAdvertiseModeRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/ThriftyBluetoothLowEnergySetAdvertiseModeRule.java index f4ef40a8..ee407567 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/ThriftyBluetoothLowEnergySetAdvertiseModeRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/ThriftyBluetoothLowEnergySetAdvertiseModeRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.sobriety; +package io.creedengo.java.checks.environment.sobriety; -import io.ecocode.java.checks.helpers.constant.ConstantOnMethodCheck; +import io.creedengo.java.checks.helpers.constant.ConstantOnMethodCheck; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -26,7 +26,7 @@ * it is called with parameter value different from `ADVERTISE_MODE_LOW_POWER (0)`. */ @Rule(key = "EC525") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "ESOB007") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "ESOB007") public class ThriftyBluetoothLowEnergySetAdvertiseModeRule extends ConstantOnMethodCheck { private static final int CONSTANT_POWER_LOW = 0; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/ThriftyGeolocationCriteriaRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/ThriftyGeolocationCriteriaRule.java similarity index 94% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/ThriftyGeolocationCriteriaRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/ThriftyGeolocationCriteriaRule.java index 9900636b..aa3bb0e1 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/ThriftyGeolocationCriteriaRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/ThriftyGeolocationCriteriaRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.sobriety; +package io.creedengo.java.checks.environment.sobriety; import java.util.ArrayList; import java.util.List; @@ -48,7 +48,7 @@ * - if the method `setPowerRequirement` of type `android.location.Criteria` is called report an issue on its first argument if it's not `1`. */ @Rule(key = "EC524") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "ESOB006") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "ESOB006") public class ThriftyGeolocationCriteriaRule extends IssuableSubscriptionVisitor { // CASE 1 diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/ThriftyGeolocationMinDistanceRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/ThriftyGeolocationMinDistanceRule.java similarity index 90% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/ThriftyGeolocationMinDistanceRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/ThriftyGeolocationMinDistanceRule.java index 9eed079f..4da8a8c0 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/ThriftyGeolocationMinDistanceRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/ThriftyGeolocationMinDistanceRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.sobriety; +package io.creedengo.java.checks.environment.sobriety; -import io.ecocode.java.checks.helpers.TreeHelper; +import io.creedengo.java.checks.helpers.TreeHelper; import org.sonar.api.utils.log.Logger; import org.sonar.api.utils.log.Loggers; import org.sonar.check.Rule; @@ -37,7 +37,7 @@ * If minDistance argument value is 0, report an issue on the argument. */ @Rule(key = "EC527") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "ESOB010") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "ESOB010") public class ThriftyGeolocationMinDistanceRule extends IssuableSubscriptionVisitor { private static final String ERROR_MESSAGE = "Location updates should be done with a distance interval greater than 0."; private static final Logger LOG = Loggers.get(ThriftyGeolocationMinDistanceRule.class); diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/ThriftyGeolocationMinTimeRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/ThriftyGeolocationMinTimeRule.java similarity index 90% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/ThriftyGeolocationMinTimeRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/ThriftyGeolocationMinTimeRule.java index 047164f5..a184780f 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/ThriftyGeolocationMinTimeRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/ThriftyGeolocationMinTimeRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.sobriety; +package io.creedengo.java.checks.environment.sobriety; -import io.ecocode.java.checks.helpers.TreeHelper; +import io.creedengo.java.checks.helpers.TreeHelper; import org.sonar.api.utils.log.Logger; import org.sonar.api.utils.log.Loggers; import org.sonar.check.Rule; @@ -37,7 +37,7 @@ * If minTime argument value is 0, report an issue on the argument. */ @Rule(key = "EC523") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "ESOB005") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "ESOB005") public class ThriftyGeolocationMinTimeRule extends IssuableSubscriptionVisitor { private static final String ERROR_MESSAGE = "Location updates should be done with a time greater than 0."; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/ThriftyMotionSensorRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/ThriftyMotionSensorRule.java similarity index 75% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/ThriftyMotionSensorRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/ThriftyMotionSensorRule.java index 45c2d0da..f6e0390b 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/ThriftyMotionSensorRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/ThriftyMotionSensorRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.sobriety; +package io.creedengo.java.checks.environment.sobriety; -import io.ecocode.java.checks.helpers.constant.FlagOnMethodCheck; +import io.creedengo.java.checks.helpers.constant.FlagOnMethodCheck; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -25,7 +25,7 @@ * Check the call of "TYPE_ROTATION_VECTOR" on the method "getDefaultSensor" of "android.hardware.SensorManager". */ @Rule(key = "EC521") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "ESOB001") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "ESOB001") public class ThriftyMotionSensorRule extends FlagOnMethodCheck { public ThriftyMotionSensorRule() { diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/ThriftyNotificationRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/ThriftyNotificationRule.java similarity index 90% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/ThriftyNotificationRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/ThriftyNotificationRule.java index 9b95eae9..73cd3633 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/ThriftyNotificationRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/ThriftyNotificationRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.sobriety; +package io.creedengo.java.checks.environment.sobriety; import org.sonar.check.Rule; import org.sonar.plugins.java.api.IssuableSubscriptionVisitor; @@ -31,7 +31,7 @@ * Check the call of "setSound", "setVibrate" & "setVibrationPattern" of "android.app.NotificationChannel" & "android.app.Notification$Builder". */ @Rule(key = "EC529") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "ESOB012") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "ESOB012") public class ThriftyNotificationRule extends IssuableSubscriptionVisitor { private static final String ERROR_MESSAGE = "Avoid using vibration or sound when notifying the users to use less energy."; private final MethodMatchers notificationHardwareCallMethodMatchers = MethodMatchers.or( diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/TorchFreeRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/TorchFreeRule.java similarity index 80% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/TorchFreeRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/TorchFreeRule.java index 37fb372e..7733562c 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/TorchFreeRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/TorchFreeRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.sobriety; +package io.creedengo.java.checks.environment.sobriety; -import io.ecocode.java.checks.helpers.constant.ArgumentValueOnMethodCheck; +import io.creedengo.java.checks.helpers.constant.ArgumentValueOnMethodCheck; import org.sonar.check.Rule; import org.sonar.plugins.java.api.tree.Tree; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -29,7 +29,7 @@ * with the param 1 set to "true". */ @Rule(key = "EC530") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "ESOB013") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "ESOB013") public class TorchFreeRule extends ArgumentValueOnMethodCheck { public TorchFreeRule() { diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/VibrationFreeRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/VibrationFreeRule.java similarity index 80% rename from android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/VibrationFreeRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/VibrationFreeRule.java index 77abe46e..5d1ea9bc 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/VibrationFreeRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/environment/sobriety/VibrationFreeRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,10 +15,10 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.sobriety; +package io.creedengo.java.checks.environment.sobriety; -import io.ecocode.java.checks.helpers.constant.ArgumentValueOnMethodCheck; -import io.ecocode.java.checks.helpers.constant.MethodSpecs; +import io.creedengo.java.checks.helpers.constant.ArgumentValueOnMethodCheck; +import io.creedengo.java.checks.helpers.constant.MethodSpecs; import org.sonar.check.Rule; import org.sonar.plugins.java.api.tree.Tree; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -26,7 +26,7 @@ import java.util.Optional; @Rule(key = "EC528") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "ESOB011") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "ESOB011") public class VibrationFreeRule extends ArgumentValueOnMethodCheck { private static final String SYSTEM_SERVICE_METHOD = "getSystemService"; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/helpers/CheckArgumentComplexTypeUtils.java b/android-plugin/src/main/java/io/creedengo/java/checks/helpers/CheckArgumentComplexTypeUtils.java similarity index 89% rename from android-plugin/src/main/java/io/ecocode/java/checks/helpers/CheckArgumentComplexTypeUtils.java rename to android-plugin/src/main/java/io/creedengo/java/checks/helpers/CheckArgumentComplexTypeUtils.java index b9f66ba7..0b615bde 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/helpers/CheckArgumentComplexTypeUtils.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/helpers/CheckArgumentComplexTypeUtils.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.helpers; +package io.creedengo.java.checks.helpers; import org.sonar.plugins.java.api.tree.ExpressionTree; import org.sonar.plugins.java.api.tree.MemberSelectExpressionTree; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/helpers/ConstructorBeforeMethodCheck.java b/android-plugin/src/main/java/io/creedengo/java/checks/helpers/ConstructorBeforeMethodCheck.java similarity index 93% rename from android-plugin/src/main/java/io/ecocode/java/checks/helpers/ConstructorBeforeMethodCheck.java rename to android-plugin/src/main/java/io/creedengo/java/checks/helpers/ConstructorBeforeMethodCheck.java index c686fef8..a4a215cc 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/helpers/ConstructorBeforeMethodCheck.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/helpers/ConstructorBeforeMethodCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.helpers; +package io.creedengo.java.checks.helpers; import com.google.common.collect.ImmutableList; import org.sonar.plugins.java.api.IssuableSubscriptionVisitor; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/helpers/OpeningClosingMethodCheck.java b/android-plugin/src/main/java/io/creedengo/java/checks/helpers/OpeningClosingMethodCheck.java similarity index 93% rename from android-plugin/src/main/java/io/ecocode/java/checks/helpers/OpeningClosingMethodCheck.java rename to android-plugin/src/main/java/io/creedengo/java/checks/helpers/OpeningClosingMethodCheck.java index 12b7e813..23e2df20 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/helpers/OpeningClosingMethodCheck.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/helpers/OpeningClosingMethodCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.helpers; +package io.creedengo.java.checks.helpers; import com.google.common.collect.ImmutableList; import org.sonar.plugins.java.api.IssuableSubscriptionVisitor; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/helpers/SpecificMethodCheck.java b/android-plugin/src/main/java/io/creedengo/java/checks/helpers/SpecificMethodCheck.java similarity index 89% rename from android-plugin/src/main/java/io/ecocode/java/checks/helpers/SpecificMethodCheck.java rename to android-plugin/src/main/java/io/creedengo/java/checks/helpers/SpecificMethodCheck.java index d66d4e00..3ba69e1c 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/helpers/SpecificMethodCheck.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/helpers/SpecificMethodCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.helpers; +package io.creedengo.java.checks.helpers; import com.google.common.collect.ImmutableList; import org.sonar.plugins.java.api.IssuableSubscriptionVisitor; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/helpers/TreeHelper.java b/android-plugin/src/main/java/io/creedengo/java/checks/helpers/TreeHelper.java similarity index 96% rename from android-plugin/src/main/java/io/ecocode/java/checks/helpers/TreeHelper.java rename to android-plugin/src/main/java/io/creedengo/java/checks/helpers/TreeHelper.java index 9890e8ca..5922af0e 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/helpers/TreeHelper.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/helpers/TreeHelper.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.helpers; +package io.creedengo.java.checks.helpers; import java.util.List; import java.util.Optional; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/helpers/constant/ArgumentValueOnMethodCheck.java b/android-plugin/src/main/java/io/creedengo/java/checks/helpers/constant/ArgumentValueOnMethodCheck.java similarity index 94% rename from android-plugin/src/main/java/io/ecocode/java/checks/helpers/constant/ArgumentValueOnMethodCheck.java rename to android-plugin/src/main/java/io/creedengo/java/checks/helpers/constant/ArgumentValueOnMethodCheck.java index 4b7dfa87..a827e341 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/helpers/constant/ArgumentValueOnMethodCheck.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/helpers/constant/ArgumentValueOnMethodCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,10 +15,10 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.helpers.constant; +package io.creedengo.java.checks.helpers.constant; import com.google.common.collect.ImmutableList; -import io.ecocode.java.checks.helpers.CheckArgumentComplexTypeUtils; +import io.creedengo.java.checks.helpers.CheckArgumentComplexTypeUtils; import org.sonar.plugins.java.api.IssuableSubscriptionVisitor; import org.sonar.plugins.java.api.semantic.MethodMatchers; import org.sonar.plugins.java.api.tree.ExpressionTree; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/helpers/constant/ConstantOnMethodCheck.java b/android-plugin/src/main/java/io/creedengo/java/checks/helpers/constant/ConstantOnMethodCheck.java similarity index 89% rename from android-plugin/src/main/java/io/ecocode/java/checks/helpers/constant/ConstantOnMethodCheck.java rename to android-plugin/src/main/java/io/creedengo/java/checks/helpers/constant/ConstantOnMethodCheck.java index 2cfa1aae..6f67eaf8 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/helpers/constant/ConstantOnMethodCheck.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/helpers/constant/ConstantOnMethodCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.helpers.constant; +package io.creedengo.java.checks.helpers.constant; import org.sonar.plugins.java.api.tree.Tree; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/helpers/constant/FlagOnMethodCheck.java b/android-plugin/src/main/java/io/creedengo/java/checks/helpers/constant/FlagOnMethodCheck.java similarity index 90% rename from android-plugin/src/main/java/io/ecocode/java/checks/helpers/constant/FlagOnMethodCheck.java rename to android-plugin/src/main/java/io/creedengo/java/checks/helpers/constant/FlagOnMethodCheck.java index da5a6b6e..91dfab4e 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/helpers/constant/FlagOnMethodCheck.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/helpers/constant/FlagOnMethodCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.helpers.constant; +package io.creedengo.java.checks.helpers.constant; import org.sonar.plugins.java.api.tree.Tree; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/helpers/constant/MethodSpecs.java b/android-plugin/src/main/java/io/creedengo/java/checks/helpers/constant/MethodSpecs.java similarity index 88% rename from android-plugin/src/main/java/io/ecocode/java/checks/helpers/constant/MethodSpecs.java rename to android-plugin/src/main/java/io/creedengo/java/checks/helpers/constant/MethodSpecs.java index d649f6ac..f510ff8f 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/helpers/constant/MethodSpecs.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/helpers/constant/MethodSpecs.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.helpers.constant; +package io.creedengo.java.checks.helpers.constant; /** * Class used to create method matchers easily. diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/social/gdpr/GoogleAndroidAdsConsentRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/social/gdpr/GoogleAndroidAdsConsentRule.java similarity index 93% rename from android-plugin/src/main/java/io/ecocode/java/checks/social/gdpr/GoogleAndroidAdsConsentRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/social/gdpr/GoogleAndroidAdsConsentRule.java index 598c4265..260c7b16 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/social/gdpr/GoogleAndroidAdsConsentRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/social/gdpr/GoogleAndroidAdsConsentRule.java @@ -1,6 +1,6 @@ -package io.ecocode.java.checks.social.gdpr; +package io.creedengo.java.checks.social.gdpr; -import io.ecocode.java.checks.helpers.TreeHelper; +import io.creedengo.java.checks.helpers.TreeHelper; import org.sonar.check.Rule; import org.sonar.plugins.java.api.JavaFileScanner; import org.sonar.plugins.java.api.JavaFileScannerContext; @@ -15,7 +15,7 @@ * Hence, importing classes from com.google.android.ads.consent or com.google.android.ump:user-messaging-platform is considered as a good practice. */ @Rule(key = "EC533", name = "GDPR: Google Consent") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "SGDP001") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "SGDP001") public class GoogleAndroidAdsConsentRule extends BaseTreeVisitor implements JavaFileScanner { private static final String INFO_MESSAGE_GOOGLE_ANDROID_ADS_CONSENT_USED = "Good Smell : User Consent"; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/social/privacy/GoogleTrackerRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/social/privacy/GoogleTrackerRule.java similarity index 93% rename from android-plugin/src/main/java/io/ecocode/java/checks/social/privacy/GoogleTrackerRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/social/privacy/GoogleTrackerRule.java index 804b75fc..b882fcca 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/social/privacy/GoogleTrackerRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/social/privacy/GoogleTrackerRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.social.privacy; +package io.creedengo.java.checks.social.privacy; -import io.ecocode.java.checks.helpers.TreeHelper; +import io.creedengo.java.checks.helpers.TreeHelper; import org.sonar.check.Rule; import org.sonar.plugins.java.api.JavaFileScanner; import org.sonar.plugins.java.api.JavaFileScannerContext; @@ -36,7 +36,7 @@ */ @Rule(key = "EC532") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "SPRI002") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "SPRI002") public class GoogleTrackerRule extends BaseTreeVisitor implements JavaFileScanner { private static final String ERROR_MESSAGE_GGL_TRACKER = "Using com.google.android.gms.analytics.* is a potential threat for privacy."; diff --git a/android-plugin/src/main/java/io/ecocode/java/checks/social/privacy/TrackingIdRule.java b/android-plugin/src/main/java/io/creedengo/java/checks/social/privacy/TrackingIdRule.java similarity index 80% rename from android-plugin/src/main/java/io/ecocode/java/checks/social/privacy/TrackingIdRule.java rename to android-plugin/src/main/java/io/creedengo/java/checks/social/privacy/TrackingIdRule.java index 04569c45..feef33f4 100644 --- a/android-plugin/src/main/java/io/ecocode/java/checks/social/privacy/TrackingIdRule.java +++ b/android-plugin/src/main/java/io/creedengo/java/checks/social/privacy/TrackingIdRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.social.privacy; +package io.creedengo.java.checks.social.privacy; -import io.ecocode.java.checks.helpers.SpecificMethodCheck; +import io.creedengo.java.checks.helpers.SpecificMethodCheck; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -29,7 +29,7 @@ */ @Rule(key = "EC534") -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "SPRI004") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "SPRI004") public class TrackingIdRule extends SpecificMethodCheck { private static final String ERROR_MESSAGE = "Avoid using TelephonyManager#getDeviceId() due to privacy concerns."; diff --git a/android-plugin/src/main/java/io/ecocode/xml/Xml.java b/android-plugin/src/main/java/io/creedengo/xml/Xml.java similarity index 59% rename from android-plugin/src/main/java/io/ecocode/xml/Xml.java rename to android-plugin/src/main/java/io/creedengo/xml/Xml.java index 30668146..2a0c451f 100644 --- a/android-plugin/src/main/java/io/ecocode/xml/Xml.java +++ b/android-plugin/src/main/java/io/creedengo/xml/Xml.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,13 +15,13 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml; +package io.creedengo.xml; public interface Xml { //NOSONAR - we use the interface for constant without inheriting it - String REPOSITORY_NAME = "ecoCode (Android)"; + String REPOSITORY_NAME = "Creedengo (Android XML)"; String KEY = "xml"; - String REPOSITORY_KEY = "ecocode-android-xml"; - String RULES_SPECIFICATIONS_XML_PATH = "io/ecocode/rules/xml"; - String PROFILE_NAME = "ecoCode (Android)"; - String PROFILE_PATH = "io/ecocode/android/xml/ecocode_xml_profile.json"; + String REPOSITORY_KEY = "creedengo-android-xml"; + String RULES_SPECIFICATIONS_XML_PATH = "io/creedengo/rules/xml"; + String PROFILE_NAME = "Creedengo (Android XML)"; + String PROFILE_PATH = "io/creedengo/android/xml/creedengo_xml_profile.json"; } diff --git a/android-plugin/src/main/java/io/ecocode/xml/XmlCheckList.java b/android-plugin/src/main/java/io/creedengo/xml/XmlCheckList.java similarity index 61% rename from android-plugin/src/main/java/io/ecocode/xml/XmlCheckList.java rename to android-plugin/src/main/java/io/creedengo/xml/XmlCheckList.java index 9eeeb274..e0890449 100644 --- a/android-plugin/src/main/java/io/ecocode/xml/XmlCheckList.java +++ b/android-plugin/src/main/java/io/creedengo/xml/XmlCheckList.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,18 +15,18 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml; +package io.creedengo.xml; -import io.ecocode.xml.checks.batch.ServiceBootTimeXmlRule; -import io.ecocode.xml.checks.power.ChargeAwarenessXmlRule; -import io.ecocode.xml.checks.power.SaveModeAwarenessXmlRule; -import io.ecocode.xml.checks.sobriety.DarkUIBrightColorsXmlRule; -import io.ecocode.xml.checks.idleness.KeepCpuOnXmlRule; -import io.ecocode.xml.checks.idleness.KeepScreenOnXmlRule; -import io.ecocode.xml.checks.sobriety.DarkUIThemeXmlRule; -import io.ecocode.xml.checks.power.CompagnionInBackgroundXmlRule; -import io.ecocode.xml.checks.power.IgnoreBatteryOptimizationsXmlRule; -import io.ecocode.xml.checks.sobriety.HardwareAccelerationXmlRule; +import io.creedengo.xml.checks.batch.ServiceBootTimeXmlRule; +import io.creedengo.xml.checks.power.ChargeAwarenessXmlRule; +import io.creedengo.xml.checks.power.SaveModeAwarenessXmlRule; +import io.creedengo.xml.checks.sobriety.DarkUIBrightColorsXmlRule; +import io.creedengo.xml.checks.idleness.KeepCpuOnXmlRule; +import io.creedengo.xml.checks.idleness.KeepScreenOnXmlRule; +import io.creedengo.xml.checks.sobriety.DarkUIThemeXmlRule; +import io.creedengo.xml.checks.power.CompagnionInBackgroundXmlRule; +import io.creedengo.xml.checks.power.IgnoreBatteryOptimizationsXmlRule; +import io.creedengo.xml.checks.sobriety.HardwareAccelerationXmlRule; import java.util.Arrays; import java.util.List; diff --git a/android-plugin/src/main/java/io/ecocode/xml/XmlEcoCodeProfile.java b/android-plugin/src/main/java/io/creedengo/xml/XmlCreedengoProfile.java similarity index 60% rename from android-plugin/src/main/java/io/ecocode/xml/XmlEcoCodeProfile.java rename to android-plugin/src/main/java/io/creedengo/xml/XmlCreedengoProfile.java index 27622dff..c756bbf6 100644 --- a/android-plugin/src/main/java/io/ecocode/xml/XmlEcoCodeProfile.java +++ b/android-plugin/src/main/java/io/creedengo/xml/XmlCreedengoProfile.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,18 +15,18 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml; +package io.creedengo.xml; import org.sonar.api.server.profile.BuiltInQualityProfilesDefinition; import org.sonarsource.analyzer.commons.BuiltInQualityProfileJsonLoader; -public final class XmlEcoCodeProfile implements BuiltInQualityProfilesDefinition { +public final class XmlCreedengoProfile implements BuiltInQualityProfilesDefinition { @Override public void define(Context context) { - NewBuiltInQualityProfile ecoCodeProfile = context.createBuiltInQualityProfile(Xml.PROFILE_NAME, Xml.KEY); - BuiltInQualityProfileJsonLoader.load(ecoCodeProfile, Xml.REPOSITORY_KEY, Xml.PROFILE_PATH); - ecoCodeProfile.done(); + NewBuiltInQualityProfile creedengoProfile = context.createBuiltInQualityProfile(Xml.PROFILE_NAME, Xml.KEY); + BuiltInQualityProfileJsonLoader.load(creedengoProfile, Xml.REPOSITORY_KEY, Xml.PROFILE_PATH); + creedengoProfile.done(); } } diff --git a/android-plugin/src/main/java/io/ecocode/xml/XmlRulesDefinition.java b/android-plugin/src/main/java/io/creedengo/xml/XmlRulesDefinition.java similarity index 88% rename from android-plugin/src/main/java/io/ecocode/xml/XmlRulesDefinition.java rename to android-plugin/src/main/java/io/creedengo/xml/XmlRulesDefinition.java index 5e2f7eb7..20e20019 100644 --- a/android-plugin/src/main/java/io/ecocode/xml/XmlRulesDefinition.java +++ b/android-plugin/src/main/java/io/creedengo/xml/XmlRulesDefinition.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml; +package io.creedengo.xml; import org.sonar.api.SonarEdition; import org.sonar.api.SonarQubeSide; diff --git a/android-plugin/src/main/java/io/ecocode/xml/XmlSensor.java b/android-plugin/src/main/java/io/creedengo/xml/XmlSensor.java similarity index 93% rename from android-plugin/src/main/java/io/ecocode/xml/XmlSensor.java rename to android-plugin/src/main/java/io/creedengo/xml/XmlSensor.java index cf8f5e3c..054c25b0 100644 --- a/android-plugin/src/main/java/io/ecocode/xml/XmlSensor.java +++ b/android-plugin/src/main/java/io/creedengo/xml/XmlSensor.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml; +package io.creedengo.xml; import com.google.common.annotations.VisibleForTesting; import org.sonar.api.batch.fs.FilePredicate; @@ -52,7 +52,7 @@ public XmlSensor(CheckFactory checkFactory) { @Override public void describe(SensorDescriptor descriptor) { - descriptor.name("EcoCodeXmlSensor").onlyWhenConfiguration(configuration -> !checks.all().isEmpty()); + descriptor.name("CreedengoXmlSensor").onlyWhenConfiguration(configuration -> !checks.all().isEmpty()); } @Override diff --git a/android-plugin/src/main/java/io/ecocode/xml/checks/XPathCheck.java b/android-plugin/src/main/java/io/creedengo/xml/checks/XPathCheck.java similarity index 93% rename from android-plugin/src/main/java/io/ecocode/xml/checks/XPathCheck.java rename to android-plugin/src/main/java/io/creedengo/xml/checks/XPathCheck.java index 4053dac0..4394e615 100644 --- a/android-plugin/src/main/java/io/ecocode/xml/checks/XPathCheck.java +++ b/android-plugin/src/main/java/io/creedengo/xml/checks/XPathCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml.checks; +package io.creedengo.xml.checks; import org.sonar.api.utils.log.Logger; import org.sonar.api.utils.log.Loggers; diff --git a/android-plugin/src/main/java/io/ecocode/xml/checks/XPathSimpleCheck.java b/android-plugin/src/main/java/io/creedengo/xml/checks/XPathSimpleCheck.java similarity index 81% rename from android-plugin/src/main/java/io/ecocode/xml/checks/XPathSimpleCheck.java rename to android-plugin/src/main/java/io/creedengo/xml/checks/XPathSimpleCheck.java index 0596fbb3..7112647d 100644 --- a/android-plugin/src/main/java/io/ecocode/xml/checks/XPathSimpleCheck.java +++ b/android-plugin/src/main/java/io/creedengo/xml/checks/XPathSimpleCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml.checks; +package io.creedengo.xml.checks; import org.w3c.dom.Node; diff --git a/android-plugin/src/main/java/io/ecocode/xml/checks/batch/ServiceBootTimeXmlRule.java b/android-plugin/src/main/java/io/creedengo/xml/checks/batch/ServiceBootTimeXmlRule.java similarity index 80% rename from android-plugin/src/main/java/io/ecocode/xml/checks/batch/ServiceBootTimeXmlRule.java rename to android-plugin/src/main/java/io/creedengo/xml/checks/batch/ServiceBootTimeXmlRule.java index 8487f9fb..2fa01bba 100644 --- a/android-plugin/src/main/java/io/ecocode/xml/checks/batch/ServiceBootTimeXmlRule.java +++ b/android-plugin/src/main/java/io/creedengo/xml/checks/batch/ServiceBootTimeXmlRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml.checks.batch; +package io.creedengo.xml.checks.batch; -import io.ecocode.xml.checks.XPathSimpleCheck; +import io.creedengo.xml.checks.XPathSimpleCheck; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -25,7 +25,7 @@ * Checks manifest intent-filter statement: if the action is BOOT_COMPLETED, report a bad practice */ @Rule(key = "EC540") -@DeprecatedRuleKey(repositoryKey = "ecoCode-xml", ruleKey = "EBAT001") +@DeprecatedRuleKey(repositoryKey = "ecocode-xml", ruleKey = "EBAT001") public class ServiceBootTimeXmlRule extends XPathSimpleCheck { private static final String SERVICE_BOOT_TIME_ATTRIBUTE = "//manifest/application/receiver/intent-filter/action/@name[. = \"android.intent.action.BOOT_COMPLETED\"]"; diff --git a/android-plugin/src/main/java/io/ecocode/xml/checks/helpers/CheckPermissionsRule.java b/android-plugin/src/main/java/io/creedengo/xml/checks/helpers/CheckPermissionsRule.java similarity index 84% rename from android-plugin/src/main/java/io/ecocode/xml/checks/helpers/CheckPermissionsRule.java rename to android-plugin/src/main/java/io/creedengo/xml/checks/helpers/CheckPermissionsRule.java index cdc62a39..b54cc16c 100644 --- a/android-plugin/src/main/java/io/ecocode/xml/checks/helpers/CheckPermissionsRule.java +++ b/android-plugin/src/main/java/io/creedengo/xml/checks/helpers/CheckPermissionsRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml.checks.helpers; +package io.creedengo.xml.checks.helpers; -import io.ecocode.xml.checks.XPathCheck; +import io.creedengo.xml.checks.XPathCheck; import org.w3c.dom.Node; /** diff --git a/android-plugin/src/main/java/io/ecocode/xml/checks/idleness/KeepCpuOnXmlRule.java b/android-plugin/src/main/java/io/creedengo/xml/checks/idleness/KeepCpuOnXmlRule.java similarity index 77% rename from android-plugin/src/main/java/io/ecocode/xml/checks/idleness/KeepCpuOnXmlRule.java rename to android-plugin/src/main/java/io/creedengo/xml/checks/idleness/KeepCpuOnXmlRule.java index 6754d047..b8205c0f 100644 --- a/android-plugin/src/main/java/io/ecocode/xml/checks/idleness/KeepCpuOnXmlRule.java +++ b/android-plugin/src/main/java/io/creedengo/xml/checks/idleness/KeepCpuOnXmlRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml.checks.idleness; +package io.creedengo.xml.checks.idleness; -import io.ecocode.xml.checks.helpers.CheckPermissionsRule; +import io.creedengo.xml.checks.helpers.CheckPermissionsRule; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -26,7 +26,7 @@ * if the permissions "android.permission.WAKE_LOCK" is found, report an issue. */ @Rule(key = "EC542") -@DeprecatedRuleKey(repositoryKey = "ecoCode-xml", ruleKey = "EIDL005") +@DeprecatedRuleKey(repositoryKey = "ecocode-xml", ruleKey = "EIDL005") public class KeepCpuOnXmlRule extends CheckPermissionsRule { private static final String PERMISSION_NAME = "android.permission.WAKE_LOCK"; diff --git a/android-plugin/src/main/java/io/ecocode/xml/checks/idleness/KeepScreenOnXmlRule.java b/android-plugin/src/main/java/io/creedengo/xml/checks/idleness/KeepScreenOnXmlRule.java similarity index 78% rename from android-plugin/src/main/java/io/ecocode/xml/checks/idleness/KeepScreenOnXmlRule.java rename to android-plugin/src/main/java/io/creedengo/xml/checks/idleness/KeepScreenOnXmlRule.java index 8086d3f9..1f336e1d 100644 --- a/android-plugin/src/main/java/io/ecocode/xml/checks/idleness/KeepScreenOnXmlRule.java +++ b/android-plugin/src/main/java/io/creedengo/xml/checks/idleness/KeepScreenOnXmlRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,14 +15,14 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml.checks.idleness; +package io.creedengo.xml.checks.idleness; -import io.ecocode.xml.checks.XPathSimpleCheck; +import io.creedengo.xml.checks.XPathSimpleCheck; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @Rule(key = "EC541") -@DeprecatedRuleKey(repositoryKey = "ecoCode-xml", ruleKey = "EIDL003") +@DeprecatedRuleKey(repositoryKey = "ecocode-xml", ruleKey = "EIDL003") public class KeepScreenOnXmlRule extends XPathSimpleCheck { private static final String KEEP_SCREEN_ON_XML_ATTRIBUTE = "//*[contains(@keepScreenOn, 'true')]/@keepScreenOn"; diff --git a/android-plugin/src/main/java/io/ecocode/xml/checks/power/ChargeAwarenessXmlRule.java b/android-plugin/src/main/java/io/creedengo/xml/checks/power/ChargeAwarenessXmlRule.java similarity index 85% rename from android-plugin/src/main/java/io/ecocode/xml/checks/power/ChargeAwarenessXmlRule.java rename to android-plugin/src/main/java/io/creedengo/xml/checks/power/ChargeAwarenessXmlRule.java index 788f5ef7..d2739078 100644 --- a/android-plugin/src/main/java/io/ecocode/xml/checks/power/ChargeAwarenessXmlRule.java +++ b/android-plugin/src/main/java/io/creedengo/xml/checks/power/ChargeAwarenessXmlRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml.checks.power; +package io.creedengo.xml.checks.power; -import io.ecocode.xml.checks.XPathSimpleCheck; +import io.creedengo.xml.checks.XPathSimpleCheck; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -26,7 +26,7 @@ * BATTERY_OKAY or BATTERY_LOW report a good practice. */ @Rule(key = "EC545") -@DeprecatedRuleKey(repositoryKey = "ecoCode-xml", ruleKey = "EPOW005") +@DeprecatedRuleKey(repositoryKey = "ecocode-xml", ruleKey = "EPOW005") public class ChargeAwarenessXmlRule extends XPathSimpleCheck { private String xPathActionPowerConnected = "//manifest/application/receiver/intent-filter/action/@name[.=\"android.intent.action.ACTION_POWER_CONNECTED\"]"; diff --git a/android-plugin/src/main/java/io/ecocode/xml/checks/power/CompagnionInBackgroundXmlRule.java b/android-plugin/src/main/java/io/creedengo/xml/checks/power/CompagnionInBackgroundXmlRule.java similarity index 79% rename from android-plugin/src/main/java/io/ecocode/xml/checks/power/CompagnionInBackgroundXmlRule.java rename to android-plugin/src/main/java/io/creedengo/xml/checks/power/CompagnionInBackgroundXmlRule.java index 4fbc7f9d..ef6f67e2 100644 --- a/android-plugin/src/main/java/io/ecocode/xml/checks/power/CompagnionInBackgroundXmlRule.java +++ b/android-plugin/src/main/java/io/creedengo/xml/checks/power/CompagnionInBackgroundXmlRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml.checks.power; +package io.creedengo.xml.checks.power; -import io.ecocode.xml.checks.helpers.CheckPermissionsRule; +import io.creedengo.xml.checks.helpers.CheckPermissionsRule; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -26,7 +26,7 @@ * if the permission "android.permission.REQUEST_COMPANION_RUN_IN_BACKGROUND" is found, report an issue. */ @Rule(key = "EC543") -@DeprecatedRuleKey(repositoryKey = "ecoCode-xml", ruleKey = "EPOW002") +@DeprecatedRuleKey(repositoryKey = "ecocode-xml", ruleKey = "EPOW002") public class CompagnionInBackgroundXmlRule extends CheckPermissionsRule { private static final String PERMISSION_NAME = "android.permission.REQUEST_COMPANION_RUN_IN_BACKGROUND"; diff --git a/android-plugin/src/main/java/io/ecocode/xml/checks/power/IgnoreBatteryOptimizationsXmlRule.java b/android-plugin/src/main/java/io/creedengo/xml/checks/power/IgnoreBatteryOptimizationsXmlRule.java similarity index 78% rename from android-plugin/src/main/java/io/ecocode/xml/checks/power/IgnoreBatteryOptimizationsXmlRule.java rename to android-plugin/src/main/java/io/creedengo/xml/checks/power/IgnoreBatteryOptimizationsXmlRule.java index fe50c668..416fdcdf 100644 --- a/android-plugin/src/main/java/io/ecocode/xml/checks/power/IgnoreBatteryOptimizationsXmlRule.java +++ b/android-plugin/src/main/java/io/creedengo/xml/checks/power/IgnoreBatteryOptimizationsXmlRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml.checks.power; +package io.creedengo.xml.checks.power; -import io.ecocode.xml.checks.helpers.CheckPermissionsRule; +import io.creedengo.xml.checks.helpers.CheckPermissionsRule; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -26,7 +26,7 @@ * if the permission "android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" is found, report an issue. */ @Rule(key = "EC544") -@DeprecatedRuleKey(repositoryKey = "ecoCode-xml", ruleKey = "EPOW003") +@DeprecatedRuleKey(repositoryKey = "ecocode-xml", ruleKey = "EPOW003") public class IgnoreBatteryOptimizationsXmlRule extends CheckPermissionsRule { private static final String PERMISSION_NAME = "android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"; diff --git a/android-plugin/src/main/java/io/ecocode/xml/checks/power/SaveModeAwarenessXmlRule.java b/android-plugin/src/main/java/io/creedengo/xml/checks/power/SaveModeAwarenessXmlRule.java similarity index 81% rename from android-plugin/src/main/java/io/ecocode/xml/checks/power/SaveModeAwarenessXmlRule.java rename to android-plugin/src/main/java/io/creedengo/xml/checks/power/SaveModeAwarenessXmlRule.java index ec3fa88f..adab611a 100644 --- a/android-plugin/src/main/java/io/ecocode/xml/checks/power/SaveModeAwarenessXmlRule.java +++ b/android-plugin/src/main/java/io/creedengo/xml/checks/power/SaveModeAwarenessXmlRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml.checks.power; +package io.creedengo.xml.checks.power; -import io.ecocode.xml.checks.XPathSimpleCheck; +import io.creedengo.xml.checks.XPathSimpleCheck; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -26,7 +26,7 @@ * if the permission "android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" is found, report an issue. */ @Rule(key = "EC546") -@DeprecatedRuleKey(repositoryKey = "ecoCode-xml", ruleKey = "EPOW007") +@DeprecatedRuleKey(repositoryKey = "ecocode-xml", ruleKey = "EPOW007") public class SaveModeAwarenessXmlRule extends XPathSimpleCheck { private static final String ACTION_POWER_CHANGED_XPATH = "//manifest/application/receiver/intent-filter/action/@name[.=\"android.intent.action.BATTERY_CHANGED\"]"; diff --git a/android-plugin/src/main/java/io/ecocode/xml/checks/sobriety/DarkUIBrightColorsXmlRule.java b/android-plugin/src/main/java/io/creedengo/xml/checks/sobriety/DarkUIBrightColorsXmlRule.java similarity index 90% rename from android-plugin/src/main/java/io/ecocode/xml/checks/sobriety/DarkUIBrightColorsXmlRule.java rename to android-plugin/src/main/java/io/creedengo/xml/checks/sobriety/DarkUIBrightColorsXmlRule.java index 6451ecaa..40464415 100644 --- a/android-plugin/src/main/java/io/ecocode/xml/checks/sobriety/DarkUIBrightColorsXmlRule.java +++ b/android-plugin/src/main/java/io/creedengo/xml/checks/sobriety/DarkUIBrightColorsXmlRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml.checks.sobriety; +package io.creedengo.xml.checks.sobriety; -import io.ecocode.xml.checks.XPathCheck; +import io.creedengo.xml.checks.XPathCheck; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; import org.w3c.dom.Node; @@ -36,7 +36,7 @@ * */ @Rule(key = "EC547") -@DeprecatedRuleKey(repositoryKey = "ecoCode-xml", ruleKey = "ESOB003") +@DeprecatedRuleKey(repositoryKey = "ecocode-xml", ruleKey = "ESOB003") public class DarkUIBrightColorsXmlRule extends XPathCheck { private static final String[] ATTRIBUTES_TO_CHECK = { diff --git a/android-plugin/src/main/java/io/ecocode/xml/checks/sobriety/DarkUIThemeXmlRule.java b/android-plugin/src/main/java/io/creedengo/xml/checks/sobriety/DarkUIThemeXmlRule.java similarity index 91% rename from android-plugin/src/main/java/io/ecocode/xml/checks/sobriety/DarkUIThemeXmlRule.java rename to android-plugin/src/main/java/io/creedengo/xml/checks/sobriety/DarkUIThemeXmlRule.java index 81100622..539bdfc5 100644 --- a/android-plugin/src/main/java/io/ecocode/xml/checks/sobriety/DarkUIThemeXmlRule.java +++ b/android-plugin/src/main/java/io/creedengo/xml/checks/sobriety/DarkUIThemeXmlRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml.checks.sobriety; +package io.creedengo.xml.checks.sobriety; -import io.ecocode.xml.checks.XPathSimpleCheck; +import io.creedengo.xml.checks.XPathSimpleCheck; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; @@ -43,7 +43,7 @@ * */ @Rule(key = "EC548") -@DeprecatedRuleKey(repositoryKey = "ecoCode-xml", ruleKey = "ESOB004") +@DeprecatedRuleKey(repositoryKey = "ecocode-xml", ruleKey = "ESOB004") public class DarkUIThemeXmlRule extends XPathSimpleCheck { private static final String STYLE_HOLO_LIGHT = "/resources/style[starts-with(@parent, \"@android:style/Theme.Holo.Light\")]/@parent"; diff --git a/android-plugin/src/main/java/io/ecocode/xml/checks/sobriety/HardwareAccelerationXmlRule.java b/android-plugin/src/main/java/io/creedengo/xml/checks/sobriety/HardwareAccelerationXmlRule.java similarity index 89% rename from android-plugin/src/main/java/io/ecocode/xml/checks/sobriety/HardwareAccelerationXmlRule.java rename to android-plugin/src/main/java/io/creedengo/xml/checks/sobriety/HardwareAccelerationXmlRule.java index ae11557e..875c3a46 100644 --- a/android-plugin/src/main/java/io/ecocode/xml/checks/sobriety/HardwareAccelerationXmlRule.java +++ b/android-plugin/src/main/java/io/creedengo/xml/checks/sobriety/HardwareAccelerationXmlRule.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,16 +15,16 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml.checks.sobriety; +package io.creedengo.xml.checks.sobriety; -import io.ecocode.xml.checks.XPathSimpleCheck; +import io.creedengo.xml.checks.XPathSimpleCheck; import org.sonar.check.Priority; import org.sonar.check.Rule; import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey; import org.w3c.dom.Node; @Rule(key = "EC549", name = "Hardware acceleration", priority = Priority.MAJOR) -@DeprecatedRuleKey(repositoryKey = "ecoCode-java", ruleKey = "ESOB016") +@DeprecatedRuleKey(repositoryKey = "ecocode-android-java", ruleKey = "ESOB016") public class HardwareAccelerationXmlRule extends XPathSimpleCheck { private static final String ERROR_MESSAGE_ENABLED = diff --git a/android-plugin/src/main/java/org/sonar/plugins/groovy/codenarc/CodeNarcRulesDefinition.java b/android-plugin/src/main/java/org/sonar/plugins/groovy/codenarc/CodeNarcRulesDefinition.java index c9c5ad06..35a5d2a7 100644 --- a/android-plugin/src/main/java/org/sonar/plugins/groovy/codenarc/CodeNarcRulesDefinition.java +++ b/android-plugin/src/main/java/org/sonar/plugins/groovy/codenarc/CodeNarcRulesDefinition.java @@ -34,7 +34,7 @@ public class CodeNarcRulesDefinition implements RulesDefinition { - public static final String REPOSITORY_KEY = "ecocode-android-groovy"; + public static final String REPOSITORY_KEY = "creedengo-android-groovy"; public static final String REPOSITORY_NAME = Groovy.PROFILE_NAME; private static final String COST_FILE_PATH = "/org/sonar/plugins/groovy/cost.csv"; diff --git a/android-plugin/src/main/java/org/sonar/plugins/groovy/foundation/Groovy.java b/android-plugin/src/main/java/org/sonar/plugins/groovy/foundation/Groovy.java index d66b4118..fa126841 100644 --- a/android-plugin/src/main/java/org/sonar/plugins/groovy/foundation/Groovy.java +++ b/android-plugin/src/main/java/org/sonar/plugins/groovy/foundation/Groovy.java @@ -31,7 +31,7 @@ public class Groovy extends AbstractLanguage { public static final String KEY = "groovy_gradle"; public static final String NAME = "Groovy (Gradle)"; - public static final String PROFILE_NAME = "ecoCode (Android)"; + public static final String PROFILE_NAME = "Creedengo (Android Gradle)"; public static final String FILE_SUFFIXES_KEY = "sonar.gradle.file.suffixes"; static final String DEFAULT_FILE_SUFFIXES = ".gradle"; diff --git a/android-plugin/src/main/resources/io/ecocode/android/java/ecocode_java_profile.json b/android-plugin/src/main/resources/io/creedengo/android/java/creedengo_java_profile.json similarity index 92% rename from android-plugin/src/main/resources/io/ecocode/android/java/ecocode_java_profile.json rename to android-plugin/src/main/resources/io/creedengo/android/java/creedengo_java_profile.json index 9e1b91c5..6703b405 100644 --- a/android-plugin/src/main/resources/io/ecocode/android/java/ecocode_java_profile.json +++ b/android-plugin/src/main/resources/io/creedengo/android/java/creedengo_java_profile.json @@ -1,5 +1,5 @@ { - "name": "ecoCode Android", + "name": "Creedengo (Android Java)", "ruleKeys": [ "EC500", "EC501", diff --git a/android-plugin/src/main/resources/io/ecocode/android/xml/ecocode_xml_profile.json b/android-plugin/src/main/resources/io/creedengo/android/xml/creedengo_xml_profile.json similarity index 79% rename from android-plugin/src/main/resources/io/ecocode/android/xml/ecocode_xml_profile.json rename to android-plugin/src/main/resources/io/creedengo/android/xml/creedengo_xml_profile.json index d37fa446..8140482d 100644 --- a/android-plugin/src/main/resources/io/ecocode/android/xml/ecocode_xml_profile.json +++ b/android-plugin/src/main/resources/io/creedengo/android/xml/creedengo_xml_profile.json @@ -1,5 +1,5 @@ { - "name": "ecoCode Android", + "name": "Creedengo (Android XML)", "ruleKeys": [ "EC540", "EC541", diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC500.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC500.html similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC500.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC500.html index fea8c55c..27094cba 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC500.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC500.html @@ -1,4 +1,4 @@ - +

With SensorManager#registerListener(SensorEventListener, Sensor, int) the events are delivered as soon as possible.
Instead, SensorManager#registerListener(SensorEventListener, Sensor, int, int maxReportLatencyUs)< allows events to stay temporarily in the hardware FIFO (queue) before being delivered. diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC500.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC500.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC500.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC500.json index 80d54430..3827db1a 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC500.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC500.json @@ -9,7 +9,7 @@ "tags": [ "batch", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC501.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC501.html similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC501.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC501.html index 102d8c22..cccf02b9 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC501.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC501.html @@ -1,4 +1,4 @@ - +

The Android 5.0 Lollipop (API 21) release introduces a job scheduler API via the Job Scheduler class.
Compared to a custom Sync Adapter or the alarm manager, the Job Scheduler supports batch scheduling of jobs.
The Android system can combine jobs so that battery consumption is reduced.

diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC501.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC501.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC501.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC501.json index 7f7de57c..044cec4a 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC501.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC501.json @@ -9,7 +9,7 @@ "tags": [ "batch", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC502.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC502.html similarity index 90% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC502.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC502.html index d21c7998..32dbd4dd 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC502.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC502.html @@ -1,4 +1,4 @@ - +

Opening and closing internet connection continuously is extremely battery-inefficient since HTTP exchange is the most consuming operation of the network. This bug typically occurs when one obtain a new HttpURLConnection by calling URL#openConnection() within a loop control structure (while, for, do-while, for-each).
diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC502.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC502.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC502.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC502.json index 4fcc4a82..7844ab68 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC502.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC502.json @@ -9,7 +9,7 @@ "tags": [ "optimized-api", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC503.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC503.html similarity index 92% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC503.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC503.html index 117273da..0af153d2 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC503.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC503.html @@ -1,4 +1,4 @@ - +

Normally the Wi-Fi stack filters out packets not explicitly addressed to the device. Acquiring a Multicast Lock with WifiManager.MulticastLock.acquire() will cause the stack to receive packets addressed to multicast addresses.

diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC503.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC503.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC503.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC503.json index 6aa9f583..130fbfaa 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC503.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC503.json @@ -9,7 +9,7 @@ "tags": [ "bottleneck", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC504.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC504.html similarity index 82% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC504.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC504.html index d088954f..1137dd0f 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC504.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC504.html @@ -1,4 +1,4 @@ - +

Transmitting a file over a network infrastructure without compressing it consumes more energy than with compression. More precisely, energy efficiency is improved in case the data is compressed at least by 10%, @@ -7,13 +7,13 @@ instead of the classical OutputStream, along with the HttpURLConnection object.

Noncompliant Code Example

-    Url url = new Url("https://www.ecocode.io/");
+    Url url = new Url("https://www.creedengo.io/");
     HttpsUrlConnection con = (HttpsURLConnection) url.openConnection();
     OutputStream stream = con.getOutputStream();
 

Compliant Code Example

-    Url url = new Url("https://www.ecocode.io/");
+    Url url = new Url("https://www.creedengo.io/");
     HttpsUrlConnection con = (HttpsURLConnection) url.openConnection();
     OutputStream stream = new GZIPOutputStream(con.getOutputStream());
 
diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC504.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC504.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC504.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC504.json index 48d683cf..246b4318 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC504.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC504.json @@ -9,7 +9,7 @@ "tags": [ "bottleneck", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC505.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC505.html similarity index 87% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC505.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC505.html index 649c017e..e889e637 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC505.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC505.html @@ -1,4 +1,4 @@ - +

To avoid draining the battery, an Android device that is left idle quickly falls asleep.
Hence, keeping the screen on should be avoided, unless it is absolutely necessary. If so, developers typically use the FLAG_KEEP_SCREEN_ON in their activity. Another way to implement this is in their application's diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC505.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC505.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC505.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC505.json index f34b5b45..534e1004 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC505.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC505.json @@ -9,7 +9,7 @@ "tags": [ "idleness", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC506.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC506.html similarity index 87% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC506.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC506.html index b3b5c4cb..84cc0fbf 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC506.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC506.html @@ -1,4 +1,4 @@ - +

To avoid draining the battery, an Android device that is left idle quickly falls asleep.
Hence, keeping the screen on should be avoided, unless it is absolutely necessary. If so, developers typically use the FLAG_KEEP_SCREEN_ON in their activity. Another way to implement this is in their application's diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC506.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC506.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC506.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC506.json index 0c7b6ccf..f61dcda4 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC506.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC506.json @@ -9,7 +9,7 @@ "tags": [ "idleness", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC507.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC507.html similarity index 89% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC507.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC507.html index 5c3caefd..425fbe91 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC507.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC507.html @@ -1,4 +1,4 @@ - +

To avoid draining the battery, an Android device that is left idle quickly falls asleep. Hence, keeping the CPU on should be avoided, unless it is absolutely necessary.
If so, developers typically use a Power Manager system service feature called wake locks diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC507.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC507.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC507.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC507.json index fdbf87a3..555fcb5d 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC507.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC507.json @@ -9,7 +9,7 @@ "tags": [ "idleness", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC508.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC508.html similarity index 92% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC508.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC508.html index 0ee9f153..ecc77c53 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC508.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC508.html @@ -1,4 +1,4 @@ - +

A wake lock is a mechanism to indicate that your application needs to have the device stay on. The general principle is to obtain a wake lock, acquire it and finally release it.

Hence, the challenge here is to release the lock as soon as possible to avoid running down the device's diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC508.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC508.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC508.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC508.json index c435d372..3a543cbd 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC508.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC508.json @@ -9,7 +9,7 @@ "tags": [ "idleness", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC509.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC509.html similarity index 95% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC509.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC509.html index d0ce4489..59ff7e2a 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC509.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC509.html @@ -1,4 +1,4 @@ - +

Applications are strongly discouraged from using exact alarms unnecessarily as they reduce the OS's ability to minimize battery use (i.e. Doze Mode).

For most apps prior to API 19, setInexactRepeating() is preferable over diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC509.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC509.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC509.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC509.json index 6c58cefd..3aa33813 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC509.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC509.json @@ -9,7 +9,7 @@ "tags": [ "idleness", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC510.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC510.html similarity index 91% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC510.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC510.html index 9b791f2c..3da97e7c 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC510.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC510.html @@ -1,4 +1,4 @@ - +

For developers wishing to display OpenGL rendering, when choosing the rendering mode with GLSurfaceView#setRenderMode(int renderMode), using RENDERMODE_WHEN_DIRTY instead of RENDERMODE_CONTINUOUSLY diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC510.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC510.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC510.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC510.json index b776395f..b39ad06f 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC510.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC510.json @@ -9,7 +9,7 @@ "tags": [ "idleness", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC511.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC511.html similarity index 92% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC511.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC511.html index 23551070..0446d099 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC511.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC511.html @@ -1,4 +1,4 @@ - +

During a voice interaction session, VoiceInteractionSession#setKeepAwake(boolean keepAwake) allows to decide whether it will keep the device awake while it is running a voice activity.

By default, the system holds a wake lock for it while in this state, so that it can work even if the screen is off. Setting this to diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC511.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC511.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC511.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC511.json index 23099bc7..9ea05e1a 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC511.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC511.json @@ -9,7 +9,7 @@ "tags": [ "idleness", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC512.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC512.html similarity index 91% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC512.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC512.html index a3f60e42..f256c0e4 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC512.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC512.html @@ -1,4 +1,4 @@ - +

Most Android-powered devices have built-in sensors that measure motion, orientation, and various environmental conditions. In addition to these are the image sensor (a.k.a. Camera) and the geo-positioning sensor (a.k.a. GPS).

The common point of all these sensors is that they are expensive while in use. Their common bug is to let the sensor diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC512.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC512.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC512.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC512.json index 669956a0..9a77d46b 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC512.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC512.json @@ -9,7 +9,7 @@ "tags": [ "leakage", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC513.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC513.html similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC513.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC513.html index 0693ffcc..a3eeca26 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC513.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC513.html @@ -1,4 +1,4 @@ - +

Most Android-powered devices have built-in sensors that measure motion, orientation, and various environmental conditions. In addition to these are the image sensor (a.k.a. Camera) and the geo-positioning sensor (a.k.a. GPS).

The common point of all these sensors is that they are expensive while in use. Their common bug is to let the sensor diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC513.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC513.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC513.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC513.json index 859c0750..60782527 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC513.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC513.json @@ -9,7 +9,7 @@ "tags": [ "leakage", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC514.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC514.html similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC514.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC514.html index 14963a54..1d2be083 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC514.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC514.html @@ -1,4 +1,4 @@ - +

Most Android-powered devices have built-in sensors that measure motion, orientation, and various environmental conditions. In addition to these are the image sensor (a.k.a. Camera) and the geo-positioning sensor (a.k.a. GPS).

The common point of all these sensors is that they are expensive while in use. Their common bug is to let the sensor diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC514.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC514.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC514.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC514.json index 1074ec03..d4b62c0a 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC514.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC514.json @@ -9,7 +9,7 @@ "tags": [ "leakage", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC515.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC515.html similarity index 89% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC515.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC515.html index a3969a8f..d7c25a81 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC515.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC515.html @@ -1,4 +1,4 @@ - +

Creation of a Media Recorder object with new MediaRecorder() is used to record audio and video. Class own a release() method.

In addition to unnecessary resources (such as memory and instances of codecs) being held, diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC515.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC515.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC515.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC515.json index ead6d1e3..3276a47a 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC515.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC515.json @@ -9,7 +9,7 @@ "tags": [ "leakage", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC516.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC516.html similarity index 89% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC516.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC516.html index 729b4cf3..a79003f1 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC516.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC516.html @@ -1,4 +1,4 @@ - +

Creation of a Media Player object with new MediaPlayer() can be used to control playback of audio/video files and streams. Class own arelease() method.

In addition to unnecessary resources (such as memory and instances of codecs) being held, diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC516.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC516.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC516.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC516.json index 46339b64..4cf3218a 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC516.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC516.json @@ -9,7 +9,7 @@ "tags": [ "leakage", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC517.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC517.html similarity index 91% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC517.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC517.html index 876fad0a..f86a6cac 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC517.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC517.html @@ -1,4 +1,4 @@ - +

The fused location provider is one of the location APIs in Google Play services which combines signals from GPS, Wi-Fi, and cell networks, as well as accelerometer, gyroscope, magnetometer and other sensors. It is officially diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC517.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC517.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC517.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC517.json index 360c92ce..94bb7182 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC517.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC517.json @@ -9,7 +9,7 @@ "tags": [ "optimized-api", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC518.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC518.html similarity index 89% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC518.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC518.html index 4af3331e..1f5ddbff 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC518.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC518.html @@ -1,4 +1,4 @@ - +

In contrast to classic Bluetooth, Bluetooth Low Energy (BLE) is designed to provide significantly lower power consumption. Its purpose is to save energy on both paired devices but very few diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC518.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC518.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC518.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC518.json index 75dbedab..9dbdec78 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC518.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC518.json @@ -9,7 +9,7 @@ "tags": [ "optimized-api", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC519.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC519.html similarity index 91% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC519.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC519.html index 5199273a..a329dc1e 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC519.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC519.html @@ -1,4 +1,4 @@ - +

It's always good that an app has different behavior when device is connected/disconnected to a power station, or has different battery levels. One can monitor the changes in charging state with a broadcast receiver registered diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC519.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC519.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC519.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC519.json index 7c63da47..f25b8fbb 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC519.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC519.json @@ -9,7 +9,7 @@ "tags": [ "power", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC520.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC520.html similarity index 89% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC520.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC520.html index 50f1de3d..4de0b800 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC520.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC520.html @@ -1,4 +1,4 @@ - +

Taking into account when the device is entering or exiting the power save mode is higly desirable for the battery life. It implies the existence of a broadcast receiver registered on the action diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC520.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC520.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC520.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC520.json index 8ec94302..bb7820ce 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC520.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC520.json @@ -9,7 +9,7 @@ "tags": [ "power", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC521.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC521.html similarity index 92% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC521.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC521.html index ef2b6930..3e62d906 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC521.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC521.html @@ -1,4 +1,4 @@ - +

The rotation vector sensor is the most frequently used sensor for motion detection and monitoring. When using SensorManager#getDefaultSensor(int type), always prefer the constant TYPE_GEOMAGNETIC_ROTATION_VECTOR which is similar to TYPE_ROTATION_VECTOR, diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC521.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC521.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC521.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC521.json index ea4b1caa..1fe69d45 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC521.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC521.json @@ -9,7 +9,7 @@ "tags": [ "sobriety", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC522.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC522.html similarity index 89% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC522.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC522.html index bc3ea479..54e5609a 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC522.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC522.html @@ -1,4 +1,4 @@ - +

Introduced in Android 9, the adaptive brightness feature raises or lower the brightness of the screen depending on the light in the current environment.
For some reasons, developers may disable this feature programmatically, setting the field diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC522.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC522.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC522.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC522.json index 9317b296..d8317593 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC522.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC522.json @@ -9,7 +9,7 @@ "tags": [ "sobriety", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC523.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC523.html similarity index 92% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC523.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC523.html index 77a14aee..3fe25a56 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC523.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC523.html @@ -1,4 +1,4 @@ - +

With a call to LocationManager#requestLocationUpdates(String provider, long minTime, float minDistance, LocationListener listener), the location provider will only send your application an update when the location has changed by at diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC523.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC523.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC523.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC523.json index 4ac87ecd..f72684c3 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC523.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC523.json @@ -9,7 +9,7 @@ "tags": [ "sobriety", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC524.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC524.html similarity index 92% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC524.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC524.html index d540d3f1..487a1b9e 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC524.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC524.html @@ -1,4 +1,4 @@ - +

Location awareness is one of the most popular features used by apps. An important point is to try to get the best possible provider (LocationManager#getBestProvider()) based on an energy criteria diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC524.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC524.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC524.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC524.json index ec09a497..a6f60f1c 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC524.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC524.json @@ -9,7 +9,7 @@ "tags": [ "sobriety", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC525.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC525.html similarity index 92% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC525.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC525.html index f07b4c6c..2d5634a6 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC525.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC525.html @@ -1,4 +1,4 @@ - +

With Bluetooth Low Energy technology, a Bluetooth Smart Ready device (the master) will establish a link with a Bluetooth Smart device (the slave). Most often, the slave is a GATT server and the master is a GATT client. GATT capable diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC525.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC525.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC525.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC525.json index 9f649544..2fb13356 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC525.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC525.json @@ -9,7 +9,7 @@ "tags": [ "sobriety", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC526.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC526.html similarity index 91% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC526.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC526.html index 9df3ab6e..a680ccd9 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC526.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC526.html @@ -1,4 +1,4 @@ - +

With Bluetooth Low Energy technology (see BLE API smell), a Bluetooth Smart Ready device (the master) will establish a link with a Bluetooth Smart device (the slave). Most often, the slave is a GATT server and the master is a GATT client. GATT capable diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC526.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC526.json similarity index 95% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC526.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC526.json index fe89d2f7..1a11e395 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC526.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC526.json @@ -9,7 +9,7 @@ "tags": [ "sobriety", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC527.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC527.html similarity index 92% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC527.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC527.html index 77a14aee..3fe25a56 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC527.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC527.html @@ -1,4 +1,4 @@ - +

With a call to LocationManager#requestLocationUpdates(String provider, long minTime, float minDistance, LocationListener listener), the location provider will only send your application an update when the location has changed by at diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC527.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC527.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC527.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC527.json index e2a6c6d6..aebcc403 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC527.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC527.json @@ -9,7 +9,7 @@ "tags": [ "sobriety", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC528.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC528.html similarity index 91% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC528.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC528.html index 1b7ae5a5..36ea8f87 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC528.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC528.html @@ -1,4 +1,4 @@ - +

Shaking of an Android device is possible in all circumstances with a call to getSystemService(Context.VIBRATOR_SERVICE) (API 26) or getSystemService(Context.VIBRATOR.MANAGER.SERVICE) (API 31). Behind this effect stands a specific miniature hardware component, motor or actuator, that consumes power. diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC528.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC528.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC528.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC528.json index a9f72354..6ca38ed1 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC528.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC528.json @@ -9,7 +9,7 @@ "tags": [ "sobriety", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC529.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC529.html similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC529.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC529.html index a1ca8dad..76456fa1 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC529.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC529.html @@ -1,4 +1,4 @@ - +

Giving information to the end-user through notifications is an important aspect of a modern app.
However, a notification does not necessarily need to be loud and vibrant to achieve its purpose. Default mode is enough. That is why when building a notification with diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC529.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC529.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC529.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC529.json index 709f00a2..e9c6546d 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC529.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC529.json @@ -9,7 +9,7 @@ "tags": [ "sobriety", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC530.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC530.html similarity index 88% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC530.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC530.html index 49e67032..b7a8a5ad 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC530.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC530.html @@ -1,4 +1,4 @@ - +

Turning on the torch mode programmatically with CameraManager#setTorchMode(..., true) must absolutely be avoided because the flashlight is one of the most energy-intensive component.

Noncompliant Code Example

diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC530.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC530.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC530.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC530.json index ebf33a8d..0bc04c5e 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC530.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC530.json @@ -9,7 +9,7 @@ "tags": [ "sobriety", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC531.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC531.html similarity index 89% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC531.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC531.html index c0db8b22..04a7721f 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC531.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC531.html @@ -1,4 +1,4 @@ - +

In Android 11 (API level 30) or higher, a call to Surface#setFrameRate(float frameRate, int compatibility) results in a change to the display refresh rate. However, a regular app displays 60 frames per second (60Hz). In order to optimize content refreshes and hence diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC531.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC531.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC531.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC531.json index 263ee2be..8460d101 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC531.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC531.json @@ -9,7 +9,7 @@ "tags": [ "sobriety", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC532.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC532.html similarity index 88% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC532.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC532.html index dd315224..6b04a57f 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC532.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC532.html @@ -1,4 +1,4 @@ - +

Importing the com.google.android.gms.analytics.Tracker or com.google.firebase.analytics.FirebaseAnalytics classes means that the app sends hits to Google Analytics. It is not necessarily sensitive information, but it is a first step towards Google Ads and hence this practice should be discouraged at early stage.

diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC532.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC532.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC532.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC532.json index 9e238f4c..09121513 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC532.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC532.json @@ -9,7 +9,7 @@ "tags": [ "privacy", "social", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC533.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC533.html similarity index 82% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC533.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC533.html index 1feaa0f8..33d48a16 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC533.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC533.html @@ -1,4 +1,4 @@ - +

Good Practice ! User consent checked. diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC533.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC533.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC533.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC533.json index ecd65d10..c13ae015 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC533.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC533.json @@ -9,7 +9,7 @@ "tags": [ "gdpr", "social", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC534.html b/android-plugin/src/main/resources/io/creedengo/rules/java/EC534.html similarity index 89% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC534.html rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC534.html index 8438d880..f49e1cf6 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC534.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC534.html @@ -1,4 +1,4 @@ - +

For some use cases, it might be necessary to get a unique device identifier by a call to TelephonyManager#getDeviceId() (returns IMEI on GSM, MEID for CDMA). diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/EC534.json b/android-plugin/src/main/resources/io/creedengo/rules/java/EC534.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/java/EC534.json rename to android-plugin/src/main/resources/io/creedengo/rules/java/EC534.json index ff4c455c..bb1b2d76 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/EC534.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/EC534.json @@ -9,7 +9,7 @@ "tags": [ "privacy", "social", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/java/README.md b/android-plugin/src/main/resources/io/creedengo/rules/java/README.md similarity index 76% rename from android-plugin/src/main/resources/io/ecocode/rules/java/README.md rename to android-plugin/src/main/resources/io/creedengo/rules/java/README.md index 15f8dfc1..e77d5194 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/java/README.md +++ b/android-plugin/src/main/resources/io/creedengo/rules/java/README.md @@ -13,7 +13,7 @@ If you want to: * adjust rule metadata; * etc. -Then, please reach us though our mail , prior to submitting any code change. +Then, please reach us though our mail , prior to submitting any code change. Thanks, -*The ecoCode Team* +*The Creedengo Team* diff --git a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC540.html b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC540.html similarity index 92% rename from android-plugin/src/main/resources/io/ecocode/rules/xml/EC540.html rename to android-plugin/src/main/resources/io/creedengo/rules/xml/EC540.html index 72848674..f88499b9 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC540.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC540.html @@ -1,4 +1,4 @@ - +

Services are long-living operations, as components of the apps. However, they can be started in isolation each time the device is next started, without the user's acknowledgement.
This technique should be discouraged because the accumulation of these silent services results in excessive battery depletion that remains diff --git a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC540.json b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC540.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/xml/EC540.json rename to android-plugin/src/main/resources/io/creedengo/rules/xml/EC540.json index 96150d25..45cfa3e2 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC540.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC540.json @@ -9,7 +9,7 @@ "tags": [ "batch", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC541.html b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC541.html similarity index 92% rename from android-plugin/src/main/resources/io/ecocode/rules/xml/EC541.html rename to android-plugin/src/main/resources/io/creedengo/rules/xml/EC541.html index 3a1b04cc..0ec8c81a 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC541.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC541.html @@ -1,4 +1,4 @@ - +

To avoid draining the battery, an Android device that is left idle quickly falls asleep.
Hence, keeping the screen on should be avoided, unless it is absolutely necessary. If so, developers typically use the FLAG_KEEP_SCREEN_ON in their activity. Another way to implement this is in their application's diff --git a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC541.json b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC541.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/xml/EC541.json rename to android-plugin/src/main/resources/io/creedengo/rules/xml/EC541.json index 40788f9f..f65bf0a8 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC541.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC541.json @@ -9,7 +9,7 @@ "tags": [ "idleness", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC542.html b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC542.html similarity index 89% rename from android-plugin/src/main/resources/io/ecocode/rules/xml/EC542.html rename to android-plugin/src/main/resources/io/creedengo/rules/xml/EC542.html index 48d4e09f..7b397423 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC542.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC542.html @@ -1,4 +1,4 @@ - +

To avoid draining the battery, an Android device that is left idle quickly falls asleep. Hence, keeping the screen on should be avoided, unless it is absolutely necessary.
If so, developers typically use a Power Manager system service feature called wake locks diff --git a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC542.json b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC542.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/xml/EC542.json rename to android-plugin/src/main/resources/io/creedengo/rules/xml/EC542.json index 65f556e4..d36162b2 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC542.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC542.json @@ -9,7 +9,7 @@ "tags": [ "idleness", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC543.html b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC543.html similarity index 87% rename from android-plugin/src/main/resources/io/ecocode/rules/xml/EC543.html rename to android-plugin/src/main/resources/io/creedengo/rules/xml/EC543.html index 90308e6a..a1f83d77 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC543.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC543.html @@ -1,4 +1,4 @@ - +

A negative effect on the device s battery is when an app is paired with a companion device (over Bluetooth, BLE, or Wi-Fi) and that it has been excluded from battery optimizations (run in the background) using the declaration Manifest.permission.REQUEST_COMPANION_RUN_IN_BACKGROUND.

diff --git a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC543.json b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC543.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/xml/EC543.json rename to android-plugin/src/main/resources/io/creedengo/rules/xml/EC543.json index 5c157d61..6701d6c8 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC543.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC543.json @@ -9,7 +9,7 @@ "tags": [ "power", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC544.html b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC544.html similarity index 88% rename from android-plugin/src/main/resources/io/ecocode/rules/xml/EC544.html rename to android-plugin/src/main/resources/io/creedengo/rules/xml/EC544.html index 3eefe003..78179e7b 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC544.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC544.html @@ -1,4 +1,4 @@ - +

An app holding the permission REQUEST_IGNORE_BATTERY_OPTIMIZATIONS asks the user to allow it to ignore battery optimizations (that is, put them on the whitelist of apps).

Most applications should not use this; there are many facilities provided by the platform for applications to diff --git a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC544.json b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC544.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/xml/EC544.json rename to android-plugin/src/main/resources/io/creedengo/rules/xml/EC544.json index cbfbf69f..13537dbe 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC544.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC544.json @@ -9,7 +9,7 @@ "tags": [ "power", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC545.html b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC545.html similarity index 76% rename from android-plugin/src/main/resources/io/ecocode/rules/xml/EC545.html rename to android-plugin/src/main/resources/io/creedengo/rules/xml/EC545.html index da8e00d6..6451d355 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC545.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC545.html @@ -1,4 +1,4 @@ - +

It's always good that an app has different behavior when device is connected/disconnected to a power station, or has different battery levels. One can monitor the changes in charging state with a broadcast receiver registered @@ -9,7 +9,7 @@

Compliant Code Example

-    <receiver android:name="io.ecocode.testapp.core.service.MyReceiver">
+    <receiver android:name="io.creedengo.testapp.core.service.MyReceiver">
         <intent-filter>
             <action android:name="android.intent.action.ACTION_POWER_CONNECTED"/>
         </intent-filter>
@@ -17,7 +17,7 @@ 

Compliant Code Example

OR
-    <receiver android:name="io.ecocode.testapp.core.service.MyReceiver">
+    <receiver android:name="io.creedengo.testapp.core.service.MyReceiver">
         <intent-filter>
             <action android:name="android.intent.action.ACTION_POWER_DISCONNECTED"/>
         </intent-filter>
@@ -25,7 +25,7 @@ 

Compliant Code Example

OR
-    <receiver android:name="io.ecocode.testapp.core.service.MyReceiver">
+    <receiver android:name="io.creedengo.testapp.core.service.MyReceiver">
         <intent-filter>
             <action android:name="android.intent.action.ACTION_POWER_BATTERY_OKAY"/>
         </intent-filter>
@@ -33,7 +33,7 @@ 

Compliant Code Example

OR
-    <receiver android:name="io.ecocode.testapp.core.service.MyReceiver">
+    <receiver android:name="io.creedengo.testapp.core.service.MyReceiver">
         <intent-filter>
             <action android:name="android.intent.action.ACTION_POWER_BATTERY_LOW"/>
         </intent-filter>
diff --git a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC545.json b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC545.json
similarity index 94%
rename from android-plugin/src/main/resources/io/ecocode/rules/xml/EC545.json
rename to android-plugin/src/main/resources/io/creedengo/rules/xml/EC545.json
index 7c63da47..f25b8fbb 100644
--- a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC545.json
+++ b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC545.json
@@ -9,7 +9,7 @@
   "tags": [
     "power",
     "environment",
-    "ecocode",
+    "creedengo",
     "android",
     "eco-design"
   ],
diff --git a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC546.html b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC546.html
similarity index 77%
rename from android-plugin/src/main/resources/io/ecocode/rules/xml/EC546.html
rename to android-plugin/src/main/resources/io/creedengo/rules/xml/EC546.html
index 9441c3a5..aac4e1e7 100644
--- a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC546.html
+++ b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC546.html
@@ -1,4 +1,4 @@
-
+
 

Taking into account when the device is entering or exiting the power save mode is higly desirable for the battery life. It implies the existence of a broadcast receiver registered on the action @@ -6,7 +6,7 @@ or programmaticaly with a call to PowerManager#isPowerSaveMode().

Compliant Code Example

-    <receiver android:name="io.ecocode.testapp.core.service.MyReceiver">
+    <receiver android:name="io.creedengo.testapp.core.service.MyReceiver">
         <intent-filter>
             <action android:name="android.intent.action.BATTERY_CHANGED"/>
         </intent-filter>
diff --git a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC546.json b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC546.json
similarity index 94%
rename from android-plugin/src/main/resources/io/ecocode/rules/xml/EC546.json
rename to android-plugin/src/main/resources/io/creedengo/rules/xml/EC546.json
index 8ec94302..bb7820ce 100644
--- a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC546.json
+++ b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC546.json
@@ -9,7 +9,7 @@
   "tags": [
     "power",
     "environment",
-    "ecocode",
+    "creedengo",
     "android",
     "eco-design"
   ],
diff --git a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC547.html b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC547.html
similarity index 86%
rename from android-plugin/src/main/resources/io/ecocode/rules/xml/EC547.html
rename to android-plugin/src/main/resources/io/creedengo/rules/xml/EC547.html
index eb63dc53..0d37c211 100644
--- a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC547.html
+++ b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC547.html
@@ -1,4 +1,4 @@
-
+
 

Displaying dark colors is particularly beneficial for mobile devices with (AM)OLED screens.
Consequently, custom resources like bright colors values and bitmap images with too high luminance should be avoided.

Noncompliant Code Example

diff --git a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC547.json b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC547.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/xml/EC547.json rename to android-plugin/src/main/resources/io/creedengo/rules/xml/EC547.json index 605d0c89..467513f5 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC547.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC547.json @@ -9,7 +9,7 @@ "tags": [ "sobriety", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC548.html b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC548.html similarity index 93% rename from android-plugin/src/main/resources/io/ecocode/rules/xml/EC548.html rename to android-plugin/src/main/resources/io/creedengo/rules/xml/EC548.html index 4b85c46c..6c51ff2a 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC548.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC548.html @@ -1,4 +1,4 @@ - +

Developers are allowed to apply native themes for their app, or derive new ones through inheritance. This decision has a significant impact on energy consumption since displaying dark colors is particularly beneficial for mobile devices with (AM)OLED screens.
diff --git a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC548.json b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC548.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/xml/EC548.json rename to android-plugin/src/main/resources/io/creedengo/rules/xml/EC548.json index 329f040d..6949cf46 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC548.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC548.json @@ -9,7 +9,7 @@ "tags": [ "sobriety", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC549.html b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC549.html similarity index 95% rename from android-plugin/src/main/resources/io/ecocode/rules/xml/EC549.html rename to android-plugin/src/main/resources/io/creedengo/rules/xml/EC549.html index e626170b..41298427 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC549.html +++ b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC549.html @@ -1,4 +1,4 @@ - +

Hardware acceleration is a feature that improves rendering performance by offloading certain 2D drawing operations to the GPU. While it can enhance UI responsiveness, it also increases memory and power consumption — especially on lower-end or older devices. diff --git a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC549.json b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC549.json similarity index 94% rename from android-plugin/src/main/resources/io/ecocode/rules/xml/EC549.json rename to android-plugin/src/main/resources/io/creedengo/rules/xml/EC549.json index decefdc9..1d4e0057 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/xml/EC549.json +++ b/android-plugin/src/main/resources/io/creedengo/rules/xml/EC549.json @@ -9,7 +9,7 @@ "tags": [ "sobriety", "environment", - "ecocode", + "creedengo", "android", "eco-design" ], diff --git a/android-plugin/src/main/resources/io/ecocode/rules/xml/README.md b/android-plugin/src/main/resources/io/creedengo/rules/xml/README.md similarity index 76% rename from android-plugin/src/main/resources/io/ecocode/rules/xml/README.md rename to android-plugin/src/main/resources/io/creedengo/rules/xml/README.md index 15f8dfc1..e77d5194 100644 --- a/android-plugin/src/main/resources/io/ecocode/rules/xml/README.md +++ b/android-plugin/src/main/resources/io/creedengo/rules/xml/README.md @@ -13,7 +13,7 @@ If you want to: * adjust rule metadata; * etc. -Then, please reach us though our mail , prior to submitting any code change. +Then, please reach us though our mail , prior to submitting any code change. Thanks, -*The ecoCode Team* +*The Creedengo Team* diff --git a/android-plugin/src/main/resources/org/sonar/plugins/groovy/rules.xml b/android-plugin/src/main/resources/org/sonar/plugins/groovy/rules.xml index d54205f7..e349faf9 100644 --- a/android-plugin/src/main/resources/org/sonar/plugins/groovy/rules.xml +++ b/android-plugin/src/main/resources/org/sonar/plugins/groovy/rules.xml @@ -1,6 +1,6 @@ - + diff --git a/android-plugin/src/test/files/environment/batch/JobCoalesceCheckAlarmManager.java b/android-plugin/src/test/files/environment/batch/JobCoalesceCheckAlarmManager.java index 2279ce72..e8fbee9b 100644 --- a/android-plugin/src/test/files/environment/batch/JobCoalesceCheckAlarmManager.java +++ b/android-plugin/src/test/files/environment/batch/JobCoalesceCheckAlarmManager.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/batch/JobCoalesceCheckSyncAdapter.java b/android-plugin/src/test/files/environment/batch/JobCoalesceCheckSyncAdapter.java index a4605f91..11a0cdca 100644 --- a/android-plugin/src/test/files/environment/batch/JobCoalesceCheckSyncAdapter.java +++ b/android-plugin/src/test/files/environment/batch/JobCoalesceCheckSyncAdapter.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/batch/SensorCoalesceCheck.java b/android-plugin/src/test/files/environment/batch/SensorCoalesceCheck.java index fd184f26..27b9594d 100644 --- a/android-plugin/src/test/files/environment/batch/SensorCoalesceCheck.java +++ b/android-plugin/src/test/files/environment/batch/SensorCoalesceCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/bottleneck/InternetInTheLoopCheck.java b/android-plugin/src/test/files/environment/bottleneck/InternetInTheLoopCheck.java index c2dc0f5e..fe3fa1fe 100644 --- a/android-plugin/src/test/files/environment/bottleneck/InternetInTheLoopCheck.java +++ b/android-plugin/src/test/files/environment/bottleneck/InternetInTheLoopCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/bottleneck/UncompressedDataTransmissionCheck.java b/android-plugin/src/test/files/environment/bottleneck/UncompressedDataTransmissionCheck.java index 850dcdcc..8f8acf33 100644 --- a/android-plugin/src/test/files/environment/bottleneck/UncompressedDataTransmissionCheck.java +++ b/android-plugin/src/test/files/environment/bottleneck/UncompressedDataTransmissionCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/bottleneck/WifiMulticastLockCheck.java b/android-plugin/src/test/files/environment/bottleneck/WifiMulticastLockCheck.java index 16fbe3b0..c7e58ece 100644 --- a/android-plugin/src/test/files/environment/bottleneck/WifiMulticastLockCheck.java +++ b/android-plugin/src/test/files/environment/bottleneck/WifiMulticastLockCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/bottleneck/WifiMulticastLockNoIssueCheck.java b/android-plugin/src/test/files/environment/bottleneck/WifiMulticastLockNoIssueCheck.java index 388f3e4b..b0ba267a 100644 --- a/android-plugin/src/test/files/environment/bottleneck/WifiMulticastLockNoIssueCheck.java +++ b/android-plugin/src/test/files/environment/bottleneck/WifiMulticastLockNoIssueCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/idleness/ContinuousRenderingCheck.java b/android-plugin/src/test/files/environment/idleness/ContinuousRenderingCheck.java index d4e95d48..1a6f6811 100644 --- a/android-plugin/src/test/files/environment/idleness/ContinuousRenderingCheck.java +++ b/android-plugin/src/test/files/environment/idleness/ContinuousRenderingCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/idleness/DurableWakeLockCheck.java b/android-plugin/src/test/files/environment/idleness/DurableWakeLockCheck.java index 0add4ff6..f069e780 100644 --- a/android-plugin/src/test/files/environment/idleness/DurableWakeLockCheck.java +++ b/android-plugin/src/test/files/environment/idleness/DurableWakeLockCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/idleness/KeepCpuOnCheck.java b/android-plugin/src/test/files/environment/idleness/KeepCpuOnCheck.java index add8da40..94932b78 100644 --- a/android-plugin/src/test/files/environment/idleness/KeepCpuOnCheck.java +++ b/android-plugin/src/test/files/environment/idleness/KeepCpuOnCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/idleness/KeepScreenOnAddFlagsCheck.java b/android-plugin/src/test/files/environment/idleness/KeepScreenOnAddFlagsCheck.java index 802238bd..c4cd3228 100644 --- a/android-plugin/src/test/files/environment/idleness/KeepScreenOnAddFlagsCheck.java +++ b/android-plugin/src/test/files/environment/idleness/KeepScreenOnAddFlagsCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/idleness/KeepScreenOnSetFlagsCheck.java b/android-plugin/src/test/files/environment/idleness/KeepScreenOnSetFlagsCheck.java index de53a770..8cf320be 100644 --- a/android-plugin/src/test/files/environment/idleness/KeepScreenOnSetFlagsCheck.java +++ b/android-plugin/src/test/files/environment/idleness/KeepScreenOnSetFlagsCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/idleness/KeepVoiceAwakeCheck.java b/android-plugin/src/test/files/environment/idleness/KeepVoiceAwakeCheck.java index 917c6fbd..d86de17f 100644 --- a/android-plugin/src/test/files/environment/idleness/KeepVoiceAwakeCheck.java +++ b/android-plugin/src/test/files/environment/idleness/KeepVoiceAwakeCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/idleness/KeepVoiceAwakeNotPresentCheck.java b/android-plugin/src/test/files/environment/idleness/KeepVoiceAwakeNotPresentCheck.java index c343fce8..cfc17689 100644 --- a/android-plugin/src/test/files/environment/idleness/KeepVoiceAwakeNotPresentCheck.java +++ b/android-plugin/src/test/files/environment/idleness/KeepVoiceAwakeNotPresentCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/idleness/KeepVoiceAwakeToFalseCheck.java b/android-plugin/src/test/files/environment/idleness/KeepVoiceAwakeToFalseCheck.java index a979ef24..b6bae3b0 100644 --- a/android-plugin/src/test/files/environment/idleness/KeepVoiceAwakeToFalseCheck.java +++ b/android-plugin/src/test/files/environment/idleness/KeepVoiceAwakeToFalseCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/idleness/RigidAlarmCheck.java b/android-plugin/src/test/files/environment/idleness/RigidAlarmCheck.java index 3bdb54b4..4fa67cc7 100644 --- a/android-plugin/src/test/files/environment/idleness/RigidAlarmCheck.java +++ b/android-plugin/src/test/files/environment/idleness/RigidAlarmCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/leakage/CameraLeakCheckIssue.java b/android-plugin/src/test/files/environment/leakage/CameraLeakCheckIssue.java index 6fe4cce1..d880911f 100644 --- a/android-plugin/src/test/files/environment/leakage/CameraLeakCheckIssue.java +++ b/android-plugin/src/test/files/environment/leakage/CameraLeakCheckIssue.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/leakage/CameraLeakCheckNoIssue.java b/android-plugin/src/test/files/environment/leakage/CameraLeakCheckNoIssue.java index 20077e9c..e4a337fe 100644 --- a/android-plugin/src/test/files/environment/leakage/CameraLeakCheckNoIssue.java +++ b/android-plugin/src/test/files/environment/leakage/CameraLeakCheckNoIssue.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/leakage/LocationLeakCheckIssue.java b/android-plugin/src/test/files/environment/leakage/LocationLeakCheckIssue.java index 1c164598..9d27d166 100644 --- a/android-plugin/src/test/files/environment/leakage/LocationLeakCheckIssue.java +++ b/android-plugin/src/test/files/environment/leakage/LocationLeakCheckIssue.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/leakage/LocationLealCheckNoIssue.java b/android-plugin/src/test/files/environment/leakage/LocationLealCheckNoIssue.java index f6febbbe..47df1901 100644 --- a/android-plugin/src/test/files/environment/leakage/LocationLealCheckNoIssue.java +++ b/android-plugin/src/test/files/environment/leakage/LocationLealCheckNoIssue.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/leakage/MediaLeakMediaPlayerCheckIssue.java b/android-plugin/src/test/files/environment/leakage/MediaLeakMediaPlayerCheckIssue.java index 14cdd48a..27b5ae10 100644 --- a/android-plugin/src/test/files/environment/leakage/MediaLeakMediaPlayerCheckIssue.java +++ b/android-plugin/src/test/files/environment/leakage/MediaLeakMediaPlayerCheckIssue.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/leakage/MediaLeakMediaPlayerCheckNoIssue.java b/android-plugin/src/test/files/environment/leakage/MediaLeakMediaPlayerCheckNoIssue.java index 08e54f7c..fc56c9fe 100644 --- a/android-plugin/src/test/files/environment/leakage/MediaLeakMediaPlayerCheckNoIssue.java +++ b/android-plugin/src/test/files/environment/leakage/MediaLeakMediaPlayerCheckNoIssue.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/leakage/MediaLeakMediaRecorderCheckIssue.java b/android-plugin/src/test/files/environment/leakage/MediaLeakMediaRecorderCheckIssue.java index 54d34c67..0404183b 100644 --- a/android-plugin/src/test/files/environment/leakage/MediaLeakMediaRecorderCheckIssue.java +++ b/android-plugin/src/test/files/environment/leakage/MediaLeakMediaRecorderCheckIssue.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/leakage/MediaLeakMediaRecorderCheckNoIssue.java b/android-plugin/src/test/files/environment/leakage/MediaLeakMediaRecorderCheckNoIssue.java index d9cc0ac2..2a7d1705 100644 --- a/android-plugin/src/test/files/environment/leakage/MediaLeakMediaRecorderCheckNoIssue.java +++ b/android-plugin/src/test/files/environment/leakage/MediaLeakMediaRecorderCheckNoIssue.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/leakage/SensorManagerLeakCheckIssue.java b/android-plugin/src/test/files/environment/leakage/SensorManagerLeakCheckIssue.java index 215e39ee..32f66f47 100644 --- a/android-plugin/src/test/files/environment/leakage/SensorManagerLeakCheckIssue.java +++ b/android-plugin/src/test/files/environment/leakage/SensorManagerLeakCheckIssue.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/leakage/SensorManagerLeakCheckNoIssue.java b/android-plugin/src/test/files/environment/leakage/SensorManagerLeakCheckNoIssue.java index 4cdad435..333fb37b 100644 --- a/android-plugin/src/test/files/environment/leakage/SensorManagerLeakCheckNoIssue.java +++ b/android-plugin/src/test/files/environment/leakage/SensorManagerLeakCheckNoIssue.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/optimized_api/BluetoothLowEnergyCheckBothBleBc.java b/android-plugin/src/test/files/environment/optimized_api/BluetoothLowEnergyCheckBothBleBc.java index f9e6cdcb..08973ebe 100644 --- a/android-plugin/src/test/files/environment/optimized_api/BluetoothLowEnergyCheckBothBleBc.java +++ b/android-plugin/src/test/files/environment/optimized_api/BluetoothLowEnergyCheckBothBleBc.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/optimized_api/BluetoothLowEnergyCheckOnlyBc.java b/android-plugin/src/test/files/environment/optimized_api/BluetoothLowEnergyCheckOnlyBc.java index a7af9b14..db9c3a22 100644 --- a/android-plugin/src/test/files/environment/optimized_api/BluetoothLowEnergyCheckOnlyBc.java +++ b/android-plugin/src/test/files/environment/optimized_api/BluetoothLowEnergyCheckOnlyBc.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/optimized_api/BluetoothLowEnergyCheckOnlyBle.java b/android-plugin/src/test/files/environment/optimized_api/BluetoothLowEnergyCheckOnlyBle.java index fc03aec1..1b093314 100644 --- a/android-plugin/src/test/files/environment/optimized_api/BluetoothLowEnergyCheckOnlyBle.java +++ b/android-plugin/src/test/files/environment/optimized_api/BluetoothLowEnergyCheckOnlyBle.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/optimized_api/BluetoothLowEnergyCheckWildcard.java b/android-plugin/src/test/files/environment/optimized_api/BluetoothLowEnergyCheckWildcard.java index 021a3746..5693ded2 100644 --- a/android-plugin/src/test/files/environment/optimized_api/BluetoothLowEnergyCheckWildcard.java +++ b/android-plugin/src/test/files/environment/optimized_api/BluetoothLowEnergyCheckWildcard.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/optimized_api/FusedLocationCheck.java b/android-plugin/src/test/files/environment/optimized_api/FusedLocationCheck.java index c3f32698..c285263d 100644 --- a/android-plugin/src/test/files/environment/optimized_api/FusedLocationCheck.java +++ b/android-plugin/src/test/files/environment/optimized_api/FusedLocationCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/optimized_api/FusedLocationCheckNoIssue.java b/android-plugin/src/test/files/environment/optimized_api/FusedLocationCheckNoIssue.java index bffed24f..ddf24738 100644 --- a/android-plugin/src/test/files/environment/optimized_api/FusedLocationCheckNoIssue.java +++ b/android-plugin/src/test/files/environment/optimized_api/FusedLocationCheckNoIssue.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/power/ChargeAwarenessCheck.java b/android-plugin/src/test/files/environment/power/ChargeAwarenessCheck.java index c627d000..c8c2905a 100644 --- a/android-plugin/src/test/files/environment/power/ChargeAwarenessCheck.java +++ b/android-plugin/src/test/files/environment/power/ChargeAwarenessCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/power/SaveModeAwarenessCheckIntentFilter.java b/android-plugin/src/test/files/environment/power/SaveModeAwarenessCheckIntentFilter.java index a196886e..085bda0b 100644 --- a/android-plugin/src/test/files/environment/power/SaveModeAwarenessCheckIntentFilter.java +++ b/android-plugin/src/test/files/environment/power/SaveModeAwarenessCheckIntentFilter.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/power/SaveModeAwarenessCheckPowerManager.java b/android-plugin/src/test/files/environment/power/SaveModeAwarenessCheckPowerManager.java index 5fb3f2d5..629c6d8e 100644 --- a/android-plugin/src/test/files/environment/power/SaveModeAwarenessCheckPowerManager.java +++ b/android-plugin/src/test/files/environment/power/SaveModeAwarenessCheckPowerManager.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/sobriety/BrightnessOverrideCheck.java b/android-plugin/src/test/files/environment/sobriety/BrightnessOverrideCheck.java index 3bee5c64..bb7ca87e 100644 --- a/android-plugin/src/test/files/environment/sobriety/BrightnessOverrideCheck.java +++ b/android-plugin/src/test/files/environment/sobriety/BrightnessOverrideCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/sobriety/HighFrameRateCheck.java b/android-plugin/src/test/files/environment/sobriety/HighFrameRateCheck.java index 4b812fea..d12f4525 100644 --- a/android-plugin/src/test/files/environment/sobriety/HighFrameRateCheck.java +++ b/android-plugin/src/test/files/environment/sobriety/HighFrameRateCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/sobriety/ThriftyBluetoothLowEnergyRequestConnectionPriorityCheck.java b/android-plugin/src/test/files/environment/sobriety/ThriftyBluetoothLowEnergyRequestConnectionPriorityCheck.java index d443f62d..45597c17 100644 --- a/android-plugin/src/test/files/environment/sobriety/ThriftyBluetoothLowEnergyRequestConnectionPriorityCheck.java +++ b/android-plugin/src/test/files/environment/sobriety/ThriftyBluetoothLowEnergyRequestConnectionPriorityCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/sobriety/ThriftyBluetoothLowEnergySetAdvertiseModeCheck.java b/android-plugin/src/test/files/environment/sobriety/ThriftyBluetoothLowEnergySetAdvertiseModeCheck.java index 2c3275ac..7c233d8d 100644 --- a/android-plugin/src/test/files/environment/sobriety/ThriftyBluetoothLowEnergySetAdvertiseModeCheck.java +++ b/android-plugin/src/test/files/environment/sobriety/ThriftyBluetoothLowEnergySetAdvertiseModeCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/sobriety/ThriftyGeolocationCheck.java b/android-plugin/src/test/files/environment/sobriety/ThriftyGeolocationCheck.java index cf4480ca..e4abcd48 100644 --- a/android-plugin/src/test/files/environment/sobriety/ThriftyGeolocationCheck.java +++ b/android-plugin/src/test/files/environment/sobriety/ThriftyGeolocationCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/sobriety/ThriftyGeolocationCriteriaCheckNoCriteria.java b/android-plugin/src/test/files/environment/sobriety/ThriftyGeolocationCriteriaCheckNoCriteria.java index 1e47f307..4588762d 100644 --- a/android-plugin/src/test/files/environment/sobriety/ThriftyGeolocationCriteriaCheckNoCriteria.java +++ b/android-plugin/src/test/files/environment/sobriety/ThriftyGeolocationCriteriaCheckNoCriteria.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/sobriety/ThriftyGeolocationCriteriaCheckNoIssue.java b/android-plugin/src/test/files/environment/sobriety/ThriftyGeolocationCriteriaCheckNoIssue.java index 4860dcfb..77785dd6 100644 --- a/android-plugin/src/test/files/environment/sobriety/ThriftyGeolocationCriteriaCheckNoIssue.java +++ b/android-plugin/src/test/files/environment/sobriety/ThriftyGeolocationCriteriaCheckNoIssue.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/sobriety/ThriftyGeolocationCriteriaCheckOnlyRequest.java b/android-plugin/src/test/files/environment/sobriety/ThriftyGeolocationCriteriaCheckOnlyRequest.java index 30c27973..10268d2f 100644 --- a/android-plugin/src/test/files/environment/sobriety/ThriftyGeolocationCriteriaCheckOnlyRequest.java +++ b/android-plugin/src/test/files/environment/sobriety/ThriftyGeolocationCriteriaCheckOnlyRequest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/sobriety/ThriftyGeolocationCriteriaCheckWrongCriteria.java b/android-plugin/src/test/files/environment/sobriety/ThriftyGeolocationCriteriaCheckWrongCriteria.java index 693769c6..357e7ab2 100644 --- a/android-plugin/src/test/files/environment/sobriety/ThriftyGeolocationCriteriaCheckWrongCriteria.java +++ b/android-plugin/src/test/files/environment/sobriety/ThriftyGeolocationCriteriaCheckWrongCriteria.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/sobriety/ThriftyMotionSensorCheck.java b/android-plugin/src/test/files/environment/sobriety/ThriftyMotionSensorCheck.java index 32b84a0c..28d07f99 100644 --- a/android-plugin/src/test/files/environment/sobriety/ThriftyMotionSensorCheck.java +++ b/android-plugin/src/test/files/environment/sobriety/ThriftyMotionSensorCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/sobriety/ThriftyNotificationCheckBuilder.java b/android-plugin/src/test/files/environment/sobriety/ThriftyNotificationCheckBuilder.java index 10011ee3..572f0a8a 100644 --- a/android-plugin/src/test/files/environment/sobriety/ThriftyNotificationCheckBuilder.java +++ b/android-plugin/src/test/files/environment/sobriety/ThriftyNotificationCheckBuilder.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/sobriety/ThriftyNotificationCheckChannel.java b/android-plugin/src/test/files/environment/sobriety/ThriftyNotificationCheckChannel.java index 87768336..1146f807 100644 --- a/android-plugin/src/test/files/environment/sobriety/ThriftyNotificationCheckChannel.java +++ b/android-plugin/src/test/files/environment/sobriety/ThriftyNotificationCheckChannel.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/sobriety/TorchFreeCheck.java b/android-plugin/src/test/files/environment/sobriety/TorchFreeCheck.java index 3930165a..ada8646c 100644 --- a/android-plugin/src/test/files/environment/sobriety/TorchFreeCheck.java +++ b/android-plugin/src/test/files/environment/sobriety/TorchFreeCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/sobriety/VibrationFreeCheckActivity.java b/android-plugin/src/test/files/environment/sobriety/VibrationFreeCheckActivity.java index 2b82dd64..cd7ada6e 100644 --- a/android-plugin/src/test/files/environment/sobriety/VibrationFreeCheckActivity.java +++ b/android-plugin/src/test/files/environment/sobriety/VibrationFreeCheckActivity.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/environment/sobriety/VibrationFreeCheckContext.java b/android-plugin/src/test/files/environment/sobriety/VibrationFreeCheckContext.java index b0b22977..11d1887d 100644 --- a/android-plugin/src/test/files/environment/sobriety/VibrationFreeCheckContext.java +++ b/android-plugin/src/test/files/environment/sobriety/VibrationFreeCheckContext.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/files/social/privacy/GoogleTrackerFirebaseCheck.java b/android-plugin/src/test/files/social/privacy/GoogleTrackerFirebaseCheck.java index 16f1cf93..fb125eaa 100644 --- a/android-plugin/src/test/files/social/privacy/GoogleTrackerFirebaseCheck.java +++ b/android-plugin/src/test/files/social/privacy/GoogleTrackerFirebaseCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,6 +18,6 @@ import com.google.android.gms.analytics.Tracker; // Noncompliant {{Using com.google.android.gms.analytics.* is a potential threat for privacy.}} import com.google.android.gms.Test; import com.google.firebase.analytics.FirebaseAnalytics; // Noncompliant {{Using com.google.firebase.analytics.* is a potential threat for privacy.}} -import com.io.ecocode.MaClasse; +import com.io.creedengo.MaClasse; public class Test { } diff --git a/android-plugin/src/test/files/social/privacy/GoogleTrackerGoogleAndFirebaseCheck.java b/android-plugin/src/test/files/social/privacy/GoogleTrackerGoogleAndFirebaseCheck.java index 7ff06d2f..8c5c3f42 100644 --- a/android-plugin/src/test/files/social/privacy/GoogleTrackerGoogleAndFirebaseCheck.java +++ b/android-plugin/src/test/files/social/privacy/GoogleTrackerGoogleAndFirebaseCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,7 +16,7 @@ * along with this program. If not, see . */ import com.google.firebase.analytics.FirebaseAnalytics; // Noncompliant {{Using com.google.firebase.analytics.* is a potential threat for privacy.}} -import com.io.ecocode.MaClasse; +import com.io.creedengo.MaClasse; import com.google.android.gms.Test; import com.google.android.gms.analytics.GoogleAnalytics; // Noncompliant {{Using com.google.android.gms.analytics.* is a potential threat for privacy.}} diff --git a/android-plugin/src/test/files/social/privacy/GoogleTrackerGoogleCheck.java b/android-plugin/src/test/files/social/privacy/GoogleTrackerGoogleCheck.java index 89aa685d..6432caa8 100644 --- a/android-plugin/src/test/files/social/privacy/GoogleTrackerGoogleCheck.java +++ b/android-plugin/src/test/files/social/privacy/GoogleTrackerGoogleCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,7 +19,7 @@ import com.google.android.gms.analytics.*; // Noncompliant {{Using com.google.android.gms.analytics.* is a potential threat for privacy.}} import com.google.android.gms.Test; import com.google.android.gms.analytics.GoogleAnalytics; // Noncompliant {{Using com.google.android.gms.analytics.* is a potential threat for privacy.}} -import com.io.ecocode.MaClasse; +import com.io.creedengo.MaClasse; public class Test { } diff --git a/android-plugin/src/test/files/social/privacy/TrackingIdCheck.java b/android-plugin/src/test/files/social/privacy/TrackingIdCheck.java index 47730869..a576d966 100644 --- a/android-plugin/src/test/files/social/privacy/TrackingIdCheck.java +++ b/android-plugin/src/test/files/social/privacy/TrackingIdCheck.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/android-plugin/src/test/java/io/ecocode/EcoCodeRulesPluginTest.java b/android-plugin/src/test/java/io/creedengo/CreedengoRulesPluginTest.java similarity index 84% rename from android-plugin/src/test/java/io/ecocode/EcoCodeRulesPluginTest.java rename to android-plugin/src/test/java/io/creedengo/CreedengoRulesPluginTest.java index 4cc3ed80..2b8a2fa9 100644 --- a/android-plugin/src/test/java/io/ecocode/EcoCodeRulesPluginTest.java +++ b/android-plugin/src/test/java/io/creedengo/CreedengoRulesPluginTest.java @@ -1,4 +1,4 @@ -package io.ecocode; +package io.creedengo; import org.junit.Test; import org.sonar.api.Plugin; @@ -10,13 +10,13 @@ import static org.assertj.core.api.Assertions.assertThat; -public class EcoCodeRulesPluginTest { +public class CreedengoRulesPluginTest { public static final Version VERSION_10_3 = Version.create(10, 3); @Test public void testExtensions() { - EcoCodeRulesPlugin plugin = new EcoCodeRulesPlugin(); + CreedengoRulesPlugin plugin = new CreedengoRulesPlugin(); SonarRuntime runtime = SonarRuntimeImpl.forSonarQube(VERSION_10_3, SonarQubeSide.SCANNER, SonarEdition.COMMUNITY); Plugin.Context context = new Plugin.Context(runtime); diff --git a/android-plugin/src/test/java/io/ecocode/java/JavaEcoCodeProfileTest.java b/android-plugin/src/test/java/io/creedengo/java/JavaCreedengoProfileTest.java similarity index 82% rename from android-plugin/src/test/java/io/ecocode/java/JavaEcoCodeProfileTest.java rename to android-plugin/src/test/java/io/creedengo/java/JavaCreedengoProfileTest.java index 827cbb59..1c7f6699 100644 --- a/android-plugin/src/test/java/io/ecocode/java/JavaEcoCodeProfileTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/JavaCreedengoProfileTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java; +package io.creedengo.java; import org.junit.Test; import org.sonar.api.server.profile.BuiltInQualityProfilesDefinition; @@ -23,7 +23,7 @@ import static org.assertj.core.api.Assertions.assertThat; -public class JavaEcoCodeProfileTest { +public class JavaCreedengoProfileTest { @Test public void should_create_sonar_way_profile() { @@ -31,7 +31,7 @@ public void should_create_sonar_way_profile() { BuiltInQualityProfilesDefinition.Context context = new BuiltInQualityProfilesDefinition.Context(); - JavaEcoCodeProfile definition = new JavaEcoCodeProfile(); + JavaCreedengoProfile definition = new JavaCreedengoProfile(); definition.define(context); BuiltInQualityProfilesDefinition.BuiltInQualityProfile profile = context.profile(Java.KEY, Java.PROFILE_NAME); diff --git a/android-plugin/src/test/java/io/ecocode/java/JavaRulesDefinitionTest.java b/android-plugin/src/test/java/io/creedengo/java/JavaRulesDefinitionTest.java similarity index 98% rename from android-plugin/src/test/java/io/ecocode/java/JavaRulesDefinitionTest.java rename to android-plugin/src/test/java/io/creedengo/java/JavaRulesDefinitionTest.java index e90f882e..500b5556 100644 --- a/android-plugin/src/test/java/io/ecocode/java/JavaRulesDefinitionTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/JavaRulesDefinitionTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java; +package io.creedengo.java; import org.junit.Test; import org.sonar.api.rules.RuleType; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/batch/JobCoalesceRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/batch/JobCoalesceRuleTest.java similarity index 82% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/batch/JobCoalesceRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/batch/JobCoalesceRuleTest.java index 96f9abeb..7397ee3a 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/batch/JobCoalesceRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/batch/JobCoalesceRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.batch; +package io.creedengo.java.checks.environment.batch; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/batch/SensorCoalesceRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/batch/SensorCoalesceRuleTest.java similarity index 80% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/batch/SensorCoalesceRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/batch/SensorCoalesceRuleTest.java index 4aa75ad8..08fd1007 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/batch/SensorCoalesceRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/batch/SensorCoalesceRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.batch; +package io.creedengo.java.checks.environment.batch; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/bottleneck/InternetInTheLoopRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/bottleneck/InternetInTheLoopRuleTest.java similarity index 80% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/bottleneck/InternetInTheLoopRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/bottleneck/InternetInTheLoopRuleTest.java index 7ebd599b..26b7fc2e 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/bottleneck/InternetInTheLoopRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/bottleneck/InternetInTheLoopRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.bottleneck; +package io.creedengo.java.checks.environment.bottleneck; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/bottleneck/UncompressedDataTransmissionRulesTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/bottleneck/UncompressedDataTransmissionRulesTest.java similarity index 80% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/bottleneck/UncompressedDataTransmissionRulesTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/bottleneck/UncompressedDataTransmissionRulesTest.java index e3b568af..eca710e5 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/bottleneck/UncompressedDataTransmissionRulesTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/bottleneck/UncompressedDataTransmissionRulesTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.bottleneck; +package io.creedengo.java.checks.environment.bottleneck; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/bottleneck/WifiMulticastLockRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/bottleneck/WifiMulticastLockRuleTest.java similarity index 83% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/bottleneck/WifiMulticastLockRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/bottleneck/WifiMulticastLockRuleTest.java index f324cb43..54f4fbb9 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/bottleneck/WifiMulticastLockRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/bottleneck/WifiMulticastLockRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.bottleneck; +package io.creedengo.java.checks.environment.bottleneck; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/idleness/ContinuousRenderingTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/idleness/ContinuousRenderingTest.java similarity index 80% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/idleness/ContinuousRenderingTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/idleness/ContinuousRenderingTest.java index b48ef0c5..9fdcd605 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/idleness/ContinuousRenderingTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/idleness/ContinuousRenderingTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.idleness; +package io.creedengo.java.checks.environment.idleness; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/idleness/DurableWakeLockRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/idleness/DurableWakeLockRuleTest.java similarity index 80% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/idleness/DurableWakeLockRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/idleness/DurableWakeLockRuleTest.java index dc9af981..a5ded95b 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/idleness/DurableWakeLockRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/idleness/DurableWakeLockRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.idleness; +package io.creedengo.java.checks.environment.idleness; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/idleness/KeepCpuOnRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/idleness/KeepCpuOnRuleTest.java similarity index 80% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/idleness/KeepCpuOnRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/idleness/KeepCpuOnRuleTest.java index e95642c1..c8f019b1 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/idleness/KeepCpuOnRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/idleness/KeepCpuOnRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.idleness; +package io.creedengo.java.checks.environment.idleness; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/idleness/KeepScreenOnAddFlagsRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/idleness/KeepScreenOnAddFlagsRuleTest.java similarity index 80% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/idleness/KeepScreenOnAddFlagsRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/idleness/KeepScreenOnAddFlagsRuleTest.java index 3d1d9281..f80526d9 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/idleness/KeepScreenOnAddFlagsRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/idleness/KeepScreenOnAddFlagsRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.idleness; +package io.creedengo.java.checks.environment.idleness; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/idleness/KeepScreenOnSetFlagsRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/idleness/KeepScreenOnSetFlagsRuleTest.java similarity index 80% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/idleness/KeepScreenOnSetFlagsRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/idleness/KeepScreenOnSetFlagsRuleTest.java index 493dc913..e7f91480 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/idleness/KeepScreenOnSetFlagsRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/idleness/KeepScreenOnSetFlagsRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.idleness; +package io.creedengo.java.checks.environment.idleness; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/idleness/KeepVoiceAwakeTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/idleness/KeepVoiceAwakeTest.java similarity index 86% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/idleness/KeepVoiceAwakeTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/idleness/KeepVoiceAwakeTest.java index 9ab72a58..70ffd37d 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/idleness/KeepVoiceAwakeTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/idleness/KeepVoiceAwakeTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.idleness; +package io.creedengo.java.checks.environment.idleness; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/idleness/RigidAlarmRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/idleness/RigidAlarmRuleTest.java similarity index 80% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/idleness/RigidAlarmRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/idleness/RigidAlarmRuleTest.java index 82c1e29e..34bf9234 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/idleness/RigidAlarmRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/idleness/RigidAlarmRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.idleness; +package io.creedengo.java.checks.environment.idleness; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/leakage/CameraLeakRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/leakage/CameraLeakRuleTest.java similarity index 83% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/leakage/CameraLeakRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/leakage/CameraLeakRuleTest.java index 761c9bc8..33a7c901 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/leakage/CameraLeakRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/leakage/CameraLeakRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.leakage; +package io.creedengo.java.checks.environment.leakage; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/leakage/LocationLeakRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/leakage/LocationLeakRuleTest.java similarity index 83% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/leakage/LocationLeakRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/leakage/LocationLeakRuleTest.java index 94eddf3a..0a65618d 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/leakage/LocationLeakRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/leakage/LocationLeakRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.leakage; +package io.creedengo.java.checks.environment.leakage; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/leakage/MediaLeakMediaPlayerRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/leakage/MediaLeakMediaPlayerRuleTest.java similarity index 84% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/leakage/MediaLeakMediaPlayerRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/leakage/MediaLeakMediaPlayerRuleTest.java index 1f142e6f..d02c4b55 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/leakage/MediaLeakMediaPlayerRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/leakage/MediaLeakMediaPlayerRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.leakage; +package io.creedengo.java.checks.environment.leakage; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/leakage/MediaLeakMediaRecorderRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/leakage/MediaLeakMediaRecorderRuleTest.java similarity index 84% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/leakage/MediaLeakMediaRecorderRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/leakage/MediaLeakMediaRecorderRuleTest.java index 3c06682f..f325c7d3 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/leakage/MediaLeakMediaRecorderRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/leakage/MediaLeakMediaRecorderRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.leakage; +package io.creedengo.java.checks.environment.leakage; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/leakage/SensorManagerLeakRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/leakage/SensorManagerLeakRuleTest.java similarity index 84% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/leakage/SensorManagerLeakRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/leakage/SensorManagerLeakRuleTest.java index a0a3c358..e867b86f 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/leakage/SensorManagerLeakRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/leakage/SensorManagerLeakRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.leakage; +package io.creedengo.java.checks.environment.leakage; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/optimized_api/BluetoothLowEnergyRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/optimized_api/BluetoothLowEnergyRuleTest.java similarity index 86% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/optimized_api/BluetoothLowEnergyRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/optimized_api/BluetoothLowEnergyRuleTest.java index 1e440fef..0878a453 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/optimized_api/BluetoothLowEnergyRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/optimized_api/BluetoothLowEnergyRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.optimized_api; +package io.creedengo.java.checks.environment.optimized_api; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/optimized_api/FusedLocationCheckTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/optimized_api/FusedLocationCheckTest.java similarity index 83% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/optimized_api/FusedLocationCheckTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/optimized_api/FusedLocationCheckTest.java index f81da7bd..8aaa58ab 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/optimized_api/FusedLocationCheckTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/optimized_api/FusedLocationCheckTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.optimized_api; +package io.creedengo.java.checks.environment.optimized_api; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/power/ChargeAwarenessRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/power/ChargeAwarenessRuleTest.java similarity index 80% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/power/ChargeAwarenessRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/power/ChargeAwarenessRuleTest.java index fb4b01a1..1fb06330 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/power/ChargeAwarenessRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/power/ChargeAwarenessRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.power; +package io.creedengo.java.checks.environment.power; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/power/SaveModeAwarenessRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/power/SaveModeAwarenessRuleTest.java similarity index 83% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/power/SaveModeAwarenessRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/power/SaveModeAwarenessRuleTest.java index 8d89074b..3ea03889 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/power/SaveModeAwarenessRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/power/SaveModeAwarenessRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.power; +package io.creedengo.java.checks.environment.power; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/BrightnessOverrideRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/BrightnessOverrideRuleTest.java similarity index 80% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/BrightnessOverrideRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/BrightnessOverrideRuleTest.java index d5453ec2..7daf2b75 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/BrightnessOverrideRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/BrightnessOverrideRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.sobriety; +package io.creedengo.java.checks.environment.sobriety; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/HighFrameRateCheckTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/HighFrameRateCheckTest.java similarity index 80% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/HighFrameRateCheckTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/HighFrameRateCheckTest.java index 8fcbf2d7..9bfe1d8e 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/HighFrameRateCheckTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/HighFrameRateCheckTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.sobriety; +package io.creedengo.java.checks.environment.sobriety; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/ThriftyBluetoothLowEnergyRequestConnectionPriorityRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/ThriftyBluetoothLowEnergyRequestConnectionPriorityRuleTest.java similarity index 81% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/ThriftyBluetoothLowEnergyRequestConnectionPriorityRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/ThriftyBluetoothLowEnergyRequestConnectionPriorityRuleTest.java index 1a057790..5917f921 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/ThriftyBluetoothLowEnergyRequestConnectionPriorityRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/ThriftyBluetoothLowEnergyRequestConnectionPriorityRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.sobriety; +package io.creedengo.java.checks.environment.sobriety; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/ThriftyBluetoothLowEnergySetAdvertiseModeRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/ThriftyBluetoothLowEnergySetAdvertiseModeRuleTest.java similarity index 81% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/ThriftyBluetoothLowEnergySetAdvertiseModeRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/ThriftyBluetoothLowEnergySetAdvertiseModeRuleTest.java index 0ea46e49..640500f4 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/ThriftyBluetoothLowEnergySetAdvertiseModeRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/ThriftyBluetoothLowEnergySetAdvertiseModeRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.sobriety; +package io.creedengo.java.checks.environment.sobriety; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/ThriftyGeolocationCheckTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/ThriftyGeolocationCheckTest.java similarity index 81% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/ThriftyGeolocationCheckTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/ThriftyGeolocationCheckTest.java index 36153cfd..6642d7df 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/ThriftyGeolocationCheckTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/ThriftyGeolocationCheckTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.sobriety; +package io.creedengo.java.checks.environment.sobriety; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/ThriftyGeolocationCriteriaTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/ThriftyGeolocationCriteriaTest.java similarity index 88% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/ThriftyGeolocationCriteriaTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/ThriftyGeolocationCriteriaTest.java index a62c3ef1..5a6f9b95 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/ThriftyGeolocationCriteriaTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/ThriftyGeolocationCriteriaTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.sobriety; +package io.creedengo.java.checks.environment.sobriety; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/ThriftyMotionSensorRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/ThriftyMotionSensorRuleTest.java similarity index 80% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/ThriftyMotionSensorRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/ThriftyMotionSensorRuleTest.java index aab59e8f..a42e9ea8 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/ThriftyMotionSensorRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/ThriftyMotionSensorRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.sobriety; +package io.creedengo.java.checks.environment.sobriety; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/ThriftyNotificationRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/ThriftyNotificationRuleTest.java similarity index 83% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/ThriftyNotificationRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/ThriftyNotificationRuleTest.java index 588b32bf..a3a0f512 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/ThriftyNotificationRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/ThriftyNotificationRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.sobriety; +package io.creedengo.java.checks.environment.sobriety; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/TorchFreeRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/TorchFreeRuleTest.java similarity index 79% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/TorchFreeRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/TorchFreeRuleTest.java index a41936a2..14d9d387 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/TorchFreeRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/TorchFreeRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.sobriety; +package io.creedengo.java.checks.environment.sobriety; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/VibrationFreeRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/VibrationFreeRuleTest.java similarity index 81% rename from android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/VibrationFreeRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/VibrationFreeRuleTest.java index 3d97ecd5..0e8f63dd 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/environment/sobriety/VibrationFreeRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/environment/sobriety/VibrationFreeRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.environment.sobriety; +package io.creedengo.java.checks.environment.sobriety; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/social/gdpr/GoogleAndroidAdsConsentRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/social/gdpr/GoogleAndroidAdsConsentRuleTest.java similarity index 93% rename from android-plugin/src/test/java/io/ecocode/java/checks/social/gdpr/GoogleAndroidAdsConsentRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/social/gdpr/GoogleAndroidAdsConsentRuleTest.java index 93a0f517..3c0ed1b9 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/social/gdpr/GoogleAndroidAdsConsentRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/social/gdpr/GoogleAndroidAdsConsentRuleTest.java @@ -1,4 +1,4 @@ -package io.ecocode.java.checks.social.gdpr; +package io.creedengo.java.checks.social.gdpr; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/social/privacy/GoogleTrackerRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/social/privacy/GoogleTrackerRuleTest.java similarity index 81% rename from android-plugin/src/test/java/io/ecocode/java/checks/social/privacy/GoogleTrackerRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/social/privacy/GoogleTrackerRuleTest.java index e2472ea5..ebb86eda 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/social/privacy/GoogleTrackerRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/social/privacy/GoogleTrackerRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.social.privacy; +package io.creedengo.java.checks.social.privacy; -import io.ecocode.java.checks.social.privacy.GoogleTrackerRule; +import io.creedengo.java.checks.social.privacy.GoogleTrackerRule; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/java/checks/social/privacy/TrackingIdRuleTest.java b/android-plugin/src/test/java/io/creedengo/java/checks/social/privacy/TrackingIdRuleTest.java similarity index 80% rename from android-plugin/src/test/java/io/ecocode/java/checks/social/privacy/TrackingIdRuleTest.java rename to android-plugin/src/test/java/io/creedengo/java/checks/social/privacy/TrackingIdRuleTest.java index cd3c5395..847c8355 100644 --- a/android-plugin/src/test/java/io/ecocode/java/checks/social/privacy/TrackingIdRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/java/checks/social/privacy/TrackingIdRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.java.checks.social.privacy; +package io.creedengo.java.checks.social.privacy; import org.junit.Test; import org.sonar.java.checks.verifier.CheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/xml/XmlEcoCodeProfileTest.java b/android-plugin/src/test/java/io/creedengo/xml/XmlCreedengoProfileTest.java similarity index 82% rename from android-plugin/src/test/java/io/ecocode/xml/XmlEcoCodeProfileTest.java rename to android-plugin/src/test/java/io/creedengo/xml/XmlCreedengoProfileTest.java index 4df46bbe..41b7bf51 100644 --- a/android-plugin/src/test/java/io/ecocode/xml/XmlEcoCodeProfileTest.java +++ b/android-plugin/src/test/java/io/creedengo/xml/XmlCreedengoProfileTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml; +package io.creedengo.xml; import org.junit.Test; import org.sonar.api.server.profile.BuiltInQualityProfilesDefinition; @@ -23,7 +23,7 @@ import static org.assertj.core.api.Assertions.assertThat; -public class XmlEcoCodeProfileTest { +public class XmlCreedengoProfileTest { @Test public void should_create_sonar_way_profile() { @@ -31,7 +31,7 @@ public void should_create_sonar_way_profile() { BuiltInQualityProfilesDefinition.Context context = new BuiltInQualityProfilesDefinition.Context(); - XmlEcoCodeProfile definition = new XmlEcoCodeProfile(); + XmlCreedengoProfile definition = new XmlCreedengoProfile(); definition.define(context); BuiltInQualityProfilesDefinition.BuiltInQualityProfile profile = context.profile(Xml.KEY, Xml.PROFILE_NAME); diff --git a/android-plugin/src/test/java/io/ecocode/xml/XmlRulesDefinitionTest.java b/android-plugin/src/test/java/io/creedengo/xml/XmlRulesDefinitionTest.java similarity index 94% rename from android-plugin/src/test/java/io/ecocode/xml/XmlRulesDefinitionTest.java rename to android-plugin/src/test/java/io/creedengo/xml/XmlRulesDefinitionTest.java index a5d31363..e08f5e05 100644 --- a/android-plugin/src/test/java/io/ecocode/xml/XmlRulesDefinitionTest.java +++ b/android-plugin/src/test/java/io/creedengo/xml/XmlRulesDefinitionTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml; +package io.creedengo.xml; import org.junit.Test; import org.sonar.api.server.rule.RulesDefinition; diff --git a/android-plugin/src/test/java/io/ecocode/xml/checks/batch/ServiceBootTimeXmlRuleTest.java b/android-plugin/src/test/java/io/creedengo/xml/checks/batch/ServiceBootTimeXmlRuleTest.java similarity index 80% rename from android-plugin/src/test/java/io/ecocode/xml/checks/batch/ServiceBootTimeXmlRuleTest.java rename to android-plugin/src/test/java/io/creedengo/xml/checks/batch/ServiceBootTimeXmlRuleTest.java index 994e96b0..7b71aef7 100644 --- a/android-plugin/src/test/java/io/ecocode/xml/checks/batch/ServiceBootTimeXmlRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/xml/checks/batch/ServiceBootTimeXmlRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml.checks.batch; +package io.creedengo.xml.checks.batch; import org.junit.Test; import org.sonarsource.analyzer.commons.xml.checks.SonarXmlCheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/xml/checks/idleness/KeepCpuOnXmlRuleTest.java b/android-plugin/src/test/java/io/creedengo/xml/checks/idleness/KeepCpuOnXmlRuleTest.java similarity index 82% rename from android-plugin/src/test/java/io/ecocode/xml/checks/idleness/KeepCpuOnXmlRuleTest.java rename to android-plugin/src/test/java/io/creedengo/xml/checks/idleness/KeepCpuOnXmlRuleTest.java index b0ea5224..b3fa3ef9 100644 --- a/android-plugin/src/test/java/io/ecocode/xml/checks/idleness/KeepCpuOnXmlRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/xml/checks/idleness/KeepCpuOnXmlRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml.checks.idleness; +package io.creedengo.xml.checks.idleness; import org.junit.Test; import org.sonarsource.analyzer.commons.xml.checks.SonarXmlCheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/xml/checks/idleness/KeepScreenOnXmlRuleTest.java b/android-plugin/src/test/java/io/creedengo/xml/checks/idleness/KeepScreenOnXmlRuleTest.java similarity index 82% rename from android-plugin/src/test/java/io/ecocode/xml/checks/idleness/KeepScreenOnXmlRuleTest.java rename to android-plugin/src/test/java/io/creedengo/xml/checks/idleness/KeepScreenOnXmlRuleTest.java index 36318fb0..5e337bdd 100644 --- a/android-plugin/src/test/java/io/ecocode/xml/checks/idleness/KeepScreenOnXmlRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/xml/checks/idleness/KeepScreenOnXmlRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml.checks.idleness; +package io.creedengo.xml.checks.idleness; import org.junit.Test; import org.sonarsource.analyzer.commons.xml.checks.SonarXmlCheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/xml/checks/power/ChargeAwarenessXmlRuleTest.java b/android-plugin/src/test/java/io/creedengo/xml/checks/power/ChargeAwarenessXmlRuleTest.java similarity index 80% rename from android-plugin/src/test/java/io/ecocode/xml/checks/power/ChargeAwarenessXmlRuleTest.java rename to android-plugin/src/test/java/io/creedengo/xml/checks/power/ChargeAwarenessXmlRuleTest.java index 6394be66..24e352db 100644 --- a/android-plugin/src/test/java/io/ecocode/xml/checks/power/ChargeAwarenessXmlRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/xml/checks/power/ChargeAwarenessXmlRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml.checks.power; +package io.creedengo.xml.checks.power; import org.junit.Test; import org.sonarsource.analyzer.commons.xml.checks.SonarXmlCheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/xml/checks/power/CompagnionInBackgroundXmlRuleTest.java b/android-plugin/src/test/java/io/creedengo/xml/checks/power/CompagnionInBackgroundXmlRuleTest.java similarity index 80% rename from android-plugin/src/test/java/io/ecocode/xml/checks/power/CompagnionInBackgroundXmlRuleTest.java rename to android-plugin/src/test/java/io/creedengo/xml/checks/power/CompagnionInBackgroundXmlRuleTest.java index c4bbddfe..8cc61e99 100644 --- a/android-plugin/src/test/java/io/ecocode/xml/checks/power/CompagnionInBackgroundXmlRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/xml/checks/power/CompagnionInBackgroundXmlRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml.checks.power; +package io.creedengo.xml.checks.power; import org.junit.Test; import org.sonarsource.analyzer.commons.xml.checks.SonarXmlCheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/xml/checks/power/IgnoreBatteryOptimizationsXmlRuleTest.java b/android-plugin/src/test/java/io/creedengo/xml/checks/power/IgnoreBatteryOptimizationsXmlRuleTest.java similarity index 83% rename from android-plugin/src/test/java/io/ecocode/xml/checks/power/IgnoreBatteryOptimizationsXmlRuleTest.java rename to android-plugin/src/test/java/io/creedengo/xml/checks/power/IgnoreBatteryOptimizationsXmlRuleTest.java index 2c269116..9dc40599 100644 --- a/android-plugin/src/test/java/io/ecocode/xml/checks/power/IgnoreBatteryOptimizationsXmlRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/xml/checks/power/IgnoreBatteryOptimizationsXmlRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml.checks.power; +package io.creedengo.xml.checks.power; import org.junit.Test; import org.sonarsource.analyzer.commons.xml.checks.SonarXmlCheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/xml/checks/power/SaveModeAwarenessXmlRuleTest.java b/android-plugin/src/test/java/io/creedengo/xml/checks/power/SaveModeAwarenessXmlRuleTest.java similarity index 80% rename from android-plugin/src/test/java/io/ecocode/xml/checks/power/SaveModeAwarenessXmlRuleTest.java rename to android-plugin/src/test/java/io/creedengo/xml/checks/power/SaveModeAwarenessXmlRuleTest.java index a3e274a0..717b43e3 100644 --- a/android-plugin/src/test/java/io/ecocode/xml/checks/power/SaveModeAwarenessXmlRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/xml/checks/power/SaveModeAwarenessXmlRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml.checks.power; +package io.creedengo.xml.checks.power; import org.junit.Test; import org.sonarsource.analyzer.commons.xml.checks.SonarXmlCheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/xml/checks/sobriety/DarkUIBrightColorsXmlRuleTest.java b/android-plugin/src/test/java/io/creedengo/xml/checks/sobriety/DarkUIBrightColorsXmlRuleTest.java similarity index 82% rename from android-plugin/src/test/java/io/ecocode/xml/checks/sobriety/DarkUIBrightColorsXmlRuleTest.java rename to android-plugin/src/test/java/io/creedengo/xml/checks/sobriety/DarkUIBrightColorsXmlRuleTest.java index 414372dc..22c7cf69 100644 --- a/android-plugin/src/test/java/io/ecocode/xml/checks/sobriety/DarkUIBrightColorsXmlRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/xml/checks/sobriety/DarkUIBrightColorsXmlRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml.checks.sobriety; +package io.creedengo.xml.checks.sobriety; import org.junit.Test; import org.sonarsource.analyzer.commons.xml.checks.SonarXmlCheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/xml/checks/sobriety/DarkUIThemeXmlRuleTest.java b/android-plugin/src/test/java/io/creedengo/xml/checks/sobriety/DarkUIThemeXmlRuleTest.java similarity index 82% rename from android-plugin/src/test/java/io/ecocode/xml/checks/sobriety/DarkUIThemeXmlRuleTest.java rename to android-plugin/src/test/java/io/creedengo/xml/checks/sobriety/DarkUIThemeXmlRuleTest.java index 12a48d35..648df7ec 100644 --- a/android-plugin/src/test/java/io/ecocode/xml/checks/sobriety/DarkUIThemeXmlRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/xml/checks/sobriety/DarkUIThemeXmlRuleTest.java @@ -1,6 +1,6 @@ /* - * ecoCode Android plugin - Provides rules to reduce the environmental footprint of your Android applications - * Copyright © 2020 Green Code Initiative (contact@ecocode.io) + * Creedengo Android Java plugin - Provides rules to reduce the environmental footprint of your Android applications + * Copyright © 2020 Green Code Initiative (contact@green-code-initiative.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package io.ecocode.xml.checks.sobriety; +package io.creedengo.xml.checks.sobriety; import org.junit.Test; import org.sonarsource.analyzer.commons.xml.checks.SonarXmlCheckVerifier; diff --git a/android-plugin/src/test/java/io/ecocode/xml/checks/sobriety/HardwareAccelerationXmlRuleTest.java b/android-plugin/src/test/java/io/creedengo/xml/checks/sobriety/HardwareAccelerationXmlRuleTest.java similarity index 89% rename from android-plugin/src/test/java/io/ecocode/xml/checks/sobriety/HardwareAccelerationXmlRuleTest.java rename to android-plugin/src/test/java/io/creedengo/xml/checks/sobriety/HardwareAccelerationXmlRuleTest.java index 1356d4e6..b03aa301 100644 --- a/android-plugin/src/test/java/io/ecocode/xml/checks/sobriety/HardwareAccelerationXmlRuleTest.java +++ b/android-plugin/src/test/java/io/creedengo/xml/checks/sobriety/HardwareAccelerationXmlRuleTest.java @@ -1,4 +1,4 @@ -package io.ecocode.xml.checks.sobriety; +package io.creedengo.xml.checks.sobriety; import org.junit.Test; import org.sonarsource.analyzer.commons.xml.checks.SonarXmlCheckVerifier; diff --git a/android-plugin/src/test/resources/checks/ChargeAwarenessXmlRule/ChargeAwarenessXmlCheck.xml b/android-plugin/src/test/resources/checks/ChargeAwarenessXmlRule/ChargeAwarenessXmlCheck.xml index d2cb6e63..93ff3efb 100644 --- a/android-plugin/src/test/resources/checks/ChargeAwarenessXmlRule/ChargeAwarenessXmlCheck.xml +++ b/android-plugin/src/test/resources/checks/ChargeAwarenessXmlRule/ChargeAwarenessXmlCheck.xml @@ -1,10 +1,10 @@ + package="io.creedengo.testapp"> - + diff --git a/android-plugin/src/test/resources/checks/CompagnionInBackgroundXmlRule/CompagnionInBackgroundXmlCheck.xml b/android-plugin/src/test/resources/checks/CompagnionInBackgroundXmlRule/CompagnionInBackgroundXmlCheck.xml index 9f8342a5..6ef712c0 100644 --- a/android-plugin/src/test/resources/checks/CompagnionInBackgroundXmlRule/CompagnionInBackgroundXmlCheck.xml +++ b/android-plugin/src/test/resources/checks/CompagnionInBackgroundXmlRule/CompagnionInBackgroundXmlCheck.xml @@ -1,6 +1,6 @@ + package="io.creedengo.testapp"> diff --git a/android-plugin/src/test/resources/checks/DarkUIThemeXmlRule/DarkUIThemeXmlCheckManifest.xml b/android-plugin/src/test/resources/checks/DarkUIThemeXmlRule/DarkUIThemeXmlCheckManifest.xml index 8467b07c..69e35b70 100644 --- a/android-plugin/src/test/resources/checks/DarkUIThemeXmlRule/DarkUIThemeXmlCheckManifest.xml +++ b/android-plugin/src/test/resources/checks/DarkUIThemeXmlRule/DarkUIThemeXmlCheckManifest.xml @@ -1,6 +1,6 @@ + package="io.creedengo.test"> diff --git a/android-plugin/src/test/resources/checks/DarkUIThemeXmlRule/DarkUIThemeXmlCheckStyle.xml b/android-plugin/src/test/resources/checks/DarkUIThemeXmlRule/DarkUIThemeXmlCheckStyle.xml index 2c779c02..23c08dee 100644 --- a/android-plugin/src/test/resources/checks/DarkUIThemeXmlRule/DarkUIThemeXmlCheckStyle.xml +++ b/android-plugin/src/test/resources/checks/DarkUIThemeXmlRule/DarkUIThemeXmlCheckStyle.xml @@ -1,6 +1,6 @@ - - - -