SublimeLinter / SublimeLinter-rubocop

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

--stdin requires exactly one path #64

Closed giann closed 5 years ago

giann commented 5 years ago

I get the following error (note that I don't have a .rubocop.yml):

-s/--stdin requires exactly one path, relative to the root of the project. RuboCop will use this path to determine which cops are enabled (via eg. Include/Exclude), and so that certain cops like Naming/FileName can be checked.

kaste commented 5 years ago

Hi @giann! You could give PR #55 a try!

kaste commented 5 years ago

Closing due to lack of interaction. A new version of this plugin has shipped right now anyway.

Please reopen if you want to.

nrogap commented 4 years ago

I think this one occurs when your file name and class name don't equal. Example app/models/design.rb Class DesignAja < ApplicationRecord end As you see, DesignAja is not equal design.rb We must fix it to Class Design < ApplicationRecord