@scruple/cli
v0.3.5
Published
Semantic code rules powered by pluggable parsers and decision providers.
Downloads
8,958
Maintainers
Readme
@scruple/cli
Command-line interface for running Scruple checks over selected source files.
pnpm add --save-dev @scruple/cli
pnpm exec scruple "src/**/*.{ts,tsx}"Successful provider responses are cached in node_modules/.cache/scruple by default. The cache covers
collection and final decisions. Configure a DecisionCache strategy for remote or other storage, set
cache: false to disable the default, or use --no-cache and --cache-dir <path> as per-run overrides.
Use --explain to audit every final candidate decision, including accepted and abstained candidates.
Collection classifications are not included because they only filter possible targets. Combine
--explain with --format json for structured output.
Install and configure a parser, decision provider, and rule plugins alongside the CLI. Follow the published quickstart, browse the rule registry, compare providers, or write a custom rule.
