Skip to content

Commit

Permalink
Rubocop autocorrected: Lint/UnusedMethodArgument
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Jun 5, 2015
1 parent 3a20c1f commit 41a97b9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
5 changes: 0 additions & 5 deletions .rubocop.yml
Expand Up @@ -32,11 +32,6 @@ Lint/RescueException:
Lint/ShadowingOuterLocalVariable:
Enabled: false

# Offense count: 8
# Cop supports --auto-correct.
Lint/UnusedMethodArgument:
Enabled: false

# Offense count: 1
Lint/UselessAssignment:
Enabled: false
Expand Down
4 changes: 2 additions & 2 deletions src/ruby/yast/builtins.rb
Expand Up @@ -659,14 +659,14 @@ def self.shift_frame_number(args)

# Log an user-level system message to the y2changes
# @note do nothing now, concept is quite unclear
def self.y2useritem(*args)
def self.y2useritem(*_args)
# TODO implement it
nil
end

# Log an user-level addional message to the y2changes
# @note do nothing now, concept is quite unclear
def self.y2usernote(*args)
def self.y2usernote(*_args)
# TODO implement it
nil
end
Expand Down
4 changes: 2 additions & 2 deletions src/ruby/yast/y2logger.rb
Expand Up @@ -13,7 +13,7 @@ class Y2Logger < ::Logger
# location of the caller
CALL_FRAME = 2

def add(severity, progname = nil, message = nil, &block)
def add(severity, _progname = nil, message = nil, &_block)
message = yield if block_given?

case severity
Expand All @@ -34,7 +34,7 @@ def add(severity, progname = nil, message = nil, &block)
end
end

def initialize(*args)
def initialize(*_args)
# do not write to any file, the actual logging is implemented in add()
super(nil)
# process also debug messages but might not be logged in the end
Expand Down
2 changes: 1 addition & 1 deletion tests/ruby/exportable_spec.rb
Expand Up @@ -18,7 +18,7 @@ def initialize
end

publish function: :test, type: "string(integer,term)"
def test(a, b)
def test(_a, _b)
"test"
end
end
Expand Down
2 changes: 1 addition & 1 deletion tests/ruby/test_module/include/example.rb
@@ -1,6 +1,6 @@
module Yast
module ExampleInclude
def initialize_example(target)
def initialize_example(_target)
@test = 15
end

Expand Down

0 comments on commit 41a97b9

Please sign in to comment.