Skip to content

Commit

Permalink
fix parens around methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jan 12, 2015
1 parent 5e57625 commit dc0b999
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 17 deletions.
11 changes: 0 additions & 11 deletions .rubocop.yml
Expand Up @@ -48,17 +48,6 @@ Style/Documentation:
Style/FileName:
Enabled: false

# Offense count: 4
# Cop supports --auto-correct.
Style/MethodCallParentheses:
Enabled: false

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/MethodDefParentheses:
Enabled: false

# Offense count: 179
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/MethodName:
Expand Down
2 changes: 1 addition & 1 deletion src/clients/inst_finish.rb
Expand Up @@ -575,7 +575,7 @@ def main
:next
end

def show_used_hooks hooks
def show_used_hooks(hooks)
content = Table(
Id(:hooks_table),
Opt(:notify),
Expand Down
3 changes: 1 addition & 2 deletions src/clients/inst_proposal.rb
Expand Up @@ -818,8 +818,7 @@ def load_matching_submodules_list
# in normal mode we don't want to switch between installation and update
modules = Builtins.filter(modules) do |v|
Ops.get_string(v, 0, "") != "mode_proposal"
end if Mode.normal(
)
end if Mode.normal

# now create the list of modules and order of modules for presentation
@submodules = Builtins.maplist(modules) do |mod|
Expand Down
4 changes: 2 additions & 2 deletions src/lib/installation/cio_ignore.rb
Expand Up @@ -81,7 +81,7 @@ def proposal_entry
}
end

def edit edit_id
def edit(edit_id)
raise "Internal error: no id passed to proposal edit" unless edit_id

log.info "CIO proposal change requested, id #{edit_id}"
Expand Down Expand Up @@ -125,7 +125,7 @@ def run(*args)
case func
when "Info"
Yast.import "Arch"
usable = Yast::Arch.s390()
usable = Yast::Arch.s390

{
"steps" => 1,
Expand Down
2 changes: 1 addition & 1 deletion test/cio_ignore_test.rb
Expand Up @@ -105,7 +105,7 @@
describe "first parameter \"Write\"" do
before(:each) do
stub_const("Yast::Installation", double(destdir: "/mnt"))
stub_const("Yast::Bootloader", double())
stub_const("Yast::Bootloader", double)

allow(Yast::Bootloader).to receive(:Write) { true }
allow(Yast::Bootloader).to receive(:Read) { true }
Expand Down

0 comments on commit dc0b999

Please sign in to comment.