There was an error while loading. Please reload this page.
1 parent 4cb8873 commit ff04071Copy full SHA for ff04071
2 files changed
.githooks/pre-commit
README.md
@@ -22,10 +22,15 @@ please refer to the following resources.
22
23
## Formatting
24
25
-Enable the pre-commit clang-format check, once per clone:
+Changed lines must be clang-format clean. CI checks this on every pull
26
+request, and the same check can be run locally:
27
28
sudo apt-get install -y clang-format-18
- git config core.hooksPath .githooks
29
+ .github/scripts/clang-format-check.sh
30
+
31
+To run it on every commit, install it as a hook in your own clone:
32
33
+ ln -s ../../.github/scripts/clang-format-check.sh .git/hooks/pre-commit
34
35
## Resources
36
0 commit comments