{"id":27052337,"url":"https://github.com/green-code-initiative/creedengo-ios","last_synced_at":"2025-04-10T16:47:12.915Z","repository":{"id":161451007,"uuid":"631686927","full_name":"green-code-initiative/creedengo-ios","owner":"green-code-initiative","description":"Reduce the environmental footprint of your Swift-based iOS apps with SonarQube","archived":false,"fork":false,"pushed_at":"2025-01-20T17:39:35.000Z","size":5563,"stargazers_count":7,"open_issues_count":7,"forks_count":8,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-05T09:03:33.543Z","etag":null,"topics":["ecodesign","ios","mobile","native","sonarqube","sonarqube-plugin"],"latest_commit_sha":null,"homepage":"https://green-code-initiative.org/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/green-code-initiative.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-23T19:51:00.000Z","updated_at":"2025-03-30T00:50:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"eaf026a4-658c-4925-8f68-4142ed19fc9a","html_url":"https://github.com/green-code-initiative/creedengo-ios","commit_stats":null,"previous_names":["green-code-initiative/creedengo-ios"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green-code-initiative%2Fcreedengo-ios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green-code-initiative%2Fcreedengo-ios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green-code-initiative%2Fcreedengo-ios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green-code-initiative%2Fcreedengo-ios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/green-code-initiative","download_url":"https://codeload.github.com/green-code-initiative/creedengo-ios/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248254423,"owners_count":21073086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ecodesign","ios","mobile","native","sonarqube","sonarqube-plugin"],"created_at":"2025-04-05T09:01:29.119Z","updated_at":"2025-04-10T16:47:12.890Z","avatar_url":"https://github.com/green-code-initiative.png","language":"Java","funding_links":[],"categories":["Dev / Tooling"],"sub_categories":["iOS"],"readme":"![Logo](docs/resources/5ekko.png)\n======================================\n\nMobile apps running on top of battery-limited devices are more than others concerned by the reduction of their environmental footprint. Hence, we created `Creedengo iOS`, the version of Creedengo project fully dedicated to the iOS platform. It provides static code analyzers to highlight code structures that may have a negative ecological impact: energy over-consumption, \"fatware\", shortening devices' lifespan, etc.\n\nCreedengo iOS is based on evolving catalogs of [best practices for iOS](https://github.com/cnumr/best-practices-mobile?#-ios-platform). A SonarQube plugin then implements these catalogs as rules for scanning your projects.\n\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) ![Build](https://github.com/green-code-initiative/creedengo-ios/actions/workflows/build.yml/badge.svg)\n\n[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=green-code-initiative_creedengo-ios\u0026metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=green-code-initiative_creedengo-ios) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=green-code-initiative_creedengo-ios\u0026metric=coverage)](https://sonarcloud.io/summary/new_code?id=green-code-initiative_creedengo-ios) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=green-code-initiative_creedengo-ios\u0026metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=green-code-initiative_creedengo-ios) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=green-code-initiative_creedengo-ios\u0026metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=green-code-initiative_creedengo-ios) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=green-code-initiative_creedengo-ios\u0026metric=security_rating)](https://sonarcloud.io/summary/new_code?id=green-code-initiative_creedengo-ios)\n\n🌿 SonarQube Plugin\n-------------------\n\nCreedengo iOS SonarQube plugin is an \"eco-responsibility\" static code analyzer for iOS projects written in Swift. Its aim is to detect code smells indicating how the source code can be improved to reduce their environmental and social impact.\n\n🛒 Distribution\n---------------\n\nReady to use binaries are available [from GitHub](https://github.com/green-code-initiative/creedengo-ios/releases).\n\n\u003e NB: To work, `creedengo-ios` needs `Swift` language support in SonarQube. For *SonarQube Community Edition* (which does not support Swift language), you need to install an additional plugin like [sonar-apple](https://github.com/insideapp-oss/sonar-apple).\n\nBy default Creedengo profile is not activated. To activate Creedengo rules in SonarQube, create a new profile (or extend an existing one) where Creedengo rules are activated. Here is an example:\n\n![Profiles](docs/resources/profiles.png)\n\n🚀 Development Quickstart\n-------------\n\n### Requirements\n\n- Java JDK 11+\n- Maven 3.8 or later\n- A local SonarQube instance for local testing\n\n### Compile\n\n```bash\n./tool_compile.sh\n```\n\n### Run (with Docker)\n\n**This implies to have a machine ready to run containerized applications.** Please refer to Docker documentation: https://www.docker.com/.\n\n```bash\n# build Jar files for application\n./tool_build.sh\n\n# clean docker environment\n./tool_docker-clean.sh\n\n# initialize docker environment\n./tool_docker-init.sh\n\n# display logs from docker environment\n./tool_docker-logs.sh\n```\n\nThe tests instance of SonarQube with the plugin will then be available at: [http://localhost:9000](http://localhost:9000). Default credentials are `admin`/`admin`\n\n### Test\n\nAn iOS test project is available [here](https://github.com/green-code-initiative/creedengo-mobile-ios-swift-test-project)/\n\n🤝 Partners\n------------\n\n[![Snapp’](docs/resources/logoSnapp.png)](https://www.snapp.fr)\n[![Université de Pau](docs/resources/logoUnivPau.png)](https://www.univ-pau.fr/)\n[![Région Nouvelle-Aquitaine](docs/resources/logoNA.png)](https://www.nouvelle-aquitaine.fr)\n[![Solocal / PagesJaunes](docs/resources/logoSolocal.png)](https://www.pagesjaunes.fr)\n[![inside|app](docs/resources/logoInsideApp.jpg)](https://www.insideapp.fr/)\n\n🧩 Plugins version compatibility\n------------------\n\n| Plugins Version | SonarQube version              |\n|-----------------|--------------------------------|\n| 2.0.+           | SonarQube 9.4.+ LTS to 24.12.0 |\n| 1.1.+           | SonarQube 9.4.+ LTS to 10.0    |\n\n🛠️ Contributing\n------------------\n\nIf you want to contribute to the project, your help will be greatly appreciated.\n\nStart right away by reading [General contribution guide](https://github.com/green-code-initiative/creedengo-common/blob/main/doc/CONTRIBUTING.md) and the [iOS specific contribution guide](https://github.com/green-code-initiative/creedengo-ios/blob/main/CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreen-code-initiative%2Fcreedengo-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreen-code-initiative%2Fcreedengo-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreen-code-initiative%2Fcreedengo-ios/lists"}