git hooks for developing on unix like systems
For documentation on pre-commit, visit the website.
- shellcheck
- uncrustify
Copy example.pre-commit-config.yaml from this repo to the new project, edit as necessary, then follow standard pre-commit practices. Additional pre-commit hooks can be found here.
Note: The example file has all hooks in this repo enabled, make sure to disable hooks that are not required.
pretty-c- Make C source prettypretty-shell- Make shell scripts prettytab-fixer- Replace all tabs with spaceswindows-encoding-fixer- Replace Windows encoded files with UTF-8 encoded files
pretty-c uses uncrustify at its core. In order to use the pretty-c hook, create a file called .uncrustify in the root of the project directory and fill it with the desired uncrustify configuration.