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

Add support for disabling blocks, implements #124 #126

Merged

Conversation

MasonM
Copy link
Contributor

@MasonM MasonM commented Oct 19, 2020

As requested in #124, this augments the existing editorconfig-checker-disable-line functionality to allow disabling checks for a block of code by adding a comment with editorconfig-checker-disable. Checks can be re-enabled with a comment containing editorconfig-checker-enable. This is very similar to how ESLint facilitates excludes: https://eslint.org/docs/user-guide/configuring#disabling-rules-with-inline-comments

Note that this functionality basically renders editorconfig-checker-disable-file redundant, because you can accomplish the same thing by adding editorconfig-checker-disable to the top of the file. I wasn't sure if editorconfig-checker-disable-file should be preserved or not, so I didn't touch it.

closes #124

This augments the existing "editorconfig-checker-disable-line"
functionality to allow disabling checks for a block of code by adding a
comment with "editorconfig-checker-disable". Checks can be re-enabled
with a comment containing "editorconfig-checker-enable". Ths is very
similar to how ESLint facilitates excludes:
https://eslint.org/docs/user-guide/configuring#disabling-rules-with-inline-comments
@MasonM
Copy link
Contributor Author

MasonM commented Oct 19, 2020

Added CHANGELOG.md entry in e407760

@mstruebing mstruebing merged commit aeead29 into editorconfig-checker:master Oct 20, 2020
@andrewvaughan
Copy link

Y'all rock.

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 this pull request may close these issues.

Allow disabling blocks of files
3 participants