Skip to content

Commit

Permalink
Rubocop autocorrected: Style/IndentationConsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Jun 5, 2015
1 parent c3d9a31 commit e37476a
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 83 deletions.
5 changes: 0 additions & 5 deletions .rubocop.yml
Expand Up @@ -137,11 +137,6 @@ Style/GuardClause:
Style/IfUnlessModifier:
Enabled: false

# Offense count: 1
# Cop supports --auto-correct.
Style/IndentationConsistency:
Enabled: false

# Offense count: 6
# Cop supports --auto-correct.
# Configuration parameters: Width.
Expand Down
156 changes: 78 additions & 78 deletions src/ruby/yast/ui_shortcuts.rb
Expand Up @@ -3,84 +3,84 @@
module Yast
# Module that provides shortcuts for known UI terms, so UI can be constructed in nice way.
module UIShortcuts
# Define symbols for the UI
UI_TERMS = [
:BarGraph,
:BusyIndicator,
:Bottom,
:ButtonBox,
:Cell,
:Center,
:CheckBox,
:CheckBoxFrame,
:ColoredLabel,
:ComboBox,
:DateField,
:DownloadProgress,
:DumbTab,
:Dummy,
:DummySpecialWidget,
:Empty,
:Frame,
:HBox,
:HCenter,
:HMultiProgressMeter,
:HSpacing,
:HSquash,
:HStretch,
:HVCenter,
:HVSquash,
:HVStretch,
:HWeight,
:Heading,
:IconButton,
:Image,
:InputField,
:IntField,
:Label,
:Left,
:LogView,
:MarginBox,
:MenuButton,
:MinHeight,
:MinSize,
:MinWidth,
:MultiLineEdit,
:MultiSelectionBox,
:PackageSelector,
:PatternSelector,
:PartitionSplitter,
:Password,
:PkgSpecial,
:ProgressBar,
:PushButton,
:RadioButton,
:RadioButtonGroup,
:ReplacePoint,
:RichText,
:Right,
:SelectionBox,
:Slider,
:Table,
:TextEntry,
:TimeField,
:TimezoneSelector,
:Top,
:Tree,
:VBox,
:VCenter,
:VMultiProgressMeter,
:VSpacing,
:VSquash,
:VStretch,
:VWeight,
:Wizard,
# special ones that will be upper cased
:id,
:item,
:header,
:opt,
]
# Define symbols for the UI
UI_TERMS = [
:BarGraph,
:BusyIndicator,
:Bottom,
:ButtonBox,
:Cell,
:Center,
:CheckBox,
:CheckBoxFrame,
:ColoredLabel,
:ComboBox,
:DateField,
:DownloadProgress,
:DumbTab,
:Dummy,
:DummySpecialWidget,
:Empty,
:Frame,
:HBox,
:HCenter,
:HMultiProgressMeter,
:HSpacing,
:HSquash,
:HStretch,
:HVCenter,
:HVSquash,
:HVStretch,
:HWeight,
:Heading,
:IconButton,
:Image,
:InputField,
:IntField,
:Label,
:Left,
:LogView,
:MarginBox,
:MenuButton,
:MinHeight,
:MinSize,
:MinWidth,
:MultiLineEdit,
:MultiSelectionBox,
:PackageSelector,
:PatternSelector,
:PartitionSplitter,
:Password,
:PkgSpecial,
:ProgressBar,
:PushButton,
:RadioButton,
:RadioButtonGroup,
:ReplacePoint,
:RichText,
:Right,
:SelectionBox,
:Slider,
:Table,
:TextEntry,
:TimeField,
:TimezoneSelector,
:Top,
:Tree,
:VBox,
:VCenter,
:VMultiProgressMeter,
:VSpacing,
:VSquash,
:VStretch,
:VWeight,
:Wizard,
# special ones that will be upper cased
:id,
:item,
:header,
:opt,
]

# for each symbol define a util function that will create a term
UI_TERMS.each do | term_name |
Expand Down

0 comments on commit e37476a

Please sign in to comment.