/
obsoletion.yml
200 lines (194 loc) · 7.27 KB
/
obsoletion.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
# Configuration of obsolete/deprecated cops used by `ConfigObsoletion`
# Cops that were renamed
renamed:
Layout/AlignArguments: Layout/ArgumentAlignment
Layout/AlignArray: Layout/ArrayAlignment
Layout/AlignHash: Layout/HashAlignment
Layout/AlignParameters: Layout/ParameterAlignment
Layout/IndentArray: Layout/FirstArrayElementIndentation
Layout/IndentAssignment: Layout/AssignmentIndentation
Layout/IndentFirstArgument: Layout/FirstArgumentIndentation
Layout/IndentFirstArrayElement: Layout/FirstArrayElementIndentation
Layout/IndentFirstHashElement: Layout/FirstHashElementIndentation
Layout/IndentFirstParameter: Layout/FirstParameterIndentation
Layout/IndentHash: Layout/FirstHashElementIndentation
Layout/IndentHeredoc: Layout/HeredocIndentation
Layout/LeadingBlankLines: Layout/LeadingEmptyLines
Layout/Tab: Layout/IndentationStyle
Layout/TrailingBlankLines: Layout/TrailingEmptyLines
Lint/BlockAlignment: Layout/BlockAlignment
Lint/DefEndAlignment: Layout/DefEndAlignment
Lint/DuplicatedKey: Lint/DuplicateHashKey
Lint/EndAlignment: Layout/EndAlignment
Lint/EndInMethod: Style/EndBlock
Lint/Eval: Security/Eval
Lint/HandleExceptions: Lint/SuppressedException
Lint/MultipleCompare: Lint/MultipleComparison
Lint/StringConversionInInterpolation: Lint/RedundantStringCoercion
Lint/UnneededCopDisableDirective: Lint/RedundantCopDisableDirective
Lint/UnneededCopEnableDirective: Lint/RedundantCopEnableDirective
Lint/UnneededRequireStatement: Lint/RedundantRequireStatement
Lint/UnneededSplatExpansion: Lint/RedundantSplatExpansion
Metrics/LineLength: Layout/LineLength
Naming/UncommunicativeBlockParamName: Naming/BlockParameterName
Naming/UncommunicativeMethodParamName: Naming/MethodParameterName
Style/AccessorMethodName: Naming/AccessorMethodName
Style/AsciiIdentifiers: Naming/AsciiIdentifiers
Style/ClassAndModuleCamelCase: Naming/ClassAndModuleCamelCase
Style/ConstantName: Naming/ConstantName
Style/DeprecatedHashMethods: Style/PreferredHashMethods
Style/FileName: Naming/FileName
Style/FlipFlop: Lint/FlipFlop
Style/MethodCallParentheses: Style/MethodCallWithoutArgsParentheses
Style/MethodName: Naming/MethodName
Style/OpMethod: Naming/BinaryOperatorParameterName
Style/PredicateName: Naming/PredicateName
Style/SingleSpaceBeforeFirstArg: Layout/SpaceBeforeFirstArg
Style/UnneededCapitalW: Style/RedundantCapitalW
Style/UnneededCondition: Style/RedundantCondition
Style/UnneededInterpolation: Style/RedundantInterpolation
Style/UnneededPercentQ: Style/RedundantPercentQ
Style/UnneededSort: Style/RedundantSort
Style/VariableName: Naming/VariableName
Style/VariableNumber: Naming/VariableNumber
# Cops that were removed
removed:
Layout/SpaceAfterControlKeyword:
alternatives: Layout/SpaceAroundKeyword
Layout/SpaceBeforeModifierKeyword:
alternatives: Layout/SpaceAroundKeyword
Lint/InvalidCharacterLiteral:
reason: it was never being actually triggered
Lint/RescueWithoutErrorClass:
alternatives: Style/RescueStandardError
Lint/SpaceBeforeFirstArg:
reason: >
it was a duplicate of `Layout/SpaceBeforeFirstArg`. Please use
`Layout/SpaceBeforeFirstArg` instead
Lint/UselessComparison:
reason: >
it has been superseded by
`Lint/BinaryOperatorWithIdenticalOperands`. Please use
`Lint/BinaryOperatorWithIdenticalOperands` instead
Style/BracesAroundHashParameters: true
Style/MethodMissingSuper:
reason: >
it has been superseded by `Lint/MissingSuper`. Please use
`Lint/MissingSuper` instead
Style/SpaceAfterControlKeyword:
alternatives: Layout/SpaceAroundKeyword
Style/SpaceBeforeModifierKeyword:
alternatives: Layout/SpaceAroundKeyword
Style/TrailingComma:
alternatives:
- Style/TrailingCommaInArguments
- Style/TrailingCommaInArrayLiteral
- Style/TrailingCommaInHashLiteral
Style/TrailingCommaInLiteral:
alternatives:
- Style/TrailingCommaInArrayLiteral
- Style/TrailingCommaInHashLiteral
# Cops split into multiple other cops
split:
Style/MethodMissing:
alternatives:
- Style/MethodMissingSuper
- Style/MissingRespondToMissing
# Cops that were extracted into a different gem
extracted:
Performance/*: rubocop-performance
Rails/*: rubocop-rails
# Cop parameters that have been changed
# Can be treated as a warning instead of a failure with `severity: warning`
changed_parameters:
- cops:
- Layout/SpaceAroundOperators
- Style/SpaceAroundOperators
parameters: MultiSpaceAllowedForOperators
reason: >
If your intention was to allow extra spaces for alignment, please
use `AllowForAlignment: true` instead.
- cops: Style/Encoding
parameters:
- EnforcedStyle
- SupportedStyles
- AutoCorrectEncodingComment
reason: '`Style/Encoding` no longer supports styles. The "never" behavior is always assumed.'
- cops: Style/IfUnlessModifier
parameters: MaxLineLength
reason: >
`Style/IfUnlessModifier: MaxLineLength` has been removed.
Use `Layout/LineLength: Max` instead
- cops: Style/WhileUntilModifier
parameters: MaxLineLength
reason: >
`Style/WhileUntilModifier: MaxLineLength` has been removed.
Use `Layout/LineLength: Max` instead
- cops: AllCops
parameters: RunRailsCops
reason: |-
Use the following configuration instead:
Rails:
Enabled: true
- cops: Layout/CaseIndentation
parameters: IndentWhenRelativeTo
alternative: EnforcedStyle
- cops:
- Lint/BlockAlignment
- Layout/BlockAlignment
- Lint/EndAlignment
- Layout/EndAlignment
- Lint/DefEndAlignment
- Layout/DefEndAlignment
parameters: AlignWith
alternative: EnforcedStyleAlignWith
- cops: Rails/UniqBeforePluck
parameters: EnforcedMode
alternative: EnforcedStyle
- cops: Style/MethodCallWithArgsParentheses
parameters: IgnoredMethodPatterns
alternative: IgnoredPatterns
- cops:
- Performance/Count
- Performance/Detect
parameters: SafeMode
reason: "`SafeMode` has been removed. Use `SafeAutoCorrect` instead."
- cops: Bundler/GemComment
parameters: Whitelist
alternative: IgnoredGems
- cops:
- Lint/SafeNavigationChain
- Lint/SafeNavigationConsistency
- Style/NestedParenthesizedCalls
- Style/SafeNavigation
- Style/TrivialAccessors
parameters: Whitelist
alternative: AllowedMethods
- cops: Style/IpAddresses
parameters: Whitelist
alternative: AllowedAddresses
- cops: Naming/HeredocDelimiterNaming
parameters: Blacklist
alternative: ForbiddenDelimiters
- cops: Naming/PredicateName
parameters: NamePrefixBlacklist
alternative: ForbiddenPrefixes
- cops: Naming/PredicateName
parameters: NameWhitelist
alternative: AllowedMethods
- cops:
- Metrics/BlockLength
- Metrics/MethodLength
parameters: ExcludedMethods
alternative: IgnoredMethods
severity: warning
- cops: Lint/Debugger
parameters: DebuggerReceivers
reason: "`DebuggerReceivers` is no longer necessary, method receivers should be specified in `DebuggerMethods` instead."
severity: warning
# Enforced styles that have been removed or replaced
changed_enforced_styles:
- cops: Layout/IndentationConsistency
parameters: EnforcedStyle
value: rails
alternative: indented_internal_methods