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

New cops warning still show up even after they have been configured #12883

Open
doudou opened this issue May 3, 2024 · 1 comment
Open

New cops warning still show up even after they have been configured #12883

doudou opened this issue May 3, 2024 · 1 comment

Comments

@doudou
Copy link

doudou commented May 3, 2024

My apologies, I tried to reduce the test case to a minimum, but couldn't manage to make it trigger with a simple repo and config ...

If I run rubocop 1.60.2 on the rubocop_new_cops branch of https://github.com/rock-core/tools-roby, the new cops (that are configured in either .rubocop.yml and .rubocop_todo.yml) are still displayed as warnings.

To reproduce:

git clone https://github.com/rock-core/tools-roby -b rubocop_new_cops --depth 1
cd tools-roby
bundle install --path vendor
bundle exec rubocop

Another weird thing (compared to running rubocop with the same config on an empty repo) is that the warning appears twice.

@Earlopain
Copy link
Contributor

How are you runnig 1.60.2 in your repo? Your gemspec requires ruby 2.5 while this rubocop version requires at least 2.7. If I remove the version constraint I'm getting 0.83.0 because rubocop-rock depends on RuboCop < 1.0

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

No branches or pull requests

2 participants