Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
standardrb
plugin for SublimeLinter has a nifty linter setting calledprefer_standard
, that will choose to usestandardrb
orrubocop
based on the presence of a standardrb.yml file. It’s very useful when switching between trackpipe and services, and between newer standardrbised services and older ones.But it doesn’t work. It tries to get the SublimeLinter settings in a way that doesn’t seem to be supported any more:
I dug around and figured out that we can get the SublimeLinter settings like so instead:
The docs suggest that
load_settings
does some cacheing, and it doesn’t seem to affect performance at all in my testing (this whole function is run in a background thread anyway).I have no idea how Python formatting is supposed to look (ironically), so I’m mostly looking for a basic review of the Python. If it works for us I might submit a PR and try get the fix into the ST package manager.