-
-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
markdownlint-cli
→ markdownlint-cli2
#1934
base: main
Are you sure you want to change the base?
Conversation
The only markdownlint test that I see failing is this one:
I haven't been able to find any logs indicating why it's failing and I haven't figured out how to run the tests locally to debug further. Any help here would be greatly appreciated. 🙂 |
Maybe you can start y what are the advatages og megalinter to use maskdownlint-cli2 instead of markdownlint ? :) |
I'm not sure I understand the question... If you're asking what the advantages of |
I think this is very valid feedback. I am inclined to give our CI pipeline some love if @nvuillam agrees. I am open to suggestions on where to begin. Otherwise, I will just try to keep the PRs small in order to solicit feedback. |
It looks like the test is adding markdownlint-cli2 markdownlint-cli2 /tmp/lint/.automation/test/markdown/markdown_bad_1.md /tmp/lint/.automation/test/markdown/markdown_bad_2.md This appears to be because of how the container works. More on that here. If we want to use the container, we'll need to use the I'm going to see if the build success without the container and go from there. |
I think using npm package could be ok :) (all npm packages are joined in a single install command so it won't impact badly the build time) |
megalinter/tests/test_megalinter/helpers/utilstest.py:604: in assert_file_has_been_updated
test_self.assertTrue(updated, f"{file_name} has been updated")
E AssertionError: False is not true : markdown_for_fixes_1.md has been updated If I run the following command locally on this branch, 17 files, including npx mega-linter-runner --path .automation/test/sample_project_fixes/ --fix Any ideas why it might behave differently in the test? |
markdownlint doesn't use capital letters in its name: https://github.com/DavidAnson/markdownlint
Proposed Changes
Replace
markdownlint-cli
withmarkdownlint-cli2
.Motivation: MegaLinter doesn't currently play nice with directory-specific markdownlint configuration files. Using
markdownlint-cli2
in place ofmarkdownlint-cli
will fix this.Advantages:
The markdownlint VS Code extension is powered by
markdownlint-cli2
, so everything should just work without special configuration when using the extension in conjunction with MegaLinter.Additional information: https://dlaa.me/blog/post/markdownlintcli2
Readiness Checklist
Author/Contributor
Reviewing Maintainer
breaking
if this is a large fundamental changeautomation
,bug
,documentation
,enhancement
,infrastructure
, orperformance