pre-commit(tabs): use blacklist to exclude files

Add `indent_style = space` to the `.editorconfig` file for batch files.
This commit is contained in:
John Bampton
2022-10-29 20:24:51 +10:00
parent 15eb62479b
commit e7507778a4
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -32,6 +32,7 @@ trim_trailing_whitespace = true
[*.bat]
charset = latin1
end_of_line = crlf
indent_style = space
#max_line_length = 80
[*.{yaml,yml}]
+2 -2
View File
@@ -31,10 +31,10 @@ repos:
rev: v1.3.1
hooks:
- id: forbid-tabs
files: \.(c|cc|C|cxx|cpp|gembox|gemspec|h|hh|H|hxx|hpp|inc|md|mdown|markdown|rake|rb|y|yaml|yml)$|^Rakefile$|^rakefile$
exclude: Makefile$|Makefile\..+$|makefile$|\.mk$
- id: remove-tabs
args: [--whitespaces-count, '2']
files: \.(c|cc|C|cxx|cpp|gembox|gemspec|h|hh|H|hxx|hpp|inc|md|mdown|markdown|rake|rb|y|yaml|yml)$|^Rakefile$|^rakefile$
exclude: Makefile$|Makefile\..+$|makefile$|\.mk$
- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
hooks: