Skip to content

Commit

Permalink
Fix missing call to super in important methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jan 10, 2022
1 parent 52ce490 commit e76cfb2
Show file tree
Hide file tree
Showing 121 changed files with 198 additions and 22 deletions.
1 change: 1 addition & 0 deletions src/lib/installation/console/plugins/luks2_checkbox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class LUKS2CheckBox < CWM::CheckBox
include Yast::Logger

def initialize
super
textdomain "storage"
end

Expand Down
1 change: 1 addition & 0 deletions src/lib/y2partitioner/actions/create_partition_table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class CreatePartitionTable < Base

# @param disk [Y2Storage::Partitionable]
def initialize(disk)
super()
textdomain "storage"
@disk = disk
end
Expand Down
1 change: 1 addition & 0 deletions src/lib/y2partitioner/actions/resize_blk_device.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class ResizeBlkDevice < Base
#
# @param device [Y2Storage::Partition, Y2Storage::LvmLv]
def initialize(device)
super()
textdomain "storage"

@device = device
Expand Down
1 change: 1 addition & 0 deletions src/lib/y2partitioner/actions/transaction_wizard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class TransactionWizard < UI::Sequence
include Yast::Logger

def initialize
super
textdomain "storage"
end

Expand Down
3 changes: 3 additions & 0 deletions src/lib/y2partitioner/dialogs/bcache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class Bcache < SingleStep
#
# @param controller [Actions::Controllers::Bcache]
def initialize(controller)
super()
textdomain "storage"

@caching = CachingDeviceSelector.new(controller.bcache, controller.suitable_caching_devices)
Expand Down Expand Up @@ -116,6 +117,7 @@ class DeviceSelector < CWM::ComboBox
# @param devices [Array<Y2Storage::BlkDevice, Y2Storage::BcacheCset>] possible devices
# that can be used as backing or caching device.
def initialize(bcache, devices)
super()
textdomain "storage"

@bcache = bcache
Expand Down Expand Up @@ -307,6 +309,7 @@ class CacheModeSelector < CWM::ComboBox
#
# @param bcache [Y2Storage::Bcache, nil] existing bcache or nil if it is a new one
def initialize(bcache)
super()
textdomain "storage"

@bcache = bcache
Expand Down
1 change: 1 addition & 0 deletions src/lib/y2partitioner/dialogs/bcache_csets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ module Dialogs
class BcacheCsets < Popup
# Constructor
def initialize
super
textdomain "storage"
end

Expand Down
4 changes: 4 additions & 0 deletions src/lib/y2partitioner/dialogs/blk_device_resize.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class BlkDeviceResize < Base
#
# @param controller [Y2Partitioner::Actions::Controllers::BlkDevice] controller for a block device
def initialize(controller)
super()
textdomain "storage"

@controller = controller
Expand Down Expand Up @@ -316,6 +317,7 @@ class SizeSelector < Widgets::ControllerRadioButtons
#
# @param device [Y2Storage::Partition, Y2Storage::LvmLv]
def initialize(device)
super()
textdomain "storage"

@device = device
Expand Down Expand Up @@ -555,6 +557,7 @@ class FixedSizeWidget < CWM::Empty
#
# @param size [Y2Storage::DiskSize]
def initialize(size)
super()
@size = size
end

Expand Down Expand Up @@ -585,6 +588,7 @@ class CustomSizeWidget < CWM::InputField
# @param max_size [Y2Storage::DiskSize]
# @param current_size [Y2Storage::DiskSize]
def initialize(min_size, max_size, current_size)
super()
textdomain "storage"

@min_size = min_size
Expand Down
5 changes: 5 additions & 0 deletions src/lib/y2partitioner/dialogs/btrfs_subvolume.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class SubvolumePath < CWM::InputField
#
# @param controller [Actions::Controllers::BtrfsSubvolume]
def initialize(controller)
super()
textdomain "storage"
@controller = controller
end
Expand Down Expand Up @@ -235,6 +236,7 @@ def fix_path
class SubvolumeNocow < CWM::CheckBox
# @return [Actions::Controllers::BtrfsSubvolume]
def initialize(controller)
super()
textdomain "storage"
@controller = controller
end
Expand Down Expand Up @@ -285,6 +287,7 @@ class SubvolumeRferLimit < CWM::CustomWidget
# @param controller [Actions::Controllers::BtrfsSubvolume]
# a controller collecting data for a subvolume to be created or edited
def initialize(controller)
super()
textdomain "storage"
@controller = controller
end
Expand Down Expand Up @@ -402,6 +405,7 @@ class SubvolumeRferLimitSize < CWM::InputField
#
# @param initial [Y2Storage::DiskSize] initial value
def initialize(initial)
super()
textdomain "storage"
@initial = initial
end
Expand Down Expand Up @@ -435,6 +439,7 @@ class SubvolumeRferLimitCheckBox < CWM::CheckBox
# @param initial [Boolean] initial state of the checkbox
# @param size_widget [SubvolumeRferLimitSize] see {#size_widget}
def initialize(initial, size_widget)
super()
textdomain "storage"
@initial = initial
@size_widget = size_widget
Expand Down
1 change: 1 addition & 0 deletions src/lib/y2partitioner/dialogs/commit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Commit < CWM::Dialog
include Yast::I18n

def initialize
super()
textdomain "storage"
end

Expand Down
1 change: 1 addition & 0 deletions src/lib/y2partitioner/dialogs/device_description.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class DeviceDescription < Popup

# Constructor
def initialize(device)
super()
textdomain "storage"
@device = device
end
Expand Down
2 changes: 2 additions & 0 deletions src/lib/y2partitioner/dialogs/device_graph.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ module Dialogs
class DeviceGraph < Popup
# Constructor
def initialize
super()
textdomain "storage"
end

Expand Down Expand Up @@ -131,6 +132,7 @@ class DeviceGraphTab < CWM::Tab

# Constructor
def initialize(label, device_graph, description)
super()
@label = label
@device_graph = device_graph
@widget_id = "#{widget_id}_#{device_graph.object_id}"
Expand Down
2 changes: 2 additions & 0 deletions src/lib/y2partitioner/dialogs/encryption.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module Dialogs
class Encryption < Base
# @param controller [Actions::Controllers::Filesystem]
def initialize(controller)
super()
textdomain "storage"

@controller = controller
Expand Down Expand Up @@ -58,6 +59,7 @@ class ActionWidget < Widgets::ControllerRadioButtons
# @param controller [Actions::Controllers::Encryption]
# a controller collecting data for managing the encryption of a device
def initialize(controller)
super()
textdomain "storage"
@controller = controller
end
Expand Down
1 change: 1 addition & 0 deletions src/lib/y2partitioner/dialogs/format_and_mount.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module Dialogs
class FormatAndMount < Base
# @param controller [Actions::Controllers::Filesystem]
def initialize(controller)
super()
textdomain "storage"

@controller = controller
Expand Down
1 change: 1 addition & 0 deletions src/lib/y2partitioner/dialogs/fstab_options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ module Dialogs
class FstabOptions < Popup
# @param controller [Actions::Controllers::Filesystem]
def initialize(controller)
super()
textdomain "storage"

@controller = controller
Expand Down
2 changes: 2 additions & 0 deletions src/lib/y2partitioner/dialogs/import_mount_points.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class ImportMountPoints < Popup
#
# @param controller [Actions::Controllers::Fstabs]
def initialize(controller)
super()
textdomain "storage"

@controller = controller
Expand Down Expand Up @@ -87,6 +88,7 @@ class FormatWidget < CWM::CheckBox
#
# @param controller [Actions::Controllers::Fstabs]
def initialize(controller)
super()
textdomain "storage"
@controller = controller
end
Expand Down
3 changes: 3 additions & 0 deletions src/lib/y2partitioner/dialogs/lvm_lv_info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class LvmLvInfo < Base
# @param controller [Actions::Controllers::LvmLv]
# a LV controller, collecting data for a logical volume to be created
def initialize(controller)
super()
textdomain "storage"
@controller = controller
end
Expand Down Expand Up @@ -111,6 +112,7 @@ class LvTypeSelector < Widgets::ControllerRadioButtons
# @param controller [Actions::Controllers::LvmLv]
# a controller collecting data for a LV to be created
def initialize(controller)
super()
textdomain "storage"
@controller = controller
end
Expand Down Expand Up @@ -205,6 +207,7 @@ class ThinPoolSelector < CWM::ComboBox
# @param controller [Actions::Controllers::LvmLv]
# a controller collecting data for a LV to be created
def initialize(controller)
super()
textdomain "storage"
@controller = controller
end
Expand Down
8 changes: 8 additions & 0 deletions src/lib/y2partitioner/dialogs/lvm_lv_size.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class LvmLvSize < Base
# @param controller [Actions::Controllers::LvmLv] a LV controller, collecting data for a logical
# volume to be created
def initialize(controller)
super()
textdomain "storage"
@controller = controller
end
Expand All @@ -52,6 +53,7 @@ def contents
class LvSizeWidget < CWM::CustomWidget
# @param controller [Actions::Controllers::LvmLv]
def initialize(controller)
super()
textdomain "storage"

@controller = controller
Expand Down Expand Up @@ -174,6 +176,7 @@ class SizeWidget < Widgets::ControllerRadioButtons
# @param controller [Actions::Controllers::LvmLv]
# a controller collecting data for a LV to be created
def initialize(controller)
super()
textdomain "storage"
@controller = controller
end
Expand Down Expand Up @@ -265,6 +268,7 @@ class MaxSizeDummy < CWM::Empty

# @param size [Y2Storage::DiskSize]
def initialize(size)
super()
@size = size
end
end
Expand All @@ -275,6 +279,7 @@ class CustomSizeInput < CWM::InputField

# @param initial [Y2Storage::DiskSize]
def initialize(initial)
super()
textdomain "storage"
@initial = initial
end
Expand Down Expand Up @@ -324,6 +329,7 @@ class StripesWidget < CWM::CustomWidget
# @param controller [Actions::Controllers::LvmLv]
# a controller collecting data for a LV to be created
def initialize(controller)
super()
textdomain "storage"
@controller = controller
end
Expand Down Expand Up @@ -394,6 +400,7 @@ class StripesNumberSelector < CWM::ComboBox
# @param controller [Actions::Controllers::LvmLv]
# a controller collecting data for a LV to be created
def initialize(controller)
super()
textdomain "storage"
@controller = controller
end
Expand All @@ -417,6 +424,7 @@ class StripesSizeSelector < CWM::ComboBox
# @param controller [Actions::Controllers::LvmLv]
# a controller collecting data for a LV to be created
def initialize(controller)
super()
textdomain "storage"
@controller = controller
end
Expand Down
3 changes: 3 additions & 0 deletions src/lib/y2partitioner/dialogs/lvm_vg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class LvmVg < Base
#
# @param controller [Actions::Controllers::LvmVg]
def initialize(controller)
super()
textdomain "storage"
@controller = controller
end
Expand Down Expand Up @@ -61,6 +62,7 @@ class NameWidget < CWM::InputField
#
# @param controller [Actions::Controllers::LvmVg]
def initialize(controller)
super()
textdomain "storage"
@controller = controller
end
Expand Down Expand Up @@ -138,6 +140,7 @@ class ExtentSizeWidget < CWM::ComboBox
#
# @param controller [Actions::Controllers::LvmVg]
def initialize(controller)
super()
textdomain "storage"
@controller = controller
end
Expand Down
1 change: 1 addition & 0 deletions src/lib/y2partitioner/dialogs/lvm_vg_resize.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class LvmVgResize < Base
#
# @param controller [Actions::Controllers::LvmVg]
def initialize(controller)
super()
textdomain "storage"
@controller = controller
end
Expand Down
1 change: 1 addition & 0 deletions src/lib/y2partitioner/dialogs/main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class Main < CWM::Dialog
# @param initial [Y2Storage::Devicegraph] starting point (initial device graph
# to display)
def initialize(system, initial)
super()
textdomain "storage"

UIState.create_instance
Expand Down
3 changes: 3 additions & 0 deletions src/lib/y2partitioner/dialogs/md.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ module Dialogs
# Part of {Actions::AddMd}.
class Md < Base
def initialize(controller)
super()
textdomain "storage"
@controller = controller
@dev_selection = Widgets::MdDevicesSelector.new(controller)
Expand Down Expand Up @@ -81,6 +82,7 @@ class LevelChoice < CWM::CustomWidget
# @param devices_widget [#refresh_sizes] widget containing the lists of
# devices selected for the RAID
def initialize(controller, devices_widget)
super()
textdomain "storage"
@controller = controller
@devices_widget = devices_widget
Expand Down Expand Up @@ -212,6 +214,7 @@ def raid10_help
# Widget for MD array name
class NameEntry < CWM::InputField
def initialize(controller)
super()
textdomain "storage"
@controller = controller
end
Expand Down
1 change: 1 addition & 0 deletions src/lib/y2partitioner/dialogs/md_edit_devices.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class MdEditDevices < Base
#
# @param controller [Actions::Controllers::Md]
def initialize(controller)
super()
textdomain "storage"

@controller = controller
Expand Down
3 changes: 3 additions & 0 deletions src/lib/y2partitioner/dialogs/md_options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ module Dialogs
class MdOptions < Base
# @param controller [Actions::Controllers::Md]
def initialize(controller)
super()
textdomain "storage"

@controller = controller
Expand Down Expand Up @@ -59,6 +60,7 @@ def contents
class ChunkSize < CWM::ComboBox
# @param controller [Actions::Controllers::Md]
def initialize(controller)
super()
textdomain "storage"
@controller = controller
end
Expand Down Expand Up @@ -100,6 +102,7 @@ def store
class Parity < CWM::ComboBox
# @param controller [Actions::Controllers::Md]
def initialize(controller)
super()
textdomain "storage"

@controller = controller
Expand Down
Loading

0 comments on commit e76cfb2

Please sign in to comment.