From fc532e38bb559f31737c6df68a279dd6999267ee Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Mon, 1 Jun 2026 20:48:37 +0200 Subject: [PATCH] Add editorconfig checks to pre-commit --- .editorconfig | 3 +++ .pre-commit-config.yaml | 8 ++++++++ Doxyfile | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 6e37ad64b..c74f22029 100644 --- a/.editorconfig +++ b/.editorconfig @@ -20,6 +20,9 @@ indent_size = 4 [Makefile] indent_style = tab +[.gitmodules] +indent_style = tab + [{CMakeLists.txt,*.cmake}] indent_size = 2 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 511830a9b..ec59cec34 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -47,6 +47,14 @@ repos: hooks: - id: yamllint + # EditorConfig compliance + - repo: https://github.com/editorconfig-checker/editorconfig-checker.python + rev: 3.6.1 + hooks: + - id: editorconfig-checker + exclude: ^(3rdparty/|build.*/|install/) + args: [--disable-indent-size] + - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: diff --git a/Doxyfile b/Doxyfile index bca422940..b5a477dd7 100644 --- a/Doxyfile +++ b/Doxyfile @@ -24,4 +24,4 @@ EXTRACT_PRIVATE = YES EXTRACT_TEMPLATE_PARAMS = YES ENABLE_PREPROCESSING = YES MACRO_EXPANSION = YES -EXPAND_ONLY_PREDEF = NO \ No newline at end of file +EXPAND_ONLY_PREDEF = NO