summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorBennett Goble <signal@lindenlab.com>2024-05-29 08:10:00 -0700
committerBennett Goble <signal@lindenlab.com>2024-05-29 08:10:00 -0700
commita0b3021bdcf76859054fda8e30abb3ed47749e83 (patch)
tree0e1ee5e68334244f4c67455466cc34409725ea7e /.pre-commit-config.yaml
parent83e80d79672210355d0291e30bd89bd03c672ca6 (diff)
Trim trailing whitespace
Start trimming trailing whitespace, but limit the blast radius to a handful of file types.
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d40f02dc0c..1dd7c8c800 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,5 +1,5 @@
repos:
- - repo: https://github.com/secondlife/git-hooks.git
+ - repo: https://github.com/secondlife/git-hooks.git
rev: v1.0.2
hooks:
- id: opensource-license
@@ -16,3 +16,5 @@ repos:
hooks:
- id: check-xml
- id: mixed-line-ending
+ - id: trailing-whitespace
+ files: \.(cpp|c|h|inl|py|glsl|cmake|yaml|sh)$