Open afdev82 opened 3 years ago
I tried the workaround and it worked once again.
But it's an open issue that shows up every time I regenerate the rubocop_todo.yml
file with the command:
rubocop --auto-gen-config --exclude-limit 30
I have always to remember to add the requires that are needed for erblint and not rubocop. Is there any possible definitive solution for that?
Thank you!
Do you still see this error?
I'm also seeing issue this issue
Do you have any Rails
or Performance
cops in your configuration? By default erb-lint doesn't, so I don't see why this is an issue on erb-lint.
I didn't get your question, which configuration are you referring to?
It's an issue with erb-lint, because if I use rubocop and I run rubocop --auto-gen-config --exclude-limit 30
everything is fine.
If I run erb-lint, with the same rubocop_todo.yml
file I get the error in the first post.
If I require the plugins also in the rubocop_todo.yml
file the error is gone, but it's a workaround only needed for erblint.
Others in this issue probably have explained better than me: https://github.com/openstreetmap/openstreetmap-website/issues/2472#issuecomment-568255229
Ahhh. Now I get the problem. Thank you. We also have it in our app too. It is in my todo list to fix for a while. If you know the fix, I'd totally merge a PR.
If you know the fix, I'd totally merge a PR.
Unfortunately I don't know how to fix it :see_no_evil:
I get a similar error of issue #155 (obsolete configuration found):
I don't have this error in another Rails project, with same versions of the following gems:
This is my
erb-lint.yml
(it's the same in the other project):And this is my
rubocop.yml
(in the other project it's slightly different, because of different Exclude paths and some rules):Any help will be much appreciated, thank you!