$ bundle exec rubocop --auto-correct
Inspecting 25 files
.W.......................
Offenses:
maintenance/jsduck/custom_tags.rb:14:26: W: [Corrected] Unused method
argument - position. If it's necessary, use _ or _position as an
argument name to indicate that it won't be used.
def parse_doc(scanner, position)
^^^^^^^^
...
25 files inspected, 2 offenses detected, 2 offenses corrected
Bug: T91485
Change-Id: Ide96774c284af97f8d587bd6cde302c4500496ed
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
-# Offense count: 2
-# Cop supports --auto-correct.
-Lint/UnusedMethodArgument:
- Enabled: false
-
# Offense count: 8
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
@repeatable = true
end
- def parse_doc(scanner, position)
+ def parse_doc(scanner, _position)
if @multiline
return { :tagname => @tagname, :doc => :multiline }
else
end
end
- def process_doc(context, tags, position)
+ def process_doc(context, tags, _position)
context[@tagname] = tags
end