Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

prefer_standard no longer working #6

@jmanian

Description

@jmanian

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions