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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pre-commit hook for markdownlint #41

Merged
merged 1 commit into from
Jul 10, 2023
Merged

Fix pre-commit hook for markdownlint #41

merged 1 commit into from
Jul 10, 2023

Conversation

alexdewar
Copy link
Contributor

Unfortunately it seems that this hook has been broken since it was introduced. The problem is that when disabling rules you need an extra "--" at the end of the list. See: https://github.com/igorshubovych/markdownlint-cli

Frustratingly, passing malformed arguments to markdownlint-cli means that the hook always passes (!). Upstream issue: igorshubovych/markdownlint-cli#409

I re-ran the hook on this repo, though, and there were no issues with the markdown.

Tagging everyone as a PSA 馃槃

Unfortunately it seems that this hook has been broken since it was
introduced. The problem is that when disabling rules you need an extra
"--" at the end of the list. See: https://github.com/igorshubovych/markdownlint-cli

Frustratingly, passing malformed arguments to markdownlint-cli means
that the hook always passes (!). Upstream issue: igorshubovych/markdownlint-cli#409

I re-ran the hook on this repo, though, and there were no issues with
the markdown.
Copy link
Contributor

@dalonsoa dalonsoa left a comment

Choose a reason for hiding this comment

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

LGTM

@alexdewar alexdewar merged commit 7ac68b0 into main Jul 10, 2023
10 checks passed
@alexdewar alexdewar deleted the fix_markdownlint branch July 10, 2023 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants