From 48d7d7c53e84f494b8c405d772b53a82e122b46e Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Fri, 7 Jun 2019 21:45:01 -0400 Subject: [PATCH] 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(-) diff --git a/Makefile b/Makefile index 5834df883b0c23..860c27676c8854 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)