Skip to content

feat: read built-in check options from the verify config - #29

Merged
staff0rd merged 2 commits into
mainfrom
verify-4
Nov 11, 2026
Merged

staff0rd merged 2 commits into
mainfrom
verify-4

Conversation

@staff0rd

Copy link
Copy Markdown
Member

What

Built-in checks read named settings from verify.config.json or package.json#verify: complexity, comments, unusedCode, duplicateCode and circularDeps. verifyx <check> and verifyx all both apply them, so flag-heavy verify:* scripts are no longer needed. A command-line flag wins over config, and a config with invalid JSON, an unknown key or a wrong-typed value fails the check, naming the file and key.

Why

Every option had to be a CLI flag, so real adoptions ended up with verify:* scripts hundreds of characters long.

How

Settings are named, never raw tool arguments; there is no args key. skott has no config file, so circularDeps settings are the only place to configure it.

@staff0rd
staff0rd enabled auto-merge (squash) November 10, 2026 04:38
@staff0rd
staff0rd disabled auto-merge November 10, 2026 04:38
@staff0rd
staff0rd marked this pull request as draft November 10, 2026 06:39
@staff0rd
staff0rd marked this pull request as ready for review November 10, 2026 06:39
@staff0rd
staff0rd merged commit 4c0d714 into main Nov 11, 2026
6 of 7 checks passed
@staff0rd
staff0rd deleted the verify-4 branch November 11, 2026 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants