Skip to content

Conversation

@mojoatomic
Copy link
Owner

Summary

Follow-up: CI-safe consumer scripts and improved ratchet messaging. Builds on #211 and closes #210.

Changes

  • init: add non-destructive package.json scripts for CI-safe lint + ratchet
    • lint, lint:ci, lint:json, analyze:current, ratchet, ratchet:context, ci:ratchet
  • README: add GitHub Actions snippet to run lint:ci then ci:ratchet
  • ratchet: when failing, print example occurrences for known rules (eqeqeq, camelcase, no-empty, magic numbers) and unlock hint

Why

  • Prevents immediate CI failures in consumer repos
  • Guides teams to gate builds via ratchet, not raw lint severity
  • Makes ratchet failures actionable and explainable

Notes

  • Scripts are only added if missing (won't overwrite existing commands)
  • Ratchet examples are best-effort and use optional --lint to read current lint JSON (or env AI_SNIFFTEST_LINT_CURRENT)

- init: add lint:ci and ratchet scripts to package.json (non-destructive)
- README: CI snippet to run lint:ci then ratchet
- ratchet: print examples of new violations and unlock hint when failing

Refs: #210
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.

Permissive start + progressive ratchet: CI-safe lint, presets, and ratchet DX

2 participants