-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
An error occurred while IfUnlessModifier... #213
Milestone
Comments
Same error result with this environment: Configuration file: .rubocop.yml AllCops:
Includes:
- Rakefile
- config.ru
Excludes:
- db/**
- config/**
- script/**
- tmp/**
MethodLength:
Max: 30
Encoding:
Enabled: false
LineLength:
Enabled: false File: app/models/ability.rb if user.has_role? :admin
can :manage, :all
elsif user.has_role? :moderator
can :crud, User
can :dashboard, :admin
elsif user.has_role? :user
can :read, User
can :dashboard, :admin
elsif user.has_role? :guest
can :read, User
end EDIT |
@jonas054, seems to me there is some problem with the configuration defaults. Could you take a look at this? |
Yes. |
Same issue with the following config:
|
Fixed by #217. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As mentioned in the blog post about the 0.8.0 release, here's what I'm getting.
In the project (rails) root I have the file
.rubocop.yml
, where I attempt to define some behaviors:However when this file is read by rubocop I get this stack trace on every file:
Removing the file and no errors are thrown.
The text was updated successfully, but these errors were encountered: