Skip to content

Commit

Permalink
Add a description for Metrics/LineLength
Browse files Browse the repository at this point in the history
Follow up #7232 (comment).

This PR adds a description for `Metrics/LineLength`.
  • Loading branch information
koic authored and bbatsov committed Jul 31, 2019
1 parent f51c53c commit 11656e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/rubocop/cop/metrics/line_length.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module Metrics
# The maximum length is configurable.
# The tab size is configured in the `IndentationWidth`
# of the `Layout/Tab` cop.
# It also ignores a shebang line by default.
#
# This cop has some autocorrection capabilities.
# It can programmatically shorten certain long lines by
Expand Down
1 change: 1 addition & 0 deletions manual/cops_metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ This cop checks the length of lines in the source code.
The maximum length is configurable.
The tab size is configured in the `IndentationWidth`
of the `Layout/Tab` cop.
It also ignores a shebang line by default.

This cop has some autocorrection capabilities.
It can programmatically shorten certain long lines by
Expand Down

0 comments on commit 11656e1

Please sign in to comment.