diff --git a/.editorconfig b/.editorconfig index 7e95757f518756e8eca93e4f3001d967f1dd4d27..7019062b9be336388476cd395c5f9f945d955677 100644 --- a/.editorconfig +++ b/.editorconfig @@ -16,10 +16,6 @@ indent_style = space insert_final_newline = true trim_trailing_whitespace = true -# Avoid conflict with formatters. -[*.{c,h,cpp,hpp,md}] -indent_size = unset - # Override settings. [*.{json,yml,yaml}] indent_size = 2 @@ -28,6 +24,10 @@ indent_size = 2 [.clang-{tidy,format}] indent_size = 2 +# And md +[*.md] +indent_size = 2 + # Override settings. [LICENSES/*] indent_size = unset diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a57ecd80728caa533026d31d0e454f0be16ed5ca..5c64d7598c526abb9e666a165859f830630b6d3e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,7 +30,14 @@ repos: alias: ec stages: [ pre-commit ] name: "EditorConfig Rules" - exclude: ^LICENSES/ + exclude: | + (?x)^( + LICENSES/.*| + .*\.c| + .*\.h| + .*\.cpp| + .*\.hpp + )$ - repo: https://github.com/cmake-lint/cmake-lint rev: 251239e56ab8b88889fec16a47376c44dfa16a99 hooks: