Commit graph

3 commits

Author SHA1 Message Date
Luca Pizzamiglio
302c208fc5 Component: git hooks
Add common error function in hooks
Error messages are printed in stderr

Reviewed By: tcberner, #portmgr
Differential Revision: https://reviews.freebsd.org/D38026
2023-01-12 22:09:50 +01:00
Tobias C. Berner
30aaa5ae3f framework: fix grep call in check_files hook
Reported by:		dch
2022-11-16 06:18:26 +01:00
Tobias C. Berner
537c7c0004 framework: new hook to only allow 'default' files in category/port
This hooks enforces that all files in the top-directory of a port match:
  - .*\.mk
  - Makefile.*
  - distinfo.*
  - pkg-.*

An example error message would look like:

 [pre-commit] ERROR: invalid file 'Foo' in 'kate/editors'
             Consider moving non-standard files to files/ or force-ignore this hook.

Differential Revision: https://reviews.freebsd.org/D37387
2022-11-15 19:20:27 +01:00