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

cannot use newer version of rubocop ( 1.18, 1.19, 1.20 ) with the graphql-devise gem #195

Closed
Qchmqs opened this issue Sep 2, 2021 · 3 comments · Fixed by #197
Closed

Comments

@Qchmqs
Copy link

Qchmqs commented Sep 2, 2021

Layout/AlignHash:

Error: The Layout/AlignHash cop has been renamed to Layout/HashAlignment.

@00dav00
Copy link
Contributor

00dav00 commented Sep 3, 2021

Hi @Qchmqs , we are keeping this version of rubocop configuration to be compatible with older versions of ruby. We are planning to update it after removing support for them in V1 release. What we do is keep a different rubocop config file uncommited in our locals. Perhaps that can work you as well in the mean time.

@Qchmqs
Copy link
Author

Qchmqs commented Sep 6, 2021

hi @00dav00 , it's causing me problems when I tried to setup a linting job in CircleCi, do you know of a way to tell rubocop to ignore gem introduced lints ?

@mcelicalderon
Copy link
Member

mcelicalderon commented Sep 6, 2021

@Qchmqs I don't think the default behavior is to inherit config from gems. You can do that with https://docs.rubocop.org/rubocop/configuration.html#inheriting-configuration-from-a-dependency-gem but you shouldn't get that by default. I would advise checking your config file again. Maybe an inherited config is doing gem files inheritance

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

Successfully merging a pull request may close this issue.

3 participants