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

prefer_standard no longer working #6

Open
jmanian opened this issue Apr 24, 2023 · 0 comments
Open

prefer_standard no longer working #6

jmanian opened this issue Apr 24, 2023 · 0 comments

Comments

@jmanian
Copy link

jmanian commented Apr 24, 2023

I'm having trouble getting the prefer_standard option working, as documented here. I suspect something may have changed in recent versions of SublimeLinter.

The readme says to add the provided settings to the "global preferences." I wasn't sure exactly where that was supposed to be, but I think it's talking about the SublimeLinter user settings (~/Library/Application Support/Sublime Text/Packages/User/SublimeLinter.sublime-settings)

However this file expects a different format than what the readme provies (maybe this has changed in the last 4 years). So I translated the settings into this format:

// SublimeLinter Settings - User
{
  "linters": {
    "rubocop": {
      "disable": null
    },
    "standardrb": {
      "disable": null,
      "prefer_standard": true
    }
  }
}

However this settings file has validation that runs on it, and when I use "disable": null I receive this error message:

Invalid settings in 'Packages/User/SublimeLinter.sublime-settings':
'linters' > 'rubocop' > 'disable': None is not of type 'boolean'

I tried using "disable": true and "disable": false, but neither of them makes this work, instead it just follows what the disable settings dictate. I also tried omitting disable for both and doing only prefer_standard and that's the same as having both active.

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

No branches or pull requests

1 participant