Skip to content

Commit

Permalink
Minor cleanup of cop names in cop docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Buildkite committed Nov 12, 2019
1 parent a2b67db commit 9feb243
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/layout/first_argument_indentation.rb
Expand Up @@ -9,7 +9,7 @@ module Layout
# not by this cop.
#
# For indenting the first parameter of method *definitions*, check out
# Layout/IndentFirstParameter.
# Layout/FirstParameterIndentation.
#
# @example
#
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/layout/first_parameter_indentation.rb
Expand Up @@ -5,7 +5,7 @@ module Cop
module Layout
# This cop checks the indentation of the first parameter in a method
# definition. Parameters after the first one are checked by
# Layout/AlignParameters, not by this cop.
# Layout/ParameterAlignment, not by this cop.
#
# For indenting the first argument of method *calls*, check out
# Layout/FirstArgumentIndentation, which supports options related to
Expand Down
4 changes: 2 additions & 2 deletions lib/rubocop/cop/metrics/line_length.rb
Expand Up @@ -21,8 +21,8 @@ module Metrics
# If autocorrection is enabled, the following Layout cops
# are recommended to further format the broken lines.
#
# - AlignParameters
# - ArrayAlignment
# - ParameterAlignment
# - ArgumentAlignment
# - ClosingParenthesisIndentation
# - FirstArgumentIndentation
# - FirstArrayElementIndentation
Expand Down
4 changes: 2 additions & 2 deletions manual/cops_layout.md
Expand Up @@ -1708,7 +1708,7 @@ Arguments after the first one are checked by Layout/ArgumentAlignment,
not by this cop.

For indenting the first parameter of method *definitions*, check out
Layout/IndentFirstParameter.
Layout/FirstParameterIndentation.

### Examples

Expand Down Expand Up @@ -2164,7 +2164,7 @@ Enabled | Yes | Yes | 0.49 | 0.77

This cop checks the indentation of the first parameter in a method
definition. Parameters after the first one are checked by
Layout/AlignParameters, not by this cop.
Layout/ParameterAlignment, not by this cop.

For indenting the first argument of method *calls*, check out
Layout/FirstArgumentIndentation, which supports options related to
Expand Down
4 changes: 2 additions & 2 deletions manual/cops_metrics.md
Expand Up @@ -129,8 +129,8 @@ method calls with argument lists.
If autocorrection is enabled, the following Layout cops
are recommended to further format the broken lines.

- AlignParameters
- ArrayAlignment
- ParameterAlignment
- ArgumentAlignment
- ClosingParenthesisIndentation
- FirstArgumentIndentation
- FirstArrayElementIndentation
Expand Down

0 comments on commit 9feb243

Please sign in to comment.