# ๐ Verid
[](https://crates.io/crates/verid)
[](https://crates.io/crates/verid)
[](LICENSE)
[](https://www.rust-lang.org)
> โก Fast. Minimal. Deterministic.
> One CLI to **format** and **audit** your codebase.
---
# โจ What is Verid?
**Verid** is a high-performance CLI tool built in Rust that combines:
- ๐งน **Code formatter**
- ๐ **Security & quality auditor**
into **one unified workflow**.
No config hell.
No plugin overload.
Just clean, fast, deterministic tooling.
---
# ๐ก Why Verid?
Because modern dev workflows are messy.
You usually need:
- formatter
- linter
- security scanner
- style checker
โก๏ธ Verid merges all of that into **one single binary**.
### ๐ง Designed for:
- โก Fast CI pipelines
- ๐งช Deterministic codebases
- ๐ Secure development practices
- ๐งน Clean formatting standards
---
# ๐ฅ Core Features
## ๐งน Formatting Engine
- Stable & idempotent formatting
- Indentation normalization
- Line width wrapping
- Multi-rule runner system
## ๐ Audit Engine
- Static code scanning
- Security issue detection
- Reliability checks
- Code smell detection
## ๐ง Smart Filtering
- `--only-fail` โ show only critical issues
- `--lang <ext>` โ filter by language
- `--format json` โ CI-friendly output
## โก CLI First Design
- Zero config required
- Script-friendly
- Extremely fast execution
- Parallel scanning using Rayon
---
# ๐ฆ Installation
## From crates.io
```bash
cargo install verid
```
## From Source
```bash
git clone https://github.com/sushiguard/verid
cd verid
git install --path .
```
---
# ๐ Usage
## ๐งน Format code
```bash
verid format src/
```
Check only (CI mode):
```bash
verid format src/ --check
```
---
# ๐ Audit Code
```bash
verid audit src/
```
Only show critical issues:
```bash
verid audit src/ --only-fail
```
Filter by language:
```bash
verid audit src/ --lang rs
```
JSON output (for CI pipelines):
```bash
verid audit src/ --format JSON
```
Combine everything:
```bash
verid audit src/ --lang rs --only-fail --format JSON
```
---
# ๐งช CI Integration
Verid is designed for CI.
**Example (GitHub Actions)**
```yaml
- name: Run Verid Audit
run: verid audit . --only-fail --format JSON
```
Exit codes:
| Code | Meaning |
|------|---------|
| 0 | No critical issues |
| 1 | Critical issues found |
---
# ๐ง Architecture
```
src/
โโโ formatter/
โ โโโ indent.rs
โ โโโ whitespace.rs
โ โโโ width.rs
โ โโโ runner.rs
โ
โโโ audit/
โ โโโ scanner.rs
โ โโโ detector.rs
โ โโโ reporter.rs
โ โโโ mod.rs
โ
โโโ cli.rs
โโโ main.rs
```
**Internal Engines**
| Engine | Responsibility |
|--------|-----------|
| Scanner | File discovery + language detection |
| Detector | Static analysis rules |
| Reporter | Output builder (Text/JSON) |
| Runner | Formatting rule executor |
---
# โ๏ธ Philosophy
Verid follows strict engineering principles:
- **Deterministic** โ same input, same output
- **Minimal** โ no unnecessary features
- **Composable** โ rule-based architecture
- **Fast** โ parallel execution with Rayon
- **Strict** โ security-first scanning rules
---
# ๐ Development
Run checks:
```bash
cargo check
cargo clippy -- -D warnings
cargo test
```
Format code:
```bash
cargo fmt
```
---
# ๐บ Roadmap (v0.4+)
- Config file (verid.toml)
- Ignore patterns (.veridignore)
- Custom rule plugins
- SARIF output format
- Git pre-commit hooks
- Language expansion (Go, Java, etc)
---
๐ค Contributing
PRs are welcome.
Steps:
1. Fork repository
2. Create branch
3. Implement feature
4. Ensure:
ยฐ cargo fmt
ยฐ cargo clippy -- -D warnings
ยฐ cargo check
ยฐ cargo test
5. Open PR
---
# ๐ Security
If you find a vulnerability:
Please report responsibly via issue or private contact.
---
# ๐ License
MIT License
---
# โค๏ธ Acknowledgements
Built with โค๏ธ using Rust.
Inspired by modern dev tooling:
- rustfmt
- clippy
- eslint
- cargo-audit
---
# โญ Support
If you like Verid:
- โญ Star the repo
- ๐ฆ Use it in your projects
- ๐ป Share with other devs
---
# ๐ Verid
> Clean code. Secure code. Fast workflow.