-
-
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
.spec pattern clashes with RPM spec files #4553
Comments
I can see that by default However, I suspect that the correct way to fix this would to be ignore |
RuboCop tries to make as few library specific exceptions as possible, since it is a Ruby analyzer. That said, having a Care to make a PR to have it tested? 🙂 |
New Rails 5.1 projects include a `node_modules` directory, which contains vendored code (just like the `vendor` directory) and should not be checked by rubocop.
Expected behavior
I'd expect rubocop to only parse ruby files, and ignore any files that are not ruby files.
Actual behavior
Rubocop is trying to parse ".spec" files in my project's node_modules directory, which are rpm spec files, not ruby files, and it throws an error because it cannot parse them.
Steps to reproduce the problem
I've added a sample rails app that reproduces the issue here, which has a travis build to show the issue here
To reproduce manually:
rails new --webpack=react foo
cd foo
bundle install
bundle exec rake yarn:install
rubocop
RuboCop version
The text was updated successfully, but these errors were encountered: