-
Notifications
You must be signed in to change notification settings - Fork 54
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
Upgrade RuboCop to 1.69 + enable new cops #984
base: main
Are you sure you want to change the base?
Conversation
Renames per rubocop/rubocop#7468 Signed-off-by: Tim Smith <[email protected]>
See rubocop/rubocop#7813 Signed-off-by: Tim Smith <[email protected]>
These were renamed in rubocop/rubocop#7460 Signed-off-by: Tim Smith <[email protected]>
Signed-off-by: Tim Smith <[email protected]>
Renamed in rubocop/rubocop#4864 Signed-off-by: Tim Smith <[email protected]>
Renamed in rubocop/rubocop#3226 Signed-off-by: Tim Smith <[email protected]>
These were renamed in rubocop/rubocop#6983 Signed-off-by: Tim Smith <[email protected]>
Renamed in rubocop/rubocop#3797 Signed-off-by: Tim Smith <[email protected]>
This one was partially updated at some point, but is not right: See https://github.com/rubocop/rubocop/blob/e12b51389500da8e744730f8fa022d739ba0b573/config/obsoletion.yml#L45 Signed-off-by: Tim Smith <[email protected]>
Signed-off-by: Tim Smith <[email protected]>
This is the latest release Signed-off-by: Tim Smith <[email protected]>
Keep cookstyle at the earlier version so people can migrate off older chef client releases Signed-off-by: Tim Smith <[email protected]>
Signed-off-by: Tim Smith <[email protected]>
Signed-off-by: Tim Smith <[email protected]>
These are the fixes discovered by upgrading to RuboCop 1.69 + enabling new cops here: chef/cookstyle#984 Signed-off-by: Tim Smith <[email protected]>
Style/RedundantCurrentDirectoryInPath: | ||
Enabled: true | ||
|
||
# Use strings instead of regex with common helper methods |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This appears to be a dupe of the block starting at line 727?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of the checks are the same for cookstyle vs. chefstyle so they're duplicated in both configs
Style/YAMLFileRead: | ||
Enabled: true | ||
|
||
# You can't have the same named group in a gemfile twice |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a dupe of the block starting at line 735
config/cookstyle.yml
Outdated
Bundler/DuplicatedGroup: | ||
Enabled: true | ||
|
||
# Avoid creating and array and interating into it when .map can be used |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a bunch of duplicates in here. Is this supposed to be like that?
Tim, I approved the other PR but I have some questions inline about this one - some of the cops appear to be duplicates of each other - the block starting around line 720 appears to be duplicated in a block at ~line 3531 or so? There's a couple of small typos that need clarifying too. |
Signed-off-by: Tim Smith <[email protected]>
These are the fixes discovered by upgrading to RuboCop 1.69 + enabling new cops here: chef/cookstyle#984 Signed-off-by: Tim Smith <[email protected]>
Related to: #984 |
Resolves a big pile of bugs Signed-off-by: Tim Smith <[email protected]>
Signed-off-by: Tim Smith <[email protected]>
Quality Gate passedIssues Measures |
This picks up from #981 so that needs to get merged first