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
Various cops crash when .rubocop.yml is missing #637
Comments
Seems the same issue as in #613 |
@Darhazer not really. I mean I don't have a rubocop config and all of it relies on the default once. In case no pattern is present, shouldn't it just ignore this file? |
@Darhazer as an update. With following config still fails (although less drastically): require: rubocop-rspec
AllCops:
Include:
- spec/**/*_spec.rb
|
Ah, I think that is the “forgotten” issue from #613 (comment)
Thanks for opening a new issue. |
@bquorning as I said - when I have a small rubocop.yml with the config as followed:
it also fails. Just less drastically (but still). Probably due to a space between let and the name: let (:a) { 1 } |
Again with reporting two bugs at the same time 😄 I’ll take a look at then both. |
|
@mensfeld Looks like all the other issues have been fixed as of |
@dgollahon any time. As I said, I run this stuff a lot for many codebases (hundreds) so always after upgrades I see many errors ;) |
Just curious, what causes you to run it for hundreds of codebases? Do you have that many projects that you oversee? Or is there some other supporting reason? |
@dgollahon I run self-hosted service for analyzing ruby repos: https://coditsu.io/ This allows me to bump single instance of rubocop-rspec (as well as other tools) and rerun many analysis for all the projects, so there is no need to have anything apart from business and specs within repositories. Makes management much easier. I've built it after years of building simple scripts and tools for exactly that job. |
@mensfeld neat 👍 |
I tried to reproduce this issue in various versions of RuboCop today, and it looks like it was fixed by rubocop/rubocop#7632 in RuboCop v0.82.0. Please re-open if you are still running into this issue. |
Steps to reproduce:
Output:
It crashes when executed following way:
The text was updated successfully, but these errors were encountered: