From d74dc17afe883128f7e7163785570861c6571757 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Fri, 7 Jun 2019 21:45:01 -0400 Subject: 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: https://github.com/nodejs/node/pull/28128 Refs: https://github.com/nodejs/node/pull/28127 Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5834df883b..860c27676c 100644 --- a/Makefile +++ b/Makefile @@ -1159,7 +1159,7 @@ lint-md-clean: lint-md-build: $(warning "Deprecated no-op target 'lint-md-build'") -LINT_MD_DOC_FILES = $(shell ls doc/*.md doc/**/*.md) +LINT_MD_DOC_FILES = $(shell find doc -type f -name '*.md') run-lint-doc-md = tools/lint-md.js -q -f $(LINT_MD_DOC_FILES) # Lint all changed markdown files under doc/ tools/.docmdlintstamp: $(LINT_MD_DOC_FILES) -- cgit v1.2.3