-
Notifications
You must be signed in to change notification settings - Fork 190
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
Question: is there a way to tell write-good to ignore code blocks? #63
Comments
Duplicate of #62, but I'm willing to reconsider such a feature if it's common enough. My original objection is that this feature is a slippery slope; if write-good supports markdown, why not |
@btford - I can certainly appreciate that argument! If I can get my devs to help write the code, would you be willing to consider adding it in? |
@jputrino |
I would gladly accept a PR. |
Instead of opening a new issue, just to have it closed as a duplicate, I figured I would ask on the issue that is still open and semi-relevant. Is there a way to dynamically disable / enable checks in the files themselves? This would be something that would be useful for all the folks asking for detecting code blocks and such. For instance with ShellCheck you can have preceding comment lines that have a directive similar to:
Which would disable the double quote check on the next line. With yamllint you can do things like:
which disable the rule for the next line or
Which allows you to disable for a block / till the end of the file if the enable is never added back. Having a comment disable / enable method that supports single line and block would resolve these issues for everyone and also make the tool more flexible. |
Sweet. What phenomenal timing. I'm actually here to ask basically the same request. I work with a great deal of dialog and this may help with my needs as well. Anyway, good on you and respect. I'll make do for now and perhaps touch on this later. g-out |
Hi! Tech writer here, so please excuse if there is an obvious answer that I'm just not aware of. I'm using
write-good
in a bash script to test my documentation before publishing and am getting 'failures' based on content in code blocks. I'd like to be able to tell it to skip these instead.Example:
This code block:
... causes this
write-good
result:I'm also not sure if this might be an issue with
write-good
, since the word it flags as a duplicate is on a new line.Thanks!
The text was updated successfully, but these errors were encountered: