Skip to content

Commit

Permalink
Improve regex for exclusions
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Holthuis <[email protected]>
  • Loading branch information
daschuer and Holzhaus committed Nov 30, 2024
1 parent 51b3cf7 commit 5d5207f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ repos:
- id: check-yaml
exclude: ^\.clang-format$
- id: end-of-file-fixer
exclude: ^.*(UTF-8-BOM\.txt|\.ts)$
exclude: ^(res/translations/.*\.ts|.*UTF-8-BOM\.txt)$
- id: mixed-line-ending
- id: trailing-whitespace
exclude: \.(c|cc|cxx|cpp|ts|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|mm|proto|tsv|vert)$
Expand All @@ -64,7 +64,7 @@ repos:
"\\W(?:m_p*(?=[A-Z])|m_(?=\\w)|pp*(?=[A-Z])|k(?=[A-Z])|s_(?=\\w))",
--write-changes,
]
exclude: ^(packaging\/wix\/LICENSE.rtf.in|src\/dialog\/dlgabout\.cpp|.*\.(?:pot?|(?<!\.d\.)ts|wxl|svg))$
exclude: ^(packaging/wix/LICENSE.rtf.in|src/dialog/dlgabout\.cpp|.*\.(?:pot?|(?<!\.d\.)ts|wxl|svg))$
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.48.0
hooks:
Expand All @@ -81,7 +81,7 @@ repos:
- "@typescript-eslint/eslint-plugin"
- "@typescript-eslint/parser"
- eslint-plugin-diff@^2.0.3
exclude: ^.*\.(?<!\.d\.)ts$
exclude: ^res/translations/.*\.ts$
- repo: local
hooks:
- id: clang-format
Expand Down

0 comments on commit 5d5207f

Please sign in to comment.