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 rubocop #112

Merged
merged 3 commits into from
Mar 7, 2024
Merged

New rubocop #112

merged 3 commits into from
Mar 7, 2024

Conversation

jreidinger
Copy link
Member

Problem

CI for master failing due to old rubocop not working with the ruby on TW.

Solution

update rubocop.

@coveralls
Copy link

Coverage Status

coverage: 21.977% (+0.002%) from 21.975%
when pulling 42e3a6b on new_rubocop
into e44c38c on master.

Copy link
Member

@dgdavid dgdavid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How many changes! LGTM 👍

@@ -43,6 +43,8 @@ class FormatDialog < ::UI::Dialog
#
# @param dasds [Array<Y2S390::Dasd>] list of DASDs to be formatted
def initialize(dasds)
super()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure this change is safe? It's actually the first real change I have seen (with implications that may go beyond style and readability).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, change is safe and I do not many times for newer rubocop. Basically when you have class that is child of another, rubocop wants you to call its initialize to ensure that it is properly initialized. And I need to use super() as super will pass its arguments and UI::Dialog constructor is without params.
For more such changes see e.g. yast/yast-storage-ng@e76cfb2

Copy link
Contributor

@ancorgs ancorgs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one comment

@jreidinger jreidinger merged commit 9879271 into master Mar 7, 2024
10 checks passed
@jreidinger jreidinger deleted the new_rubocop branch March 7, 2024 09:15
@yast-bot
Copy link
Contributor

yast-bot commented Mar 7, 2024

✔️ Internal Jenkins job #32 successfully finished

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 this pull request may close these issues.

5 participants