-
Notifications
You must be signed in to change notification settings - Fork 115
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
setup markdownlint #1382
setup markdownlint #1382
Conversation
🎊 PR Preview has been successfully built and deployed to https://localstack-docs-preview-pr-1382.surge.sh 🎊 |
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.
It would be great if you could add a description to the PR such that reviewers can get an insight of what you want to accomplish with the changes here.
@alexrashed — I was in the process of writing that :) I hope the current description gives an idea of what we are looking to accomplish. |
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.
Awesome! Thanks for the detailed explanation! Automation / linting around our best practices has often proven to be very effective and helpful!
In other repositories we use pre-commit (there is an offical one for markdownlint), which helps contributors to get notified on issues in their files right when they commit the changes locally.
It would also be great if you could fix the last remaining issues in the code, if there's a lot we could also try to get codeowners on board?
And another tip on the side (which I think won't be necessary for this changeset): If you want to protect the Git history / blame views from being polluted by formatter changes, you can use .git-blame-ignore-revs
to ignore specific commits (later on). However, for that you would have to separate the configuration of the linting tools from the actual formatting...
Thank You @alexrashed for the feedback — I'll setup the pre-commit hook and revisit the .git-blame-ignore-revs later on 👍 |
fe65011
to
dbd95b0
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.
@HarshCasper: just as an FYI - all the coverage files are auto-generated (by the Update Parity Docs
workflow) - I think we should either make sure that the workflow runs the format as well, or adapt the template for the file creation :)
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 will adapt the workflow to run the format as well 👍
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 didn't go through all 336 changed files of course, but the preview looks fine and the additions seem fine as well.
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 jumping on it. I've gone through my services. LGTM 🚀
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 recommend also verifying all changes yourself because not all pages have owners.
# endpoint url | ||
|
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.
Changes in this file are invalid
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 work! I think having this formatting in place will make things moving forward. 🚀
My only remarks left:
- please add a note to the README regarding the pre-commit hook
- please make sure that the workflow for updating parity docs still work - either trigger the workflow (against this branch), or after we merged this. Only want to make sure everything runs smoothly 🙂
Co-authored-by: Viren Nadkarni <[email protected]>
Co-authored-by: Viren Nadkarni <[email protected]>
Co-authored-by: Viren Nadkarni <[email protected]>
c9f7969
to
8ee5a86
Compare
Introduction
This PR introduces configuration files for
markdownlint
1 and the relatedmarkdownlint-cli2
2. Additionally, we have introduced the custom Markdownlint rulemax-one-sentence-per-line
3 to ensure that we adher to one-sentence-per-line rule going forward.Ignored Rules
As part of this exercise, we opted to ignore a few rules, in the interest of time and effort. They are:
We hope to progressively fix them over the time but they are not the current priority.
GitHub Action
This PR also introduces a GitHub Action 4 that runs only on changed files every pull request.
Pre-Commit Hook
This PR also introduces a Pre-commit hook to run the lint process locally to reduce the feedback cycle.
Next Steps
Service owners should review the docs that they own and report to us if Markdownlint has inadvertently made unexpected changes.