ntopng/.githooks/pre-commit
Riccardo Mori a87a6e3b8c
Switch code formatter from auto-commit to pre-commit hook (#7386)
* Add pre-commit check for the code formatter

* Remove code formatter CI

* Fix mtime in fast-format command
2023-04-11 15:08:29 +02:00

4 lines
117 B
Bash
Executable file

#!/bin/sh
# Check coding style
make -s check-format || (echo 'Please format your code with `make format`' && false)