-
Notifications
You must be signed in to change notification settings - Fork 96
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 linting for markdown files #883
Conversation
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.
Thanks for adding this!
I left a comment about markdown-cli
vs markdown-cli2
. Also do we want the CI to autofix the problems? Or just flag them like the other linters?
If it's the latter we can add https://github.com/xt0rted/markdownlint-problem-matcher or https://github.com/marketplace/actions/markdownlint-cli2-action to the linter workflow.
Good question about autofix in the pipelines. I think we just want to flag them in the pipeline. @sjberman @pleshakov what do you think? |
As long as it's consistent, that's all that matters to me! |
@kate-osborn |
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.
🚀
7bfdc11
to
fc5c04c
Compare
Proposed changes
Problem: The markdown files in the repo were not linted.
Solution: Add markdownlint step to pre-commit. All markdown files except the .github files will be linted before every commit. Markdownlint will attempt to fix the linting errors and will report any errors it cannot fix. Linting rules are in the
.markdownlint-cli2.yaml
file in the root of the repo. For details on the linting rules, see: https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.mdTesting: Verified markdown files are linted on pre-commit.
Closes #555
Checklist
Before creating a PR, run through this checklist and mark each as complete.