Skip to content

Lints

FieldValue
TypeSkill Resource
Source~/.copilot/skills/quality/lints.toml
DescriptionNot specified

Source Content

# Lint registry for scripts/lint.py — the extension point.
# Add a lint: append a [[lint]] block. No code changes needed.
#
# Fields:
# name — shown in the summary table.
# globs — files this lint applies to. A lint whose file type didn't
# change never runs.
# command — {skill} expands to this skill's directory; {files} to the
# matched files. If the first token isn't an installed tool,
# the lint is skipped with a warning, never failed.
# required — true: a non-zero exit fails the run. false: advisory.
# note — one line of context, echoed when the lint runs.
[[lint]]
name = "assertion-quality"
globs = ["**/*.test.ts", "**/*.test.tsx", "**/*.spec.ts", "**/*.spec.tsx"]
command = "python3 {skill}/scripts/check_assertion_quality.py {files}"
required = true
note = "flags tautological-only assertions and empty test bodies"
[[lint]]
name = "test-hygiene"
globs = ["**/*.test.ts", "**/*.test.tsx", "**/*.spec.ts", "**/*.spec.tsx"]
command = "bash {skill}/scripts/check_tests.sh {files}"
required = true
note = "hard-fails on committed .skip(/.only(; advisory coverage-config check"
[[lint]]
name = "pr-body"
globs = ["**/pr-body.md", "**/PR_BODY.md", "**/*.pr.md"]
command = "python3 {skill}/scripts/check_pr_body.py {files}"
required = false
note = "cross-checks file paths against the real diff; requires a Test plan section — advisory since base-ref/git context varies outside a real PR draft"