Skip to content

fix(hooks): use path-aware exclusions - #279

Open
nightcityblade wants to merge 1 commit into
griddynamics:mainfrom
nightcityblade:fix/issue-270
Open

fix(hooks): use path-aware exclusions#279
nightcityblade wants to merge 1 commit into
griddynamics:mainfrom
nightcityblade:fix/issue-270

Conversation

@nightcityblade

Copy link
Copy Markdown

Fixes #270

Summary

  • use the existing path-boundary-aware exclusion predicate for the loose-file and lint/format hooks
  • cover a directory-name suffix that previously matched build/ as a raw substring

The hooks now exclude real directory segments while allowing paths such as rebuild/app.ts to receive the advisory.

Validation

  • npm test in src/hooks (33 test files, 1,143 tests passed)
  • npm run check in src/hooks
  • venv/bin/python scripts/pre_commit.py (repository type validation and test validation passed)

Signed-off-by: nightcityblade nightcityblade@gmail.com

Signed-off-by: nightcityblade <nightcityblade@gmail.com>
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.

[ROSETTA] hooks notContainsAny path filter uses raw substring, unlike notTokenSegmentAny

1 participant