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 :enabled property to syntax checkers #1089
Labels
Comments
yes, I'll take this one, great opportunity to dig dipper into flycheck. |
|
@Simplify It runs every time. |
Simplify
added a commit
that referenced
this issue
Sep 20, 2016
Simplify
added a commit
that referenced
this issue
Sep 20, 2016
Simplify
added a commit
that referenced
this issue
Sep 20, 2016
Simplify
added a commit
that referenced
this issue
Sep 24, 2016
Simplify
added a commit
that referenced
this issue
Sep 24, 2016
Simplify
added a commit
that referenced
this issue
Sep 24, 2016
Simplify
added a commit
that referenced
this issue
Sep 24, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add a new
:enabled FUNCTION
property to syntax checkers which behaves like:predicate
except that it's only called the first time a syntax checker is to be used in a buffer. If the function returns a non-nil value the checker is put in a whitelist (i.e. a buffer-local variable) to prevent further invocations of:enabled
, and if it returns nil it's put intoflycheck-disabled-checkers
to prevent any further use of it.This function would allow for more expensive checks whether a syntax checker is available.
Follow up of a Gitter discussion and #1085.
The text was updated successfully, but these errors were encountered: