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

It seems 'exclude' doesn't work #28

Open
AlexKlim opened this issue Mar 30, 2015 · 2 comments
Open

It seems 'exclude' doesn't work #28

AlexKlim opened this issue Mar 30, 2015 · 2 comments

Comments

@AlexKlim
Copy link

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
Copy link
Owner

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
Copy link
Author

Yep, you're right. The problem related to #25

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

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

2 participants