markdownlint-cli: Crash "TypeError: object null is not iterable" for github/docs
Was looking at setting up Markdownlint on the new Running the 0.24.0 version crashes with the following
Z:\github-docs\node_modules\markdownlint\lib\markdownlint.js:859
throw error;
^
TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))
at Z:\github-docs\node_modules\markdownlint\lib\md031.js:24:30
at forMetadata (Z:\github-docs\node_modules\markdownlint\helpers\helpers.js:259:5)
at Array.forEach (<anonymous>)
at forEachLine (Z:\github-docs\node_modules\markdownlint\helpers\helpers.js:257:16)
at Object.MD031 [as function] (Z:\github-docs\node_modules\markdownlint\lib\md031.js:18:5)
at forRule (Z:\github-docs\node_modules\markdownlint\lib\markdownlint.js:595:20)
at Array.forEach (<anonymous>)
at lintContent (Z:\github-docs\node_modules\markdownlint\lib\markdownlint.js:641:14)
at lintContentWrapper (Z:\github-docs\node_modules\markdownlint\lib\markdownlint.js:681:12)
at lintFile (Z:\github-docs\node_modules\markdownlint\lib\markdownlint.js:687:5)
Rolling back to 0.23.2 runs without issue.
PS: @DavidAnson might be another good repo for the CITGM/CI setup after I get it running
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (10 by maintainers)
I’m not subscribed - ping me. I’ll add that repo to the tests.
That was part of my verification - both CLI’s now run to completion against the github/docs commit I reference above. 😃 Let me know when your PR is accepted and I’ll add github/docs to the TestRepos action - that’s a good idea.