Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ea415a6

Browse filesBrowse files
watildegibfahn
authored andcommitted
tools: add lint-md command in Makefile
PR-URL: #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 3522e76 commit ea415a6
Copy full SHA for ea415a6

File tree

Expand file treeCollapse file tree

1 file changed

+9
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-2
lines changed
Open diff view settings
Collapse file

‎Makefile‎

Copy file name to clipboardExpand all lines: Makefile
+9-2Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ $(TARBALL): release-only $(NODE_EXE) doc
804804
$(RM) -r $(TARNAME)/deps/openssl/openssl/{doc,demos,test}
805805
$(RM) -r $(TARNAME)/deps/zlib/contrib # too big, unused
806806
$(RM) -r $(TARNAME)/.{editorconfig,git*,mailmap}
807-
$(RM) -r $(TARNAME)/tools/{eslint,eslint-rules,osx-pkg.pmdoc,pkgsrc}
807+
$(RM) -r $(TARNAME)/tools/{eslint,eslint-rules,osx-pkg.pmdoc,pkgsrc,remark-cli,remark-preset-lint-node}
808808
$(RM) -r $(TARNAME)/tools/{osx-*,license-builder.sh,cpplint.py}
809809
$(RM) -r $(TARNAME)/test*.tap
810810
find $(TARNAME)/ -name ".eslint*" -maxdepth 2 | xargs $(RM)
@@ -945,6 +945,11 @@ bench: bench-net bench-http bench-fs bench-tls
945945

946946
bench-ci: bench
947947

948+
lint-md:
949+
@echo "Running Markdown linter..."
950+
$(NODE) tools/remark-cli/cli.js -q -f \
951+
./*.md doc src lib benchmark tools/doc/ tools/icu/
952+
948953
LINT_JS_TARGETS = benchmark doc lib test tools
949954

950955
lint-js:
@@ -1002,9 +1007,10 @@ lint:
10021007
@EXIT_STATUS=0 ; \
10031008
$(MAKE) lint-js || EXIT_STATUS=$$? ; \
10041009
$(MAKE) lint-cpp || EXIT_STATUS=$$? ; \
1010+
$(MAKE) lint-md || EXIT_STATUS=$$? ; \
10051011
exit $$EXIT_STATUS
10061012
CONFLICT_RE=^>>>>>>> [0-9A-Fa-f]+|^<<<<<<< [A-Za-z]+
1007-
lint-ci: lint-js-ci lint-cpp
1013+
lint-ci: lint-js-ci lint-cpp lint-md
10081014
@if ! ( grep -IEqrs "$(CONFLICT_RE)" benchmark deps doc lib src test tools ) \
10091015
&& ! ( find . -maxdepth 1 -type f | xargs grep -IEqs "$(CONFLICT_RE)" ); then \
10101016
exit 0 ; \
@@ -1067,6 +1073,7 @@ endif
10671073
lint-js \
10681074
lint-js-ci \
10691075
list-gtests \
1076+
lint-md \
10701077
pkg \
10711078
release-only \
10721079
run-ci \

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.