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

Setting for Documents never to lint #46

Closed
chrisgrieser opened this issue Sep 14, 2021 · 1 comment · Fixed by #49
Closed

Setting for Documents never to lint #46

chrisgrieser opened this issue Sep 14, 2021 · 1 comment · Fixed by #49

Comments

@chrisgrieser
Copy link
Contributor

Especially when using the "lint on save" setting, it is easily to accidentally lint a document that is not meant to be linted (e.g. templates or templater scripts, which annoyingly are still saved as .md ...).

May be setting to never lint certain files might make sense? This would prevent accidental linting. The Filename Header Sync Plugin has pretty much implemented this for files where headings should not be synced with the filename, I assume a bigger part of that code can be re-used.

@platers
Copy link
Owner

platers commented Sep 15, 2021

Yeah, I was thinking about implementing a system like eslint for ignoring lines, files. It seems quite complicated though.

I think a YAML setting to disable all rules or only some rules would work for most cases.

@platers platers linked a pull request Sep 17, 2021 that will close this issue
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 a pull request may close this issue.

2 participants