slopguard-cli-0.1.11 is not a library.
slopguard-cli
CLI binary for slopguard. Catches AI-generated code patterns and common correctness/security issues via static analysis.
This crate provides the slopguard command-line tool. For the core library, see slopguard-core. For the full project, see the main README.
Install
Commands
| Command | Description |
|---|---|
slopguard scan [paths...] |
Scan files for rule violations |
slopguard list |
List all active rules |
slopguard test |
Validate all rule inline tests (should_match / should_not_match) |
slopguard init |
Generate a slopguard.toml configuration file |
Scan Options
| Flag | Description |
|---|---|
--format <text|json|sarif> |
Output format (default: text) |
--severity-threshold <error|warning> |
Minimum severity to report (default: warning) |
--config <path> |
Path to a slopguard.toml config file |
--no-colors |
Disable colored output |
Exit Codes
| Code | Meaning |
|---|---|
| 0 | No findings (or all below severity threshold) |
| 1 | Findings found at or above severity threshold |
| 2 | Configuration error (invalid rule, missing file, bad TOML) |
Examples
# Scan the current project
# Scan specific directories
# JSON output for CI pipelines
# SARIF for GitLab/GitHub code scanning integration
# Only fail on errors, not warnings
License
MIT - see LICENSE.