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
Add markdownlint to Circle CI config #268
Add markdownlint to Circle CI config #268
Conversation
Looks like it's working: https://circleci.com/gh/open-telemetry/opentelemetry-specification/150?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link Now we need to fix all the lint errors :) |
2117e99
to
15522a7
Compare
I am personally happy to have linter enabled to ensure style consistency. Anyone else please comment what do you think? |
Good call on making the style consistent. What's the reason for using I'd prefer disabling the line length check and using soft line breaks everywhere as in #192. |
I think using the second markdownlint tool that @c24t mentioned may be better. Why disabling the line length check? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the linter.
@SergeyKanzhelev @songy23 @c24t I am fine for the moment to disable the line length check, if that unblocks enabling this, and we can revisit that. |
@songy23 you can install the plugin for VScode with the same name and I think will be easier to fix all the errors. |
Unfortunately there's no easy way to auto-fix the lint errors even with the vs code extension. See DavidAnson/vscode-markdownlint#85. As of today the only way is to go through each lint error and manually fix them one by one, and given the amount of errors that would be non-trivial. I'd suggest waiting until DavidAnson/vscode-markdownlint#85 is implemented (looks like it's on their list). |
eb26ec0
to
77832f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See songy23#1. I added a style file for myself while making edits in this repo and thought it would be useful here. This should scale more easily than adding flags to the CI command.
5816cdb
to
427cd8a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice.
Hey all! FYI, the latest version of |
Another FYI, the Node started out trying to be 100% compatible with the Ruby implementation. That has drifted slightly over time as I have added features and expanded the Node implementation. I encourage you to use whichever you find more compelling - either way you can use the |
e7b334c
to
d212a9f
Compare
It turns out, the next release of the VS Code |
d212a9f
to
332f054
Compare
Thanks @DavidAnson, I upgraded VS Code markdownlint extension to v0.31.0 and fixed most of the errors with the Approvers - most errors are fixed but there're rules that are not auto-fixable for now, so I excluded a few more rules in 332f054. PTAL. If this change looks good please disable |
As discussed we wanted to ship a v0.2 today. Let's wait with this till tomorrow to not disturb in in-flight PRs |
super cool |
@songy23 please re-apply all the fixes and I'll be happy to merge this |
332f054
to
2045aea
Compare
Rebased and fixed, PTAL @SergeyKanzhelev. |
I'll merge as soon as circleCI will report success. Would you mind also add a note to CONTRIBUTING.md on this new requirement and how to auto-fix it as a separate PR |
@SergeyKanzhelev What we can do is
I'll update CONTRIBUTING in a follow-up PR. |
@songy23 entering the god mode.... |
Thanks! |
* Add markdownlint to Circle CI config * Use markdownlint instead of markdownlint-cli * Disable line length check (MD013) * Add .mdlrc, .mdlstyle.rb * Disable ordered list item (MD029) * Use .mdlrc in circle ci scripts * Fix errors and update exclusion rules
Fixes #267.