mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 09:16:02 +03:00
[GH-ISSUE #1288] [Feature request] Disable auto correct on save for a specific rule? #657
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#657
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @o-l-a-v on GitHub (Jul 9, 2024).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1288
Example rule MD044 "Proper names should have the correct capitalization".
Is it possible to tell Markdownlint to not perform any auto correct on save for one specific rule? Rather than
"MD044": false?@DavidAnson commented on GitHub (Jul 10, 2024):
If you have enabled formatOnSave for this extension in VS Code, it will apply fixes for all fixable rules with violations. If you disable a rule via configuration, the extension will not report or fix violations of that rule.
Can you please explain why you want to apply fixes but not for just this one rule?
https://github.com/DavidAnson/vscode-markdownlint?tab=readme-ov-file#fix
@o-l-a-v commented on GitHub (Jul 10, 2024):
I'd like this rule to only highlight things. Example, ".NET" is usually capitalized, but not always: https://www.nuget.org/packages/JsonSchema.Net.
Instead of disabling checking for ".NET" it'd be useful with the ability to only highlight/warn.
@DavidAnson commented on GitHub (Jul 10, 2024):
Your scenario is supported today by providing the alternate capitalization for the longer form as shown at the bottom of this sample: https://github.com/DavidAnson/markdownlint/blob/main/test/proper-names-projects.md?plain=1
@o-l-a-v commented on GitHub (Jul 11, 2024):
Ah, ok. That's even better! Will try it out.