-
Notifications
You must be signed in to change notification settings - Fork 178
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
Have linters opt in to lint on change #282
Comments
👍 sounds good to me |
Lint on change should be off, and linters should be given the real file path instead of a copy. That makes linter more compatible with fancier linters and also makes it easier to avoid janky UI. I could imagine v2 implementing the above, but not even supporting lint on change at all (at least for the first version). That will make things simpler given all the churn happening with the API. If lint on change is popular enough, we could add it again afterwards, but I think allowing it to regress when we change the default is fine and we could end up with a simpler to maintain system. What do you think? |
@dmnd, what would you think about v2 api offering a bi-directional relationship. The current linter architecture is more of a request based architecture. We say, hey llinter, do you have any errors for this file, and it replies. In I think there is a benefit to having both styles. For this request I'd say any linter that wanted to operate as a build style linter would require in the lint error management service we would provide and just push errors to us. |
The push based stuff sounds awesome! But I don't think it's necessarily coupled to updating the current linter to use the services API and opting in to (or deprecating) lint on change. Is there a good reason to implement all that in one go? |
By the way, I don't have a lot of time so spend on linter at the moment, so if you think talking things through with me is or will slow you down, feel free to forge ahead 😄 |
Lint on change is a neat feature, but it makes it necessary for us to copy files to a temporary location before linting. This means fancier linters like
pylint
orflow
can't import relative files (see #213 and AtomLinter/linter-pylint#23).It also causes some UI issues where lint messages are distracting because they constantly get added and removed from the document (see #136).
We could ask linters to opt in to lint on change. Then linters like
pylint
can decide not to support it if they want.A further option could be to change the default setting for "lint on change" to disabled.
The text was updated successfully, but these errors were encountered: