Readme
๐ Verid
โก 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
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
cargo install verid
From Source
git clone https://github.com/sushiguard/verid
cd verid
git install -- path .
๐ Usage
verid format src/
Check only (CI mode):
verid format src/ -- check
๐ Audit Code
verid audit src/
Only show critical issues:
verid audit src/ -- only-fail
Filter by language:
verid audit src/ -- lang rs
JSON output (for CI pipelines):
verid audit src/ -- format JSON
Combine everything:
verid audit src/ -- lang rs -- only-fail -- format JSON
๐งช CI Integration
Verid is designed for CI.
Example (GitHub Actions)
- 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:
cargo check
cargo clippy -- -D warnings
cargo test
Format code:
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:
Fork repository
Create branch
Implement feature
Ensure:
ยฐ cargo fmt
ยฐ cargo clippy -- -D warnings
ยฐ cargo check
ยฐ cargo test
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.