Skip to content

Commit aa4bf4c

Browse files
committed
fix: add default exclude dirs
Signed-off-by: Josef Andersson <josef.andersson@digg.se>
1 parent b0fb211 commit aa4bf4c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

linters/markdown.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ readonly ACTION="${1:-check}"
1313
shift || true
1414
readonly DISABLE="${1:-MD013}"
1515

16+
readonly EXCLUDE=".github-shared,node_modules,vendor,target"
17+
1618
check_markdown() {
17-
local args=(check .)
19+
local args=(check . --exclude "$EXCLUDE")
1820
[[ -n "$DISABLE" ]] && args+=(--disable "$DISABLE")
1921
if rumdl "${args[@]}"; then
2022
print_success "Markdown linting passed"
@@ -26,7 +28,7 @@ check_markdown() {
2628
}
2729

2830
fix_markdown() {
29-
local args=(check --fix .)
31+
local args=(check --fix . --exclude "$EXCLUDE")
3032
[[ -n "$DISABLE" ]] && args+=(--disable "$DISABLE")
3133
if rumdl "${args[@]}"; then
3234
print_success "Markdown files fixed"

0 commit comments

Comments
 (0)