-
-
Notifications
You must be signed in to change notification settings - Fork 272
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 to set maximum line or file size #1882
Comments
Hi! There is something to it but a file size check is so arbitrary ... There is just no default you can justify. As soon as you hit it, a file magically (because you sure forget about this) does not get linted. And otherwise linters are different, sure some linters can handle big files. Did you need to edit that file? From what I would expect is that closing the view will or should abort the lint process. The process runs in the background anyway so I assume Sublime Text does not block here (at least it should not freeze) so just closing the view is an option. If you need to edit that file, then maybe you should just exclude the file or view from rubocop. There are plenty ways to do this. I can imagine that a trivial add-on like
would do the trick. (Or the newer setting Sure you forget such an automatic thing so maybe a key binding or a command for the Command Palette. Something among:
🤔 |
Hi @kaste, thanks for your response! The plugin approach looks interesting, I'll give it a try later. I agree with file size is not a really handy metric and that disabling isn't always desired. A global setting for sure wouldn't be optimal as not every language/linter is as hungry as rubocop. To answer your question, no I didn't edit it, I just had to look a few details up. Anyway, it is not that a big issue and I just wanted to know if I missed a setting. For me it's fine if you decide to close this. Again thanks for your feedback! |
So it's still running 🤣 |
Hi there,
first of all thanks for SublimeLinter, really helpful plugin!
Today I worked with a >50k lines and over nearly 3MB huge file (better don't ask..) and noticed that rubocop was eating really much CPU (although I reeally didn't want to touch that file at all ;-)).
I didn't find an option to limit the maximum file/line size for the linters. Is there one?
Otherwise I'd like to bring this up as feature idea.
Cheers!
The text was updated successfully, but these errors were encountered: