You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
doc, tools: doc linting does not work in CI #12635
@vsemozhetbyt I think all you need to do is add doc to the list of directories being linted. They're in alphabetical order, so it would go between benchmark and lib. Basically, compare line 864 of the Makefile (the version you have linked above) with line 859. Similar change in vcbuild.bat.
@vsemozhetbyt Oh, wait, yeah, you'll also need to add the --ext=.js,.md stuff. And that will involve editing tools/jslint.js (which was originally authored by @mscdex, who I'll @-mention just in case there's already a provision for adding arbitrary CLI flags or something).
@not-an-aardvark With make jslint, we run eslint with caching because people are likely to run that multiple times. On my machine, the first run takes about 23 seconds, but subsequent runs (once the cache is populated) are less than 2 seconds. Sweet!
But on CI, there is no second run. There is only the first run. So jslint.js is used to parallelize the linting a bit to make it faster. On my machine, it takes about 15 seconds to run. It might be slightly longer once docs are added to its lint load the way they are for make jslint.
Given that the linter is the fastest CI job we have, this is literally marginal value, but it used to run everywhere before ESLint had caching (or maybe before we knew to turn caching on).
Activity
vsemozhetbyt commentedon Apr 25, 2017
It seems these blocks also need to be edited, but I don't know how exactly:
node/Makefile
Lines 861 to 864 in b4fea2a
node/vcbuild.bat
Lines 427 to 430 in b4fea2a
Maybe some other files are also concerned (
tools/jslint.js?).сс @not-an-aardvark, @silverwind, @Trott
Trott commentedon Apr 25, 2017
@vsemozhetbyt I think all you need to do is add
docto the list of directories being linted. They're in alphabetical order, so it would go betweenbenchmarkandlib. Basically, compare line 864 of the Makefile (the version you have linked above) with line 859. Similar change in vcbuild.bat.Trott commentedon Apr 25, 2017
@vsemozhetbyt Oh, wait, yeah, you'll also need to add the
--ext=.js,.mdstuff. And that will involve editingtools/jslint.js(which was originally authored by @mscdex, who I'll @-mention just in case there's already a provision for adding arbitrary CLI flags or something).not-an-aardvark commentedon Apr 25, 2017
Oh, I never realized that
jslint.jswas a runner for ESLint. I always thought it was running JSLint.Trott commentedon Apr 25, 2017
@not-an-aardvark With
make jslint, we runeslintwith caching because people are likely to run that multiple times. On my machine, the first run takes about 23 seconds, but subsequent runs (once the cache is populated) are less than 2 seconds. Sweet!But on CI, there is no second run. There is only the first run. So
jslint.jsis used to parallelize the linting a bit to make it faster. On my machine, it takes about 15 seconds to run. It might be slightly longer once docs are added to its lint load the way they are formake jslint.Given that the linter is the fastest CI job we have, this is literally marginal value, but it used to run everywhere before ESLint had caching (or maybe before we knew to turn caching on).
vsemozhetbyt commentedon Apr 25, 2017
@Trott @not-an-aardvark It seems we need to update
cliOptionsforCLIEnginewithextensionsproperty. I shall try a PR.vsemozhetbyt commentedon Apr 25, 2017
Trying: #12640
doc, tools: add doc linting to CI