Skip to content

Commit a670285

Browse files
committed
feat(githooks): add EditorConfig checker configuration and update script to use it
1 parent 7875af7 commit a670285

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

.markdownlintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

scripts/githooks/check-file-format.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ function run-editorconfig-natively() {
8181

8282
# shellcheck disable=SC2046,SC2086
8383
editorconfig \
84+
-config "$PWD/scripts/config/editorconfig-checker.json" \
8485
--exclude '.git/' $dry_run_opt $($filter)
8586
}
8687

@@ -101,7 +102,7 @@ function run-editorconfig-in-docker() {
101102
docker run --rm --platform linux/amd64 \
102103
--volume "$PWD":/check \
103104
"$image" \
104-
sh -c "ec --exclude '.git/' $dry_run_opt \$($filter) /dev/null"
105+
sh -c "ec -config /check/scripts/config/editorconfig-checker.json --exclude '.git/' $dry_run_opt \$($filter) /dev/null"
105106
}
106107

107108
# ==============================================================================

0 commit comments

Comments
 (0)