slopguard-cli 0.1.13

CLI tool to catch AI-generated code patterns via static analysis
slopguard-cli-0.1.13 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

cargo install slopguard-cli

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
slopguard scan .

# Scan specific directories
slopguard scan src/api/ src/handlers/

# JSON output for CI pipelines
slopguard scan --format json

# SARIF for GitLab/GitHub code scanning integration
slopguard scan --format sarif

# Only fail on errors, not warnings
slopguard scan --severity-threshold error

License

MIT - see LICENSE.