-
Notifications
You must be signed in to change notification settings - Fork 21
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
Experimental rubocop #1364
base: master
Are you sure you want to change the base?
Experimental rubocop #1364
Conversation
69bcb6b
to
c003d57
Compare
@@ -619,7 +619,7 @@ def use_value_from_string(use) | |||
# nil if the root filesystem is not applicable. | |||
def enabled_snapshots?(filesystems) | |||
root_fs = filesystems.find(&:root?) | |||
return nil if root_fs.nil? || (root_fs.multidevice? && !btrfs_drive_section?) | |||
return false if root_fs.nil? || (root_fs.multidevice? && !btrfs_drive_section?) |
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.
and this cause several test failures. I am not sure if it is correct change. On one hand it is ?
method, but nil is documented there. Also not sure if it is common in storage or one single occurrence.
@@ -247,7 +247,7 @@ def partition_candidate_spaces(partition, candidate_spaces, extra_spaces) | |||
# | |||
# @return [Boolean] | |||
def compatible_disk?(partition, space) | |||
return true unless partition.disk && partition.disk != space.disk_name | |||
true unless partition.disk && partition.disk != space.disk_name |
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.
It says @return [Boolean]
but it actually returns true
or nil
... 🤔
Yard strictly defines Boolean
as either true
or false
values, nothing else.
Trying changes from new rubocop. Review per commit to distinguish what was done manually and what automatic.
see also yast/yast-yast2#1298