Skip to content

Commit a79f256

Browse files
authored
Add editorconfig checks to pre-commit (#783)
1 parent 5e0844e commit a79f256

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ indent_size = 4
2020
[Makefile]
2121
indent_style = tab
2222

23+
[.gitmodules]
24+
indent_style = tab
25+
2326
[{CMakeLists.txt,*.cmake}]
2427
indent_size = 2
2528

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ repos:
4747
hooks:
4848
- id: yamllint
4949

50+
# EditorConfig compliance
51+
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
52+
rev: 3.6.1
53+
hooks:
54+
- id: editorconfig-checker
55+
exclude: ^(3rdparty/|build.*/|install/)
56+
args: [--disable-indent-size]
57+
5058
- repo: https://github.com/pre-commit/pre-commit-hooks
5159
rev: v6.0.0
5260
hooks:

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ EXTRACT_PRIVATE = YES
2424
EXTRACT_TEMPLATE_PARAMS = YES
2525
ENABLE_PREPROCESSING = YES
2626
MACRO_EXPANSION = YES
27-
EXPAND_ONLY_PREDEF = NO
27+
EXPAND_ONLY_PREDEF = NO

0 commit comments

Comments
 (0)