SublimeLinter / SublimeLinter-rubocop

SublimeLinter 3 plugin for Ruby, using rubocop.
MIT License
159 stars 40 forks source link

SublimeLinter-rubocop Fails to Find Rubocop #63

Closed mzagaja closed 5 years ago

mzagaja commented 5 years ago

Trying to debug using SublimeLinter-rubocop using MacOS Mojave. Sublime Text Build 3176 SublimeLinter 4.9.4 SublimeLinter-rubocop 2.2.0

Configuration:

// SublimeLinter Settings - User
{
  "debug": true,
  "linters": {
    // The name of the linter you installed
    "rubocop": {
        "executable": "/Users/mzagaja/.rvm/rubies/ruby-2.5.3/bin/ruby"
    }
  },
  "paths": {
      "linux": [],
      "osx": ["/Users/mzagaja/.rvm/gems/ruby-2.5.3/bin"],
      "windows": []
  },
}

Debug Output

SublimeLinter: #23 linter.py:948      rubocop: linting 'seeds.rb'
SublimeLinter: #23 linter.py:740      rubocop: wanted executable is '/Users/mzagaja/.rvm/rubies/ruby-2.5.3/bin/ruby'
SublimeLinter: #23 linter.py:1363     Running ...

  /Users/mzagaja/Developer/digitalhub  (working dir)
  $ cat vendor/extensions/events/db/seeds.rb | /Users/mzagaja/.rvm/rubies/ruby-2.5.3/bin/ruby -S rubocop --format emacs --force-exclusion --stdin /Users/mzagaja/Developer/digitalhub/vendor/extensions/events/db/seeds.rb

SublimeLinter: #23 linter.py:639      WARNING: rubocop output:
/Users/mzagaja/.rvm/rubies/ruby-2.5.3/bin/ruby: No such file or directory -- rubocop (LoadError)

SublimeLinter: #23 linter.py:641      Note: above warning will become an error in the future. Implement `on_stderr` if you think this is wrong.
SublimeLinter: #23 linter.py:1021     rubocop: no output
SublimeLinter: sublime_linter.py:449  Linting 'seeds.rb' took 0.20s

It seems to be ignoring the configuration option where I set the path to include the rvm folder. Or lacks awareness of it.

mzagaja commented 5 years ago

Tried

// SublimeLinter Settings - User
{
  "debug": true,
  "linters": {
    // The name of the linter you installed
    "rubocop": {
        "executable": "/Users/mzagaja/.rvm/rubies/ruby-2.5.3/bin/ruby",
        "env": {"PATH":"/Users/mzagaja/.rvm/gems/ruby-2.5.3/bin"}
    }
  },
  "paths": {
      "linux": [],
      "osx": ["/Users/mzagaja/.rvm/gems/ruby-2.5.3/bin"],
      "windows": []
  },
}

And it gives:

SublimeLinter: #60 linter.py:740      rubocop: wanted executable is '/Users/mzagaja/.rvm/rubies/ruby-2.5.3/bin/ruby'
SublimeLinter: #60 linter.py:1363     Running ...

  /Users/mzagaja/Developer/digitalhub  (working dir)
  $ cat app/decorators/controllers/refinery/pages_controller_decorator.rb | /Users/mzagaja/.rvm/rubies/ruby-2.5.3/bin/ruby -S rubocop --format emacs --force-exclusion --stdin /Users/mzagaja/Developer/digitalhub/app/decorators/controllers/refinery/pages_controller_decorator.rb

SublimeLinter: #60 linter.py:639      WARNING: rubocop output:
/Users/mzagaja/.rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem rubocop (>= 0.a) with executable rubocop (Gem::GemNotFoundException)
    from /Users/mzagaja/.rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/rubygems.rb:308:in `activate_bin_path'
    from /Users/mzagaja/.rvm/gems/ruby-2.5.3/bin/rubocop:23:in `<main>'

Inside my regular shell I can call rubocop without issues and can confirm the gem is installed. Not sure why its looking in 2.5.0 however. I did not tell it to look there.

mzagaja commented 5 years ago

Will not I typically use fish shell. Switching to bash changes the error issue:

/Users/mzagaja/Developer/ctnj-legislation  (working dir)
  $ cat app/helpers/bills_helper.rb | /Users/mzagaja/.rvm/bin/rvm-auto-ruby -S rubocop --format emacs --force-exclusion --stdin /Users/mzagaja/Developer/ctnj-legislation/app/helpers/bills_helper.rb

SublimeLinter: #2 linter.py:639       WARNING: rubocop output:
env: bash: No such file or directory
mzagaja commented 5 years ago

https://github.com/SublimeLinter/SublimeLinter/issues/1479#issuecomment-412841204 helped me set an updated configuration but sublimelinter-rubocop complained I lacked the "correct" version of the gem. This was remedied with a simple gem install rubocop -v 0.63.1. Now we find rubocop which is great.

kaste commented 5 years ago

@mzagaja Now that was a fun journey 😁

So the solution is basically to explicitly tell it to use rvm-auto-ruby (via executable) but then to also configure the GEM_PATH manually (using the env setting)? Now, what does the 'auto' in 'rvm-auto-ruby' actually mean?

You now edited your last post so I'm confused: Does it work, or do we need to transform the absolute path we use after '--stdin' into a relative one (probably rel to the working dir)?

Have you seen https://github.com/SublimeLinter/SublimeLinter/pull/1509?

mzagaja commented 5 years ago

The post edit was because the initial try of my fix failed due to user error (I set an incorrect PATH in the config). Your summary of the fix is correct, set those two key values explicitly and things are working. I had to edit the previous post because I complained it failed and realized I had just set one of the path values wrong in the config. It was a typo 🤦‍♂️.

rvm-auto-ruby is enumerated at https://github.com/rvm/rvm/blob/master/bin/rvm-auto-ruby and seems to be responsible for using configuration files that might exist in various places to select which version of ruby to execute.

No need to transform the absolute path, we're rocking and rolling with the configuration update and the current version of this.

I will try and take a look at the issue you link later today and see if it provides a remedy. While it's great we can change a user configuration and get a working application, I imagine beyond documenting this fix we will want to spark joy by having this work without any intervention if we are able to.

kaste commented 5 years ago

Maybe it's better to use 'rvm exec' here? In case you try 1509, for testing it is important to have multiple projects at hand which use different rubies and to have them open at once. Otherwise we never know if it auto selects the correct ruby dynamically, or if it just preselects one ruby at startup. (Basically, does it use the (OS) working dir when starting Sublime, or does it use the (project) folder within Sublime.)

mzagaja commented 5 years ago

Updated to Sublime Text 3.2 today and rubocop seems to be working now without any special configuration, but it does claim an error in the status bar at the bottom of the app. Debug output:

SublimeLinter: #37 linter.py:639      WARNING: rubocop output:
Warning: Style/IfUnlessModifier does not support Metrics/LineLength parameter.

Supported parameters are:

  - Enabled

SublimeLinter: #37 linter.py:641      Note: above warning will become an error in the future. Implement `on_stderr` if you think this is wrong.
SublimeLinter: #37 linter.py:1027     rubocop: output:
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:1:1: C: Style/FrozenStringLiteralComment: Missing magic comment `# frozen_string_literal: true`.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:3:81: C: Metrics/LineLength: Line is too long. [81/80]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:8:81: C: Metrics/LineLength: Line is too long. [86/80]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:11:81: C: Metrics/LineLength: Line is too long. [86/80]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:13:1: C: Metrics/BlockLength: Block has too many lines. [236/25]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:13:38: C: Style/NumericLiterals: Use underscores(_) as thousands separator and separate every 3 digits with them.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:14:1: C: Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body beginning.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:16:20: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:18:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:19:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:20:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:21:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:22:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:23:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:24:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:24:32: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:25:13: C: Style/WordArray: Use `%w` or `%W` for an array of words.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:25:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:25:29: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:25:42: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:25:50: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:25:68: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:25:81: C: Metrics/LineLength: Line is too long. [126/80]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:28:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:29:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:30:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:31:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:32:12: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:33:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:34:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:35:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:36:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:36:28: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:39:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:40:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:41:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:42:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:43:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:43:28: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:46:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:47:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:48:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:49:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:50:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:51:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:52:13: C: Style/WordArray: Use `%w` or `%W` for an array of words.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:52:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:52:29: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:52:36: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:52:52: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:52:81: C: Metrics/LineLength: Line is too long. [119/80]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:55:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:56:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:57:12: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:58:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:59:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:60:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:61:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:62:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:62:31: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:62:81: C: Metrics/LineLength: Line is too long. [82/80]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:63:13: C: Style/WordArray: Use `%w` or `%W` for an array of words.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:63:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:63:42: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:63:59: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:63:81: C: Metrics/LineLength: Line is too long. [120/80]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:66:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:67:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:68:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:69:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:70:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:71:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:74:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:74:81: C: Metrics/LineLength: Line is too long. [90/80]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:75:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:78:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:78:81: C: Metrics/LineLength: Line is too long. [94/80]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:79:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:80:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:81:13: C: Style/WordArray: Use `%w` or `%W` for an array of words.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:81:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:81:25: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:81:43: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:82:13: C: Style/WordArray: Use `%w` or `%W` for an array of words.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:82:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:82:25: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:82:43: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:85:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:85:81: C: Metrics/LineLength: Line is too long. [97/80]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:86:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:87:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:88:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:89:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:89:29: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:89:81: C: Metrics/LineLength: Line is too long. [87/80]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:90:13: C: Style/WordArray: Use `%w` or `%W` for an array of words.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:90:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:90:25: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:90:40: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:90:81: C: Metrics/LineLength: Line is too long. [89/80]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:93:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:93:81: C: Metrics/LineLength: Line is too long. [90/80]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:94:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:95:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:96:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:97:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:98:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:99:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:100:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:101:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:102:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:103:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:104:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:105:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:106:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:107:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:108:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:109:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:109:27: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:110:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:110:29: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:113:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:114:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:115:12: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:116:12: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:117:12: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:118:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:119:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:120:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:121:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:122:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:122:31: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:123:13: C: Style/WordArray: Use `%w` or `%W` for an array of words.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:123:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:123:35: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:123:52: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:123:81: C: Metrics/LineLength: Line is too long. [113/80]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:126:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:127:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:128:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:129:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:130:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:131:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:132:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:133:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:134:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:135:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:136:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:137:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:138:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:139:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:142:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:142:81: C: Metrics/LineLength: Line is too long. [81/80]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:143:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:144:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:145:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:146:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:147:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:148:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:149:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:149:31: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:150:13: C: Style/WordArray: Use `%w` or `%W` for an array of words.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:150:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:150:35: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:150:52: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:150:81: C: Metrics/LineLength: Line is too long. [113/80]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:153:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:154:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:155:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:156:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:157:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:158:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:159:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:160:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:161:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:162:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:165:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:165:81: C: Metrics/LineLength: Line is too long. [85/80]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:166:12: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:167:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:168:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:169:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:170:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:171:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:171:31: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:172:13: C: Style/WordArray: Use `%w` or `%W` for an array of words.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:172:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:172:39: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:172:56: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:172:81: C: Metrics/LineLength: Line is too long. [117/80]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:175:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:176:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:177:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:178:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:179:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:180:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:181:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:182:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:182:27: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:183:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:183:41: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:183:81: C: Metrics/LineLength: Line is too long. [87/80]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:186:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:187:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:188:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:189:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:190:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:191:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:192:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:193:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:194:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:195:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:195:31: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:196:13: C: Style/WordArray: Use `%w` or `%W` for an array of words.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:196:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:196:34: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:196:51: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:196:81: C: Metrics/LineLength: Line is too long. [121/80]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:199:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:200:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:201:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:202:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:203:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:204:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:205:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:206:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:207:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:208:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:209:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:210:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:211:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:212:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:213:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:214:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:215:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:216:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:217:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:218:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:218:30: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:219:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:219:27: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:220:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:220:28: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:221:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:221:34: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:222:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:222:28: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:225:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:225:81: C: Metrics/LineLength: Line is too long. [84/80]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:226:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:227:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:228:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:229:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:230:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:231:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:231:31: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:232:13: C: Style/WordArray: Use `%w` or `%W` for an array of words.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:232:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:232:38: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:232:55: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:232:81: C: Metrics/LineLength: Line is too long. [116/80]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:235:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:236:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:237:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:238:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:239:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:240:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:241:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:242:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:245:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:246:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:247:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:248:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:249:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:250:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:251:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:252:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:255:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:256:12: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:257:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:258:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:259:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:260:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:261:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:261:31: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:262:13: C: Style/WordArray: Use `%w` or `%W` for an array of words.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:262:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:262:35: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:262:52: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:262:81: C: Metrics/LineLength: Line is too long. [113/80]
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:265:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:266:15: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:267:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:268:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:269:12: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:270:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:271:16: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:272:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:272:27: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:273:13: C: Style/WordArray: Use `%w` or `%W` for an array of words.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:273:14: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:273:29: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:273:53: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  /Users/mzagaja/Developer/digitalhub/db/schema.rb:275:1: C: Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body end.
SublimeLinter: sublime_linter.py:449  Linting 'schema.rb' took 1.77s

Current state of config:

// // // SublimeLinter Settings - User
{
  "debug": true,
//   "linters": {
//     // The name of the linter you installed
//     "rubocop": {
//         "executable": "/Users/mzagaja/.rvm/rubies/ruby-2.5.3/bin/ruby",
//         "env": {"PATH":"/Users/mzagaja/.rvm/gems/ruby-2.5.3/bin"}
//     }
//   },
//   "paths": {
//       "linux": [],
//       "osx": ["/Users/mzagaja/.rvm/gems/ruby-2.5.3/bin"],
//       "windows": []
//   },
}

(basically just enabled debug)

Putting https://github.com/SublimeLinter/SublimeLinter/pull/1509 into my user folder had no impact on this issue with Sublime Text 3.2. However I did notice it will proactively update my environment:

<> Finished in 0.85s
<> Environment will change!
-> Added:
PWD=/Applications/Sublime Text.app/Contents/MacOS
SHLVL=1
-> Changed:
PATH=/usr/local/bin:/usr/local/Cellar/python@2/2.7.16/bin:/Users/mzagaja/.rvm/gems/ruby-2.5.3/bin:/Users/mzagaja/.rvm/gems/ruby-2.5.3@global/bin:/Users/mzagaja/.rvm/rubies/ruby-2.5.3/bin:/Users/mzagaja/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:.:/Users/mzagaja/google-cloud-sdk/bin:.
    |/Users/mzagaja/google-cloud-sdk/bin:/usr/local/bin:/usr/local/Cellar/python@2/2.7.16/bin:/Users/mzagaja/.rvm/gems/ruby-2.5.3/bin:/Users/mzagaja/.rvm/gems/ruby-2.5.3@global/bin:/Users/mzagaja/.rvm/rubies/ruby-2.5.3/bin:/Users/mzagaja/.rvm/bin:/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:. (previous value)

So I think this gem might need a small update so the status bar knows it is not actually erroring? Otherwise Sublime Text 3.2 may have surmounted the environment issues.

kaste commented 5 years ago

The status bar indicated an error bc of the configuration warning rubocop prints

Warning: Style/IfUnlessModifier does not support Metrics/LineLength parameter.

Supported parameters are:

  - Enabled

I close this bc it looks okay and working otherwise.

dkassen commented 5 years ago

I use RVM. Without editing anything to do with rubocop or sublimelinter in any other settings files, this is my SublimeLinter.sublime-settings file in its entirety:

// SublimeLinter Settings - User
{
    "linters": {
        "rubocop": {
            "executable": "/Users/<username>/.rvm/gems/ruby-<ruby-version>/wrappers/rubocop"
        }
    }
}

Not sure what wrappers are in this context, but this works without issue; no weird warning logs or anything.

Happy linting!

dkassen commented 5 years ago

@cashins, @beccles

joshuapinter commented 4 years ago

I use RVM. Without editing anything to do with rubocop or sublimelinter in any other settings files, this is my SublimeLinter.sublime-settings file in its entirety:

// SublimeLinter Settings - User
{
    "linters": {
        "rubocop": {
            "executable": "/Users/<username>/.rvm/gems/ruby-<ruby-version>/wrappers/rubocop"
        }
    }
}

Not sure what wrappers are in this context, but this works without issue; no weird warning logs or anything.

Happy linting!

Thanks for this. I use rbenv so mine was "executable": "/Users/me/.rbenv/shims/rubocop".

pdobb commented 4 years ago

In case anyone finds this... The fix for me was to just make sure I open Sublime from the terminal. e.g. subl . from my project root.

No special settings were needed in the end. I'm using Ruby 2.6.6, Sublime Text 3.2.2, rubygems 3.1.2, and chruby 0.3.9.

"rubocop": {
  "excludes": ["**/*.js.erb"],
  "args": ["--config", ".rubocop.local.yml"]
}
mroliveira7 commented 2 years ago

Check if your executable is working in terminal: rubocop any_file.rb If it is, try to locate where your executalbe is with whereis like whereis rubocop For some reason my executable were in /usr/local/bin/rubocop And now my config looks like this

{
  "linters": {
    "rubocop": {
        "executable": "/usr/local/bin/rubocop"
    }
  }
}

Now its working for me