This is an automated email from the ASF dual-hosted git repository.
mseidel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/trunk by this push:
new 68a29d5689 pre-commit: add official hook fix-byte-order-marker (#322)
68a29d5689 is described below
commit 68a29d568966cc17f1494f3c716d2994d2e94bd7
Author: John Bampton <[email protected]>
AuthorDate: Mon Mar 3 10:00:56 2025 +1000
pre-commit: add official hook fix-byte-order-marker (#322)
* pre-commit: add two more official hooks
https://github.com/pre-commit/pre-commit-hooks#detect-aws-credentials
https://github.com/pre-commit/pre-commit-hooks#fix-byte-order-marker
* Update .pre-commit-config.yaml
* Update .pre-commit-config.yaml
---------
Co-authored-by: Matthias Seidel <[email protected]>
---
.pre-commit-config.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 9a53da5ec7..8ef972f979 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -34,6 +34,7 @@ repos:
- id: check-vcs-permalinks
- id: end-of-file-fixer
files:
(m|M)akefile$|\.(bat|c|cxx|dxp|h|hrc|hxx|idl|in|ini|java|md|mk|pl|pm|py|rc|sh|xcs|xdl|xhp|xmi|xsd|xslt?|ya?ml)$|^ext_libraries/.*$|^test/.*$
+ - id: fix-byte-order-marker
- id: mixed-line-ending
files:
^main/.*\.(c|h)xx$|^main/.*\.java$|\.(dxp|h|hrc|idl|in|ini|md|mk|pl|pm|py|rc|sh|xcs|xdl|xhp|xmi|xsd|xslt?|ya?ml)$|^main/accessibility/.*$|^main/afms/.*$|^main/animations/.*$|^main/apache-commons/.*$
- id: trailing-whitespace