mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Update docs/pre-commit-hook-setup.md
Co-authored-by: Jonas Jensen <jbj@github.com>
This commit is contained in:
committed by
GitHub
parent
ae388ec796
commit
f18486aa60
@@ -1,6 +1,6 @@
|
||||
# CodeQL pre-commit-hook setup
|
||||
|
||||
As stated in [CONTRIBUTING](../CONTRIBUTING.md) all CodeQL files must be formatted according to our [CodeQL style guide](ql-style-guide.md). You can use our pre-commit hook to avoid committing incorrectly formatted code. To use it, simply copy the [pre-commit](../misc/scripts/pre-commit) script to `.git/modules/ql/hooks/pre-commit` and make sure that:
|
||||
As stated in [CONTRIBUTING](../CONTRIBUTING.md) all CodeQL files must be formatted according to our [CodeQL style guide](ql-style-guide.md). You can use our pre-commit hook to avoid committing incorrectly formatted code. To use it, simply copy the [pre-commit](../misc/scripts/pre-commit) script to `.git/hooks/pre-commit` and make sure that:
|
||||
|
||||
- The script is executable. On Linux and macOS this can be done using `chmod +x`.
|
||||
- The CodeQL CLI has been added to your `PATH`.
|
||||
|
||||
Reference in New Issue
Block a user