You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mobile apps running on top of battery-limited devices are more than others concerned by the reduction of their environmental footprint. Hence, we created Creedengo iOS, the version of Creedengo project fully dedicated to the iOS platform. It provides static code analyzers to highlight code structures that may have a negative ecological impact: energy over-consumption, "fatware", shortening devices' lifespan, etc.
Creedengo iOS is based on evolving catalogs of best practices for iOS. A SonarQube plugin then implements these catalogs as rules for scanning your projects.
🌿 SonarQube Plugin
Creedengo iOS SonarQube plugin is an "eco-responsibility" static code analyzer for iOS projects written in Swift. Its aim is to detect code smells indicating how the source code can be improved to reduce their environmental and social impact.
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.
By default Creedengo profile is not activated. To activate Creedengo rules in SonarQube, create a new profile (or extend an existing one) where Creedengo rules are activated. Here is an example:
🚀 Development Quickstart
Requirements
Java JDK 11+
Maven 3.8 or later
A local SonarQube instance for local testing
Compile
./tool_compile.sh
Run (with Docker)
This implies to have a machine ready to run containerized applications. Please refer to Docker documentation: https://www.docker.com/.
# build Jar files for application
./tool_build.sh
# clean docker environment
./tool_docker-clean.sh
# initialize docker environment
./tool_docker-init.sh
# display logs from docker environment
./tool_docker-logs.sh
The tests instance of SonarQube with the plugin will then be available at: https://localhost:9000. Default credentials are admin/admin