Code Health is a fast, local-first code analysis tool that helps you understand and improve your codebase without installing giant IDE plugins, setting up servers, or wiring up a SaaS.
π Scan your code. Catch issues. Stay fast.
Most code quality tools are either:
- Heavyweight and slow (hello SonarQube), or
- Language-specific (like Detekt or ESLint), or
- Locked behind subscriptions accounts
Code Health gives you:
- β Lightweight, fast CLI scanning
- β Consistent results across languages
- β A visual, interactive UI (built in Blazor)
- β Zero external dependencies at runtime
Analyze what matters. Skip the noise.
Simplicity and scan speed are the core of Code Health.
- Tools like Detekt, PMD, or SpotBugs are powerfulβbut come with baggage
- They require platform-specific binaries, slow startup times, and their output isnβt made for custom pipelines
- We need something fast, portable, and minimal: no build steps, no IDE integration, just scan and go
This means we avoid runtime scanning (build warnings, unit test coverage, etc.) but we think the trade-off is well worthi t.
- Cyclomatic complexity
- TODOs / tech debt comments
- Long methods
- Large classes
- Empty try/catch blocks
- And more ...
Currently in active development. Support varies per analysis type.
Language | Static Analysis |
---|---|
C# | β Working |
Java | β Working |
Kotlin | β Working |
JavaScript | β Working |
Make sure you have .NET 8 installed.
Run the app:
dotnet run --project CodeHealth.UI
The architecture is intentionally modular:
- Scanners do the hard work β language-specific, single-responsibility analyzers
- UI renders clean summaries grouped by file, language, and issue type
- Data is stored locally in JSON files so you can inspect, diff, or reprocess them
- Visual dashboards of complexity and hotspots
- Language usage graphs
- Language-agnostic analysis (e.g. duplication)
PRs, feedback, and issue reports are welcome. This project is early and evolving fast β feel free to jump in and help shape it.