-
Notifications
You must be signed in to change notification settings - Fork 0
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
Allow per-rule ignores #109
Comments
|
I don't really consider this to be fixed, only mitigated. I'm going to work on implementing this functionality in a fork. |
Adding third mechanism to filter files will complicate things. For example, which mechanism should take precedence and how will they interplay? This could've been solved using separate command for each locale as well: "lint:md" : "lint-zh-cn:md; lint-es:md; lint-ru:md ...",
"lint-zh-cn:md": "markdownlint-cli2 --config zh-cn.markdonwlint.config docs/zh-cn/*.md files/zh-cn/**/*.md"
"lint-es:md": "markdownlint-cli2 --config es.markdonwlint.config docs/es/*.md files/es/**/*.md" |
When applying the formatting rules of mdn/content to mdn/translated-content, we ran into a slight issue regarding smart (curly) quotes with the Chinese locale. Apparently, it is grammatically accurate to use smart quotes in place of normal quotes, so the rule to search and replace smart quotes causes localization issues.
It would be great to see a
filter
option added, which is an object containing optionalinclude
andexclude
properties, which are either a string or array of strings containing file globs for that rule to apply to or ignore. For example:The text was updated successfully, but these errors were encountered: