File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ skip_shell="${SKIP_LINT_SHELL}"
45
45
skip_typescript_declarations=" ${SKIP_LINT_TYPESCRIPT_DECLARATIONS} "
46
46
skip_typescript_tests=" ${SKIP_LINT_TYPESCRIPT_TESTS} "
47
47
skip_license_headers=" ${SKIP_LINT_LICENSE_HEADERS} "
48
+ skip_editorconfig=" ${SKIP_LINT_EDITORCONFIG} "
48
49
49
50
# Determine root directory:
50
51
root=$( git rev-parse --show-toplevel)
@@ -140,6 +141,15 @@ run_lint() {
140
141
return 1
141
142
fi
142
143
fi
144
+ # Lint against EditorConfig:
145
+ if [[ -z " ${skip_editorconfig} " ]]; then
146
+ make FILES=" ${changed_files} " lint-editorconfig-files > /dev/null >&2
147
+ if [[ " $? " -ne 0 ]]; then
148
+ echo ' ' >&2
149
+ echo ' EditorConfig lint errors.' >&2
150
+ return 1
151
+ fi
152
+ fi
143
153
# Lint Markdown files...
144
154
if [[ -z " ${skip_markdown} " ]]; then
145
155
files=$( echo " ${changed_files} " | grep ' \.md$' | tr ' \n' ' ' )
You can’t perform that action at this time.
0 commit comments