Skip to content
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

nonspec: add instructions for checking markdown formatting #1096

Merged
merged 2 commits into from
Jul 15, 2024

Conversation

TomHennen
Copy link
Contributor

Add instructions for checking markdown formatting using markdownlint-cli2.

I got tired of getting errors after sending and updating PRs but didn't know how to run the style checker locally. Once I figured it out I suspected other folks might have a similar problem.

I got tired of getting errors after sending and updating PRs
but didn't know how to run the style checker locally. Once
I figured it out I suspected other folks might have a
similar problem.

Signed-off-by: Tom Hennen <[email protected]>
Copy link

netlify bot commented Jul 12, 2024

Deploy Preview for slsa canceled.

Name Link
🔨 Latest commit 93462da
🔍 Latest deploy log https://app.netlify.com/sites/slsa/deploys/669163a151a07f0008690933

@TomHennen TomHennen marked this pull request as ready for review July 12, 2024 15:55
@TomHennen TomHennen requested a review from a team July 12, 2024 15:57
Copy link
Member

@joshuagl joshuagl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this!

CONTRIBUTING.md Outdated
@@ -57,6 +57,25 @@ style, as encoded in our [markdownlint configuration](.markdownlint.yaml). In
addition we prefer to keep our Markdown documents wrapped at 80 columns (though
this is not currently enforced).

To check (and fix) style problems before sending a PR you can install
and run [markdownlint-cli2](https://github.com/DavidAnson/markdownlint-cli2).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I haven't played with this (I typically just run the same command as the GHA workflow: npm run lint && ./lint.sh

Do you know if this CLI uses our .markdownlint.yaml and .markdownlintignore ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You know, I didn't:

  1. Know exactly how it worked already.
  2. Know that it supported fixing via format.
  3. Know how to get it working.

It looks like markdownlint-cli2 does support .markdownlint.yaml, but the .markdownlintignore is 'different' and the compatibility isn't quite right.

So I figured out how to use the same tooling as the workflow.

Copy link
Member

@lehors lehors left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@joshuagl joshuagl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@joshuagl joshuagl merged commit a7a5084 into slsa-framework:main Jul 15, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants