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

[Feature request] Disable auto correct on save for a specific rule? #1288

Closed
o-l-a-v opened this issue Jul 9, 2024 · 4 comments
Closed

[Feature request] Disable auto correct on save for a specific rule? #1288

o-l-a-v opened this issue Jul 9, 2024 · 4 comments

Comments

@o-l-a-v
Copy link

o-l-a-v commented Jul 9, 2024

Note

This is about using the extension in VSCode with "default": true in settings.json.

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?

  • If yes: Sorry for creating this issue, I could not find out how from a brief search.
  • If no: I request this feature.
@DavidAnson
Copy link
Owner

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
Copy link
Author

o-l-a-v commented 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
Copy link
Owner

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
Copy link
Author

o-l-a-v commented Jul 11, 2024

Ah, ok. That's even better! Will try it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants