ShellMagick / commit-hooks

Commit hooks based on experience, needs in teams I have worked, and acquired taste.
MIT License
0 stars 0 forks source link

no-boms hook should print full path to file #20

Closed AFulgens closed 4 months ago

AFulgens commented 4 months ago

Context

Currently the no-boms hook (and possibly other file-checking hooks in this repository) prints only the filename when encountering a violation. This is suboptimal, in case we want to put the file into the regex for exclude (may that be an anti-pattern in itself, sometimes that is the way to go).

Idea

Print the full repository-relative-path of the file when in violation, not only the filename in all the hooks.

Further context

Not fully fixed by #9 :(