# Verid
[](https://crates.io/crates/verid)
[](https://crates.io/crates/verid)
[](LICENSE)
[](https://www.rust-lang.org)
**Verid** is a lightweight, modular CLI for code formatting and auditing
--- designed to unify multiple developer workflows into a single, fast,
and extensible tool.
Built with a focus on clarity, performance, and composability, Verid
aims to help developers maintain clean and consistent codebases without
heavy overhead.
------------------------------------------------------------------------
## โจ Features
- **Formatting Engine**
- Indentation normalization
- Line width wrapping
- Stable, idempotent formatting
- **Audit Engine**
- Static scanning
- Code quality checks
- Actionable reporting
- **Rule Runner**
- Composable formatting rules
- Deterministic execution
- Stable repeated runs
- **CLI First**
- Simple commands
- Script-friendly
- Lightweight execution
------------------------------------------------------------------------
## ๐ฆ Installation
Install from github:
```bash
git install https://github.com/haqqimuazzam1-hue/verid
```
Install from crates.io:
```bash
cargo install verid
```
------------------------------------------------------------------------
## ๐ Usage
### Format code
``` bash
verid format <path>
```
### Audit code
``` bash
verid audit <path>
```
### Example
``` bash
verid format src/
verid audit src/
```
------------------------------------------------------------------------
## ๐ง Philosophy
Verid is designed with a few core principles:
- **Minimalism** --- do one thing well
- **Determinism** --- same input, same output
- **Composability** --- rules can evolve and expand
- **Performance** --- optimized for speed and low overhead
------------------------------------------------------------------------
## ๐ Project Structure
src/
โโโ formatting/
โ โโโ indent.rs
โ โโโ width.rs
โ โโโ runner.rs
โ โโโ mod.rs
โ
โโโ audit/
โ โโโ scanner.rs
โ โโโ detector.rs
โ โโโ reporter.rs
โ โโโ mod.rs
โ
โโโ cli.rs
โโโ main.rs
------------------------------------------------------------------------
## ๐งช Development
Run checks:
``` bash
cargo check
cargo clippy -- -D warnings
cargo test
```
Format code:
``` bash
cargo fmt
```
------------------------------------------------------------------------
## ๐บ Roadmap
- Configuration file support
- Ignore patterns
- Plugin system
- Custom rule definitions
- Performance improvements
------------------------------------------------------------------------
## ๐ค Contributing
Contributions are welcome.
1. Fork the repository
2. Create a feature branch
3. Commit your changes
4. Open a pull request
------------------------------------------------------------------------
## ๐ Security
If you discover a vulnerability or security issue, please report it
responsibly via issues or private communication with the maintainer.
------------------------------------------------------------------------
## ๐ License
This project is licensed under the MIT License.
------------------------------------------------------------------------
## โค๏ธ Acknowledgements
Inspired by modern developer tooling philosophy and the Rust ecosystem.