Skip to content
Changelog

Scope rules to paths

Every rule in .nitpick.yml now accepts paths and ignore globs, so a rule can apply to your routes and skip your scripts.

.nitpick.ymlroute-tests
rules:  route-tests:    paths: ["src/routes/**"]    ignore: ["**/*.migration.ts"]
  • src/routes/carts.tschecked
  • src/routes/orders.tschecked
  • src/routes/0042.migration.tsskipped
  • scripts/backfill.tsskipped

A monorepo rarely wants one set of rules everywhere. Missing tests matter for API routes and not for a one-off migration script; dead code matters in the app and not in generated clients.

Each rule now takes paths and ignore lists. Nitpick shows which rule matched in every comment, and the check summary lists the files each rule covered, so it is easy to see why something was or wasn’t flagged.

See it on your own pull requests.

Book a demo