creedengo-rust
ecoCode is a collective project aiming to reduce environmental footprint of software at the code level. The goal of the project is to provide a list of static code analyzers to highlight code structures that may have a negative ecological impact: energy and resources over-consumption, "fatware", shortening terminals' lifespan, etc.
ecoCode is based on evolving catalogs of good practices, for various technologies.
This set of Clippy linters implements these catalogs as rules for scanning your Rust projects using DyLint.
⚠️ 🚧 This is still a very early stage project 🚧. Any feedback or contribution will be highly appreciated. Please refer to the contribution section.
This project requires:
- Rust nightly toolchain (for dylint development)
- cargo-dylint and dylint-link tools
- VS Code with rust-analyzer extension (for IDE integration)
Id | Description | Severity | Enabled |
---|---|---|---|
GCI2 | Avoid multiple if-else statement | ✅ |
See contribution on the central ecoCode repository.
See main contributors on the central ecoCode repository.