Skip to content

Commit

Permalink
Update version numbers for renamed cops
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmatthewman authored and bbatsov committed Nov 2, 2019
1 parent 3947ce4 commit 0d92b8f
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 42 deletions.
42 changes: 18 additions & 24 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ Layout/ArgumentAlignment:
than one line.
StyleGuide: '#no-double-indent'
Enabled: true
VersionAdded: '0.68'
VersionAdded: '0.77'
# Alignment of arguments in multi-line method calls.
#
# The `with_first_argument` style aligns the following lines along the same
Expand Down Expand Up @@ -252,14 +252,14 @@ Layout/ArrayAlignment:
one line.
StyleGuide: '#align-multiline-arrays'
Enabled: true
VersionAdded: '0.49'
VersionAdded: '0.77'

Layout/AssignmentIndentation:
Description: >-
Checks the indentation of the first line of the
right-hand-side of a multi-line assignment.
Enabled: true
VersionAdded: '0.49'
VersionAdded: '0.77'
# By default, the indentation width from `Layout/IndentationWidth` is used
# But it can be overridden by setting this parameter
IndentationWidth: ~
Expand Down Expand Up @@ -531,7 +531,7 @@ Layout/ExtraSpacing:
Layout/FirstArgumentIndentation:
Description: 'Checks the indentation of the first argument in a method call.'
Enabled: true
VersionAdded: '0.68'
VersionAdded: '0.77'
EnforcedStyle: special_for_inner_method_call_in_parentheses
SupportedStyles:
# The first parameter should always be indented one step more than the
Expand All @@ -557,7 +557,7 @@ Layout/FirstArrayElementIndentation:
Checks the indentation of the first element in an array
literal.
Enabled: true
VersionAdded: '0.68'
VersionAdded: '0.77'
# The value `special_inside_parentheses` means that array literals with
# brackets that have their opening bracket on the same line as a surrounding
# opening round parenthesis, shall have their first element indented relative
Expand Down Expand Up @@ -588,7 +588,7 @@ Layout/FirstArrayElementLineBreak:
Layout/FirstHashElementIndentation:
Description: 'Checks the indentation of the first key in a hash literal.'
Enabled: true
VersionAdded: '0.68'
VersionAdded: '0.77'
# The value `special_inside_parentheses` means that hash literals with braces
# that have their opening brace on the same line as a surrounding opening
# round parenthesis, shall have their first key indented relative to the
Expand Down Expand Up @@ -635,8 +635,7 @@ Layout/FirstParameterIndentation:
Checks the indentation of the first parameter in a
method definition.
Enabled: true
VersionAdded: '0.49'
VersionChanged: '0.68'
VersionAdded: '0.77'
EnforcedStyle: consistent
SupportedStyles:
- consistent
Expand All @@ -651,7 +650,7 @@ Layout/HashAlignment:
one line.
Enabled: true
AllowMultipleStyles: true
VersionAdded: '0.49'
VersionAdded: '0.77'
# Alignment of entries using hash rocket as separator. Valid values are:
#
# key - left alignment of keys
Expand Down Expand Up @@ -734,8 +733,7 @@ Layout/HeredocIndentation:
Description: 'This cop checks the indentation of the here document bodies.'
StyleGuide: '#squiggly-heredocs'
Enabled: true
VersionAdded: '0.49'
VersionChanged: '0.69'
VersionAdded: '0.77'
EnforcedStyle: squiggly
SupportedStyles:
- squiggly
Expand Down Expand Up @@ -788,7 +786,7 @@ Layout/LeadingCommentSpace:
Layout/LeadingEmptyLines:
Description: Check for unnecessary blank lines at the beginning of a file.
Enabled: true
VersionAdded: '0.57'
VersionAdded: '0.77'

Layout/MultilineArrayBraceLayout:
Description: >-
Expand Down Expand Up @@ -937,8 +935,7 @@ Layout/ParameterAlignment:
than one line.
StyleGuide: '#no-double-indent'
Enabled: true
VersionAdded: '0.49'
VersionChanged: '0.68'
VersionAdded: '0.77'
# Alignment of parameters in multi-line method calls.
#
# The `with_first_parameter` style aligns the following lines along the same
Expand Down Expand Up @@ -1206,7 +1203,7 @@ Layout/TrailingEmptyLines:
Description: 'Checks trailing blank lines and final newline.'
StyleGuide: '#newline-eof'
Enabled: true
VersionAdded: '0.49'
VersionAdded: '0.77'
EnforcedStyle: final_newline
SupportedStyles:
- final_newline
Expand Down Expand Up @@ -1293,7 +1290,7 @@ Lint/DuplicateCaseCondition:
Lint/DuplicateHashKey:
Description: 'Check for duplicate keys in hash literals.'
Enabled: true
VersionAdded: '0.34'
VersionAdded: '0.77'

Lint/DuplicateMethods:
Description: 'Check for duplicate method definitions.'
Expand Down Expand Up @@ -1439,7 +1436,7 @@ Lint/MissingCopEnableDirective:
Lint/MultipleComparison:
Description: "Use `&&` operator to compare multiple values."
Enabled: true
VersionAdded: '0.47'
VersionAdded: '0.77'

Lint/NestedMethodDefinition:
Description: 'Do not use nested method definitions.'
Expand Down Expand Up @@ -1531,8 +1528,7 @@ Lint/RedundantStringCoercion:
Description: 'Checks for Object#to_s usage in string interpolation.'
StyleGuide: '#no-to-s'
Enabled: true
VersionAdded: '0.19'
VersionChanged: '0.20'
VersionAdded: '0.77'

Lint/RedundantWithIndex:
Description: 'Checks for redundant `with_index`.'
Expand Down Expand Up @@ -1644,8 +1640,7 @@ Lint/SuppressedException:
StyleGuide: '#dont-hide-exceptions'
Enabled: true
AllowComments: false
VersionAdded: '0.9'
VersionChanged: '0.70'
VersionAdded: '0.77'

Lint/Syntax:
Description: 'Checks syntax error.'
Expand Down Expand Up @@ -1886,7 +1881,7 @@ Naming/BlockParameterName:
Checks for block parameter names that contain capital letters,
end in numbers, or do not meet a minimal length.
Enabled: true
VersionAdded: '0.53'
VersionAdded: '0.77'
# Parameter names may be equal to or greater than this value
MinNameLength: 1
AllowNamesEndingInNumbers: true
Expand Down Expand Up @@ -2023,8 +2018,7 @@ Naming/MethodParameterName:
Checks for method parameter names that contain capital letters,
end in numbers, or do not meet a minimal length.
Enabled: true
VersionAdded: '0.53'
VersionChanged: '0.59'
VersionAdded: '0.77'
# Parameter names may be equal to or greater than this value
MinNameLength: 3
AllowNamesEndingInNumbers: true
Expand Down
24 changes: 12 additions & 12 deletions manual/cops_layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ IndentationWidth | `<none>` | Integer

Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Enabled | Yes | Yes | 0.68 | -
Enabled | Yes | Yes | 0.77 | -

Here we check if the arguments on a multi-line method
definition are aligned.
Expand Down Expand Up @@ -117,7 +117,7 @@ IndentationWidth | `<none>` | Integer

Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Enabled | Yes | Yes | 0.49 | -
Enabled | Yes | Yes | 0.77 | -

Here we check if the elements of a multi-line array literal are
aligned.
Expand Down Expand Up @@ -148,7 +148,7 @@ a = ['run',

Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Enabled | Yes | Yes | 0.49 | -
Enabled | Yes | Yes | 0.77 | -

This cop checks the indentation of the first line of the
right-hand-side of a multi-line assignment.
Expand Down Expand Up @@ -1701,7 +1701,7 @@ ForceEqualSignAlignment | `false` | Boolean

Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Enabled | Yes | Yes | 0.68 | -
Enabled | Yes | Yes | 0.77 | -

This cop checks the indentation of the first argument in a method call.
Arguments after the first one are checked by Layout/ArgumentAlignment,
Expand Down Expand Up @@ -1862,7 +1862,7 @@ IndentationWidth | `<none>` | Integer

Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Enabled | Yes | Yes | 0.68 | -
Enabled | Yes | Yes | 0.77 | -

This cop checks the indentation of the first element in an array literal
where the opening bracket and the first element are on separate lines.
Expand Down Expand Up @@ -1983,7 +1983,7 @@ multi-line array.

Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Enabled | Yes | Yes | 0.68 | -
Enabled | Yes | Yes | 0.77 | -

This cop checks the indentation of the first key in a hash literal
where the opening brace and the first key are on separate lines. The
Expand Down Expand Up @@ -2160,7 +2160,7 @@ end

Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Enabled | Yes | Yes | 0.49 | 0.68
Enabled | Yes | Yes | 0.77 | -

This cop checks the indentation of the first parameter in a method
definition. Parameters after the first one are checked by
Expand Down Expand Up @@ -2218,7 +2218,7 @@ IndentationWidth | `<none>` | Integer

Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Enabled | Yes | Yes | 0.49 | -
Enabled | Yes | Yes | 0.77 | -

Check that the keys, separators, and values of a multi-line hash
literal are aligned according to configuration. The configuration
Expand Down Expand Up @@ -2487,7 +2487,7 @@ opening HEREDOC tag.

Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Enabled | Yes | Yes | 0.49 | 0.69
Enabled | Yes | Yes | 0.77 | -

This cop checks the indentation of the here document bodies. The bodies
are indented one step.
Expand Down Expand Up @@ -2837,7 +2837,7 @@ AllowDoxygenCommentStyle | `false` | Boolean

Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Enabled | Yes | Yes | 0.57 | -
Enabled | Yes | Yes | 0.77 | -

This cop checks for unnecessary leading blank lines at the beginning
of a file.
Expand Down Expand Up @@ -3608,7 +3608,7 @@ IndentationWidth | `<none>` | Integer

Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Enabled | Yes | Yes | 0.49 | 0.68
Enabled | Yes | Yes | 0.77 | -

Here we check if the parameters on a multi-line method call or
definition are aligned.
Expand Down Expand Up @@ -4713,7 +4713,7 @@ IndentationWidth | `<none>` | Integer

Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Enabled | Yes | Yes | 0.49 | -
Enabled | Yes | Yes | 0.77 | -

This cop looks for trailing blank lines and a final newline in the
source code.
Expand Down
8 changes: 4 additions & 4 deletions manual/cops_lint.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ end

Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Enabled | Yes | No | 0.34 | -
Enabled | Yes | No | 0.77 | -

This cop checks for duplicated keys in hash literals.

Expand Down Expand Up @@ -1169,7 +1169,7 @@ MaximumRangeSize | `Infinity` | Float

Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Enabled | Yes | Yes | 0.47 | -
Enabled | Yes | Yes | 0.77 | -

In math and Python, we can use `x < y < z` style comparison to compare
multiple value. However, we can't use the comparison in Ruby. However,
Expand Down Expand Up @@ -1653,7 +1653,7 @@ end

Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Enabled | Yes | Yes | 0.19 | 0.20
Enabled | Yes | Yes | 0.77 | -

This cop checks for string conversion in string interpolation,
which is redundant.
Expand Down Expand Up @@ -2240,7 +2240,7 @@ end

Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Enabled | Yes | No | 0.9 | 0.70
Enabled | Yes | No | 0.77 | -

This cop checks for *rescue* blocks with no body.

Expand Down
4 changes: 2 additions & 2 deletions manual/cops_naming.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def +(other); end
Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Enabled | Yes | No | 0.53 | -
Enabled | Yes | No | 0.77 | -
This cop checks block parameter names for how descriptive they
are. It is highly configurable.
Expand Down Expand Up @@ -494,7 +494,7 @@ IgnoredPatterns | `[]` | Array
Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Enabled | Yes | No | 0.53 | 0.59
Enabled | Yes | No | 0.77 | -
This cop checks method parameter names for how descriptive they
are. It is highly configurable.
Expand Down

0 comments on commit 0d92b8f

Please sign in to comment.