-
-
Notifications
You must be signed in to change notification settings - Fork 254
markdownlint-cli
→ markdownlint-cli2
#1934
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
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? |
Checks are passing. Ready for review! |
About the changes in the configuration schema. What happens to existing users, their config is no longer valid? Since from what I know, the jsonschema store isn't versioned, how does existing releases play with that? I'm asking questions, but maybe they don't need to be "solved" for the PR to go through. Only understand the implications |
This pull request has been automatically marked as stale because it has not had recent activity. If you think this pull request should stay open, please remove the |
Great questions! I'm actually not sure. Perhaps this should be considered a breaking change with a note that configurations with |
Just like this, does markdownlint-cli2 support the same config and options that markdownlint-cli does? (In other words, if it were a mathematical set, the cli2 contains all of cli, plus cli2-specific elements). If so, we could just say that we substitute the binary that actually does the linting, but keep the variable names of ...-cli intact. It would be easier for the transition. Does it make sense? (Handling it like a major version change, that needs a new package name and install instructions) |
From the markdownlint-cli2 README:
The |
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