swt 0.1.0

🍬 Sweet: A blazing-fast code health and architecture analyzer.
swt-0.1.0 is not a library.
Visit the last successful build: swt-1.1.0

🍬 swt (Sweet)

Is your code sweet or bitter?

swt is a blazing-fast, language-agnostic tool designed to monitor architectural health and code density. It identifies "God Files", deep nesting, and tangled dependencies, providing a clear metric of your project's maintainability.

Core Metrics

swt evaluates your project based on the Glucose Index:

  • Coupling: Excessive top-level imports and external dependencies.
  • Responsibility: Multi-purpose files with high implementation density.
  • Cognitive Load: Deep nesting and cyclomatic complexity patterns.

Installation

Install the pre-compiled binary via Cargo:

cargo install swt

Quick Start

Run a health check on your current directory:

swt check

Generate a summary of the most "bitter" files:

swt scan --top 10

License

This project is licensed under the MIT License.