aboutsummaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorJoe Kirchoff <[email protected]>2022-04-05 13:56:02 -0700
committerGitHub <[email protected]>2022-04-05 13:56:02 -0700
commit3a33d040ddaaa9634ca4fab04e3182e7a8313547 (patch)
treec463890deaec7fb7c524f18de70e893797477fec /.pre-commit-config.yaml
parentMinor formatting fix (diff)
downloadzen-3a33d040ddaaa9634ca4fab04e3182e7a8313547.tar.xz
zen-3a33d040ddaaa9634ca4fab04e3182e7a8313547.zip
Add pre-commit config (#69)
* Add .pre-commit-config.yaml * format all using pre-commit clang-format hook * Add pre-commit to inject unreal header comment * Remove prepare_commit.bat & update CODING.md * Remove check-added-large-files, add headers before clang-format
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 000000000..98535dd94
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,28 @@
+# See https://pre-commit.com for more information
+# See https://pre-commit.com/hooks.html for more hooks
+repos:
+- repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v3.2.0
+ hooks:
+ #- id: end-of-file-fixer
+ #- id: trailing-whitespace
+ #- id: check-added-large-files
+ - id: mixed-line-ending
+ - id: check-yaml
+ - id: check-case-conflict
+- repo: https://github.com/Lucas-C/pre-commit-hooks
+ rev: v1.1.13
+ hooks:
+ - id: insert-license
+ exclude: sha1\.(cpp|h)$
+ files: \.(cpp|h)$
+ args:
+ - --license-filepath
+ - .unreal-header # defaults to: LICENSE.txt
+ - --comment-style
+ - // # defaults to: #
+- repo: https://github.com/pre-commit/mirrors-clang-format
+ rev: v13.0.1
+ hooks:
+ - id: clang-format
+exclude: ^thirdparty/