RUBOCOPメモ
C: Metrics/MethodLength: Method has too many lines. [21/20]
def display(file_paths, opt) ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
C: [Correctable] Layout/IndentationConsistency: Inconsistent indentation detected.
unless opt['l'] ...
^^^^^^^^^^^^^^^
3.
C: Style/GuardClause: Use a guard clause (return if opt['l']) instead of wrapping the code inside a conditional expression.
unless opt['l']
^^^^^^
修正後、
06.wc/wc.rb:42:5: C: [Correctable] Layout/EmptyLineAfterGuardClause: Add empty line after guard clause.
return if opt['l']
^^^^^^^^^^^^^^^^^^
更に修正
C: Metrics/MethodLength: Method has too many lines. [21/20]
def display(file_paths, opt) ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^