pderichs / sublime_rubocop

A Sublime Text RuboCop plugin.
238 stars 41 forks source link

It seems 'exclude' doesn't work #28

Open AlexKlim opened 9 years ago

AlexKlim commented 9 years ago

Hello.

I've created .rubocop.yml :

AllCops:
  Exclude:
    - 'db/schema.rb'
    - 'bin/**/*'
    - 'config/initializers/devise.rb'
    - 'config/initializers/simple_form*'
    - 'db/migrate/*'

But in my migration I see error:

Method has too many lines.

How can I fix it ?

pderichs commented 9 years ago

I am not sure what you mean with "migration", but your problem might be related to #25

But the described problem is only related to the per file checks in the plugin - if you use "RuboCop: Check current project" you should be fine.

AlexKlim commented 9 years ago

Yep, you're right. The problem related to https://github.com/pderichs/sublime_rubocop/issues/25

If rubocop is called with a single file, it ignores the .rubocop.yml.