Skip to content
This repository was archived by the owner on Aug 31, 2018. It is now read-only.

Commit c1e8b14

Browse files
watildeaddaleax
authored andcommitted
tools: add lint-md command in Makefile
PR-URL: nodejs/node#12756 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
1 parent cd41b9e commit c1e8b14

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Makefile

+9-2
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ $(TARBALL): release-only $(NODE_EXE) doc
807807
$(RM) -r $(TARNAME)/deps/openssl/openssl/{doc,demos,test}
808808
$(RM) -r $(TARNAME)/deps/zlib/contrib # too big, unused
809809
$(RM) -r $(TARNAME)/.{editorconfig,git*,mailmap}
810-
$(RM) -r $(TARNAME)/tools/{eslint,eslint-rules,osx-pkg.pmdoc,pkgsrc}
810+
$(RM) -r $(TARNAME)/tools/{eslint,eslint-rules,osx-pkg.pmdoc,pkgsrc,remark-cli,remark-preset-lint-node}
811811
$(RM) -r $(TARNAME)/tools/{osx-*,license-builder.sh,cpplint.py}
812812
$(RM) -r $(TARNAME)/test*.tap
813813
find $(TARNAME)/ -name ".eslint*" -maxdepth 2 | xargs $(RM)
@@ -948,6 +948,11 @@ bench: bench-net bench-http bench-fs bench-tls
948948

949949
bench-ci: bench
950950

951+
lint-md:
952+
@echo "Running Markdown linter..."
953+
$(NODE) tools/remark-cli/cli.js -q -f \
954+
./*.md doc src lib benchmark tools/doc/ tools/icu/
955+
951956
LINT_JS_TARGETS = benchmark doc lib test tools
952957

953958
lint-js:
@@ -1005,9 +1010,10 @@ lint:
10051010
@EXIT_STATUS=0 ; \
10061011
$(MAKE) lint-js || EXIT_STATUS=$$? ; \
10071012
$(MAKE) lint-cpp || EXIT_STATUS=$$? ; \
1013+
$(MAKE) lint-md || EXIT_STATUS=$$? ; \
10081014
exit $$EXIT_STATUS
10091015
CONFLICT_RE=^>>>>>>> [0-9A-Fa-f]+|^<<<<<<< [A-Za-z]+
1010-
lint-ci: lint-js-ci lint-cpp
1016+
lint-ci: lint-js-ci lint-cpp lint-md
10111017
@if ! ( grep -IEqrs "$(CONFLICT_RE)" benchmark deps doc lib src test tools ) \
10121018
&& ! ( find . -maxdepth 1 -type f | xargs grep -IEqs "$(CONFLICT_RE)" ); then \
10131019
exit 0 ; \
@@ -1070,6 +1076,7 @@ endif
10701076
lint-js \
10711077
lint-js-ci \
10721078
list-gtests \
1079+
lint-md \
10731080
pkg \
10741081
release-only \
10751082
run-ci \

0 commit comments

Comments
 (0)