Skip to content

Commit 48d7d7c

Browse files
richardlauBridgeAR
authored andcommitted
build: lint all docs under doc
`**` expansion doesn't behave as expected and as a result files in nested subdirectories under `doc` were not linted. Use `find` instead to generate the list of files to lint. PR-URL: #28128 Refs: #28127 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 6b9d477 commit 48d7d7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ lint-md-clean:
11591159
lint-md-build:
11601160
$(warning "Deprecated no-op target 'lint-md-build'")
11611161

1162-
LINT_MD_DOC_FILES = $(shell ls doc/*.md doc/**/*.md)
1162+
LINT_MD_DOC_FILES = $(shell find doc -type f -name '*.md')
11631163
run-lint-doc-md = tools/lint-md.js -q -f $(LINT_MD_DOC_FILES)
11641164
# Lint all changed markdown files under doc/
11651165
tools/.docmdlintstamp: $(LINT_MD_DOC_FILES)

0 commit comments

Comments
 (0)