rubocop-config-captive 1.0.0.pre.alpha.3 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,306 @@
1
+ ### ⚠️ GENERATED WITH `script/pull`. DO NOT EDIT MANUALLY. ###
2
+ Lint/AmbiguousBlockAssociation:
3
+ Enabled: false
4
+
5
+ Lint/AmbiguousOperator:
6
+ Description: Checks for ambiguous operators in the first argument of a method invocation
7
+ without parentheses.
8
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#parens-as-args
9
+ Enabled: true
10
+
11
+ Lint/AmbiguousRegexpLiteral:
12
+ Description: Checks for ambiguous regexp literals in the first argument of a method
13
+ invocation without parenthesis.
14
+ Enabled: false
15
+
16
+ Lint/AssignmentInCondition:
17
+ Description: Don't use assignment in conditions.
18
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#safe-assignment-in-condition
19
+ Enabled: true
20
+ AllowSafeAssignment: false
21
+
22
+ Lint/BigDecimalNew:
23
+ Description: '`BigDecimal.new()` is deprecated. Use `BigDecimal()` instead.'
24
+ Enabled: false
25
+
26
+ Lint/BooleanSymbol:
27
+ Enabled: false
28
+
29
+ Lint/CircularArgumentReference:
30
+ Description: Don't refer to the keyword argument in the default value.
31
+ Enabled: false
32
+
33
+ Lint/Debugger:
34
+ Description: Check for debugger calls.
35
+ Enabled: true
36
+
37
+ # Supports --auto-correct
38
+ Lint/DeprecatedClassMethods:
39
+ Description: Check for deprecated class method calls.
40
+ Enabled: false
41
+
42
+ Lint/DuplicateCaseCondition:
43
+ Enabled: false
44
+
45
+ Lint/DuplicateMethods:
46
+ Description: Check for duplicate methods calls.
47
+ Enabled: true
48
+
49
+ Lint/DuplicateHashKey:
50
+ Description: Check for duplicate keys in hash literals.
51
+ Enabled: true
52
+
53
+ Lint/EachWithObjectArgument:
54
+ Description: Check for immutable argument given to each_with_object.
55
+ Enabled: false
56
+
57
+ Lint/ElseLayout:
58
+ Description: Check for odd code arrangement in an else block.
59
+ Enabled: true
60
+
61
+ Lint/EmptyEnsure:
62
+ Description: Checks for empty ensure block.
63
+ Enabled: false
64
+
65
+ Lint/EmptyInterpolation:
66
+ Description: Checks for empty string interpolation.
67
+ Enabled: true
68
+
69
+ Lint/EmptyWhen:
70
+ Enabled: false
71
+
72
+ Lint/EnsureReturn:
73
+ Description: Do not use return in an ensure block.
74
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-return-ensure
75
+ Enabled: false
76
+
77
+ Lint/ErbNewArguments:
78
+ Enabled: false
79
+
80
+ Lint/FlipFlop:
81
+ Description: Checks for flip flops
82
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-flip-flops
83
+ Enabled: false
84
+
85
+ Lint/FloatOutOfRange:
86
+ Description: Catches floating-point literals too large or small for Ruby to represent.
87
+ Enabled: false
88
+
89
+ Lint/FormatParameterMismatch:
90
+ Description: The number of parameters to format/sprint must match the fields.
91
+ Enabled: true
92
+
93
+ Lint/SuppressedException:
94
+ Description: Don't suppress exception.
95
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#dont-hide-exceptions
96
+ Enabled: false
97
+
98
+ Lint/ImplicitStringConcatenation:
99
+ Description: Checks for adjacent string literals on the same line, which could better
100
+ be represented as a single string literal.
101
+ Enabled: true
102
+
103
+ Lint/IneffectiveAccessModifier:
104
+ Description: Checks for attempts to use `private` or `protected` to set the visibility
105
+ of a class method, which does not work.
106
+ Enabled: true
107
+
108
+ Lint/InheritException:
109
+ Enabled: true
110
+ # The default base class in favour of `Exception`.
111
+ EnforcedStyle: standard_error
112
+
113
+ Lint/InterpolationCheck:
114
+ Enabled: false
115
+
116
+ Lint/LiteralAsCondition:
117
+ Description: Checks of literals used in conditions.
118
+ Enabled: false
119
+
120
+ # Supports --auto-correct
121
+ Lint/LiteralInInterpolation:
122
+ Description: Avoid interpolating literals in strings
123
+ Enabled: false
124
+ AutoCorrect: false
125
+
126
+ Lint/Loop:
127
+ Description: Use Kernel#loop with break rather than begin/end/until or begin/end/while
128
+ for post-loop tests.
129
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#loop-with-break
130
+ Enabled: false
131
+
132
+ Lint/MissingCopEnableDirective:
133
+ # Maximum number of consecutive lines the cop can be disabled for.
134
+ # 0 allows only single-line disables
135
+ # 1 would mean the maximum allowed is the following:
136
+ # # rubocop:disable SomeCop
137
+ # a = 1
138
+ # # rubocop:enable SomeCop
139
+ # .inf for any size
140
+ MaximumRangeSize: .inf
141
+ Description: 'Checks for a `# rubocop:enable` after `# rubocop:disable`'
142
+ Enabled: true
143
+
144
+ Lint/MissingSuper:
145
+ Enabled: false
146
+
147
+ Lint/MultipleComparison:
148
+ Enabled: false
149
+
150
+ Lint/NestedMethodDefinition:
151
+ Description: Do not use nested method definitions.
152
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-nested-methods
153
+ Enabled: false
154
+
155
+ Lint/NextWithoutAccumulator:
156
+ Enabled: false
157
+
158
+ Lint/NonLocalExitFromIterator:
159
+ Description: Do not use return in iterator to cause non-local exit.
160
+ Enabled: false
161
+
162
+ Lint/OrderedMagicComments:
163
+ Description: 'Checks the proper ordering of magic comments and whether a magic comment is not placed before a shebang.'
164
+ Enabled: true
165
+
166
+ Lint/ParenthesesAsGroupedExpression:
167
+ Description: Checks for method calls with a space before the opening parenthesis.
168
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#parens-no-spaces
169
+ Enabled: true
170
+
171
+ Lint/PercentStringArray:
172
+ Description: >-
173
+ Checks for unwanted commas and quotes in %w/%W literals.
174
+ Enabled: true
175
+
176
+ Lint/PercentSymbolArray:
177
+ Enabled: false
178
+
179
+ Lint/RandOne:
180
+ Description: Checks for `rand(1)` calls. Such calls always return `0` and most likely
181
+ a mistake.
182
+ Enabled: true
183
+
184
+ Lint/RedundantWithIndex:
185
+ Enabled: false
186
+
187
+ Lint/RedundantWithObject:
188
+ Enabled: false
189
+
190
+ Lint/RegexpAsCondition:
191
+ Enabled: false
192
+
193
+ Lint/RequireParentheses:
194
+ Description: Use parentheses in the method call to avoid confusion about precedence.
195
+ Enabled: true
196
+
197
+ Lint/RescueException:
198
+ Description: Avoid rescuing the Exception class.
199
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-blind-rescues
200
+ Enabled: true
201
+
202
+ Lint/RescueType:
203
+ Enabled: false
204
+
205
+ Lint/ReturnInVoidContext:
206
+ Enabled: false
207
+
208
+ Lint/SafeNavigationChain:
209
+ Enabled: false
210
+
211
+ Lint/SafeNavigationConsistency:
212
+ Enabled: false
213
+
214
+ Lint/ScriptPermission:
215
+ Enabled: false
216
+
217
+ Lint/ShadowedArgument:
218
+ Description: 'Avoid reassigning arguments before they were used.'
219
+ Enabled: true
220
+
221
+ Lint/ShadowedException:
222
+ Description: >-
223
+ Avoid rescuing a higher level exception
224
+ before a lower level exception.
225
+ Enabled: false
226
+
227
+ Lint/ShadowingOuterLocalVariable:
228
+ Description: Do not use the same name as outer local variable for block arguments
229
+ or block local variables.
230
+ Enabled: true
231
+
232
+ # Supports --auto-correct
233
+ Lint/RedundantStringCoercion:
234
+ Description: Checks for Object#to_s usage in string interpolation.
235
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-to-s
236
+ Enabled: true
237
+
238
+ Lint/UnderscorePrefixedVariableName:
239
+ Description: Do not use prefix `_` for a variable that is used.
240
+ Enabled: false
241
+
242
+ Lint/UnifiedInteger:
243
+ Enabled: false
244
+
245
+ Lint/RedundantCopDisableDirective:
246
+ Description: >-
247
+ Checks for rubocop:disable comments that can be removed.
248
+ Note: this cop is not disabled when disabling all cops. It must be explicitly disabled.
249
+ Enabled: true
250
+
251
+ Lint/RedundantCopEnableDirective:
252
+ Description: Checks for rubocop:enable comments that can be removed.
253
+ Enabled: true
254
+
255
+ Lint/RedundantRequireStatement:
256
+ Enabled: false
257
+
258
+ Lint/RedundantSplatExpansion:
259
+ Enabled: false
260
+
261
+ Lint/UnreachableCode:
262
+ Description: Unreachable code.
263
+ Enabled: false
264
+
265
+ # Supports --auto-correct
266
+ Lint/UnusedBlockArgument:
267
+ Description: Checks for unused block arguments.
268
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#underscore-unused-vars
269
+ Enabled: false
270
+
271
+ # Supports --auto-correct
272
+ Lint/UnusedMethodArgument:
273
+ Description: Checks for unused method arguments.
274
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#underscore-unused-vars
275
+ Enabled: false
276
+
277
+ Lint/UriEscapeUnescape:
278
+ Enabled: false
279
+
280
+ Lint/UriRegexp:
281
+ Enabled: false
282
+
283
+ Lint/UselessAccessModifier:
284
+ Description: Checks for useless access modifiers.
285
+ Enabled: true
286
+
287
+ Lint/UselessAssignment:
288
+ Description: Checks for useless assignment to a local variable.
289
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#underscore-unused-vars
290
+ Enabled: true
291
+
292
+ Lint/BinaryOperatorWithIdenticalOperands:
293
+ Description: Checks for comparison of something with itself.
294
+ Enabled: true
295
+
296
+ Lint/UselessElseWithoutRescue:
297
+ Description: Checks for useless `else` in `begin..end` without `rescue`.
298
+ Enabled: true
299
+
300
+ Lint/UselessSetterCall:
301
+ Description: Checks for useless setter call to a local variable.
302
+ Enabled: true
303
+
304
+ Lint/Void:
305
+ Description: Possible use of operator/literal/variable in void context.
306
+ Enabled: false
@@ -0,0 +1,44 @@
1
+ ### ⚠️ GENERATED WITH `script/pull`. DO NOT EDIT MANUALLY. ###
2
+ # We're using cane for ABC complexity checks
3
+ Metrics/AbcSize:
4
+ Enabled: false
5
+
6
+ Metrics/BlockLength:
7
+ Enabled: false
8
+
9
+ Metrics/BlockNesting:
10
+ Description: Avoid excessive block nesting
11
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#three-is-the-number-thou-shalt-count
12
+ Enabled: false
13
+ Max: 3
14
+
15
+ # We are not perfect robot-humans
16
+ Metrics/ClassLength:
17
+ Enabled: false
18
+
19
+ Metrics/CyclomaticComplexity:
20
+ Description: A complexity metric that is strongly correlated to the number of test
21
+ cases needed to validate a method.
22
+ Enabled: false
23
+ Max: 6
24
+
25
+ Metrics/MethodLength:
26
+ Enabled: false
27
+
28
+ Metrics/ModuleLength:
29
+ Description: Avoid modules longer than 100 lines of code.
30
+ Enabled: false
31
+ CountComments: false
32
+ Max: 100
33
+
34
+ Metrics/ParameterLists:
35
+ Description: Avoid parameter lists longer than three or four parameters.
36
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#too-many-params
37
+ Enabled: false
38
+ Max: 5
39
+ CountKeywordArgs: true
40
+
41
+ Metrics/PerceivedComplexity:
42
+ Description: A complexity metric geared towards measuring complexity for a human reader.
43
+ Enabled: false
44
+ Max: 7
@@ -0,0 +1,89 @@
1
+ ### ⚠️ GENERATED WITH `script/pull`. DO NOT EDIT MANUALLY. ###
2
+ Naming/AccessorMethodName:
3
+ Description: Check the naming of accessor methods for get_/set_.
4
+ Enabled: false
5
+
6
+ Naming/AsciiIdentifiers:
7
+ Description: Use only ascii symbols in identifiers.
8
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#english-identifiers
9
+ Enabled: true
10
+
11
+ Naming/BinaryOperatorParameterName:
12
+ Description: When defining binary operators, name the argument other.
13
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#other-arg
14
+ Enabled: false
15
+
16
+ Naming/ClassAndModuleCamelCase:
17
+ Description: Use CamelCase for classes and modules.
18
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#camelcase-classes
19
+ Enabled: true
20
+
21
+ Naming/ConstantName:
22
+ Description: Constants should use SCREAMING_SNAKE_CASE.
23
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#screaming-snake-case
24
+ Enabled: false
25
+
26
+ Naming/FileName:
27
+ Description: Use snake_case for source file names.
28
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#snake-case-files
29
+ Enabled: false
30
+
31
+ Naming/HeredocDelimiterCase:
32
+ Enabled: false
33
+
34
+ Naming/HeredocDelimiterNaming:
35
+ Enabled: false
36
+
37
+ Naming/MemoizedInstanceVariableName:
38
+ Description: >-
39
+ Memoized method name should match memo instance variable name.
40
+ Enabled: false
41
+
42
+ Naming/MethodName:
43
+ Description: Use the configured style when naming methods.
44
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#snake-case-symbols-methods-vars
45
+ Enabled: false
46
+ EnforcedStyle: snake_case
47
+ SupportedStyles:
48
+ - snake_case
49
+ - camelCase
50
+
51
+ Naming/PredicateName:
52
+ Description: Check the names of predicate methods.
53
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#bool-methods-qmark
54
+ Enabled: false
55
+ NamePrefix:
56
+ - is_
57
+ - has_
58
+ - have_
59
+ ForbiddenPrefixes:
60
+ - is_
61
+ - has_
62
+ - have_
63
+
64
+ Naming/BlockParameterName:
65
+ Description: >-
66
+ Checks for block parameter names that contain capital letters,
67
+ end in numbers, or do not meet a minimal length.
68
+ Enabled: false
69
+
70
+ Naming/MethodParameterName:
71
+ Description: >-
72
+ Checks for method parameter names that contain capital letters,
73
+ end in numbers, or do not meet a minimal length.
74
+ Enabled: false
75
+
76
+ Naming/VariableName:
77
+ Description: Use the configured style when naming variables.
78
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#snake-case-symbols-methods-vars
79
+ Enabled: true
80
+ EnforcedStyle: snake_case
81
+ SupportedStyles:
82
+ - snake_case
83
+ - camelCase
84
+
85
+ Naming/VariableNumber:
86
+ Enabled: false
87
+
88
+ Naming/RescuedExceptionsVariableName:
89
+ Enabled: false
@@ -0,0 +1,126 @@
1
+ ### ⚠️ GENERATED WITH `script/pull`. DO NOT EDIT MANUALLY. ###
2
+ require:
3
+ - rubocop-performance
4
+
5
+ Performance/Caller:
6
+ Enabled: false
7
+
8
+ # Type 'Performance' (8):
9
+ # Supports --auto-correct
10
+ Performance/CaseWhenSplat:
11
+ Description: Place `when` conditions that use splat at the end of the list of `when`
12
+ branches.
13
+ Enabled: false
14
+
15
+ # Supports --auto-correct
16
+ Performance/Casecmp:
17
+ Description: Use `casecmp` rather than `downcase ==`.
18
+ Reference: https://github.com/JuanitoFatas/fast-ruby#stringcasecmp-vs-stringdowncase---code
19
+ Enabled: false
20
+
21
+ Performance/CompareWithBlock:
22
+ Enabled: false
23
+
24
+ # Supports --auto-correct
25
+ Performance/Count:
26
+ Description: Use `count` instead of `select...size`, `reject...size`, `select...count`,
27
+ `reject...count`, `select...length`, and `reject...length`.
28
+ Enabled: false
29
+
30
+ # Supports --auto-correct
31
+ Performance/Detect:
32
+ Description: Use `detect` instead of `select.first`, `find_all.first`, `select.last`,
33
+ and `find_all.last`.
34
+ Reference: https://github.com/JuanitoFatas/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code
35
+ Enabled: false
36
+
37
+ Performance/DoubleStartEndWith:
38
+ Description: Use `str.{start,end}_with?(x, ..., y, ...)` instead of `str.{start,end}_with?(x,
39
+ ...) || str.{start,end}_with?(y, ...)`.
40
+ Enabled: false
41
+
42
+ # Supports --auto-correct
43
+ Performance/EndWith:
44
+ Description: Use `end_with?` instead of a regex match anchored to the end of a string.
45
+ Reference: https://github.com/JuanitoFatas/fast-ruby#stringmatch-vs-stringstart_withstringend_with-code-start-code-end
46
+ Enabled: false
47
+
48
+ Performance/FixedSize:
49
+ Description: Do not compute the size of statically sized objects except in constants
50
+ Enabled: false
51
+
52
+ # Supports --auto-correct
53
+ Performance/FlatMap:
54
+ Description: Use `Enumerable#flat_map` instead of `Enumerable#map...Array#flatten(1)`
55
+ or `Enumberable#collect..Array#flatten(1)`
56
+ Reference: https://github.com/JuanitoFatas/fast-ruby#enumerablemaparrayflatten-vs-enumerableflat_map-code
57
+ Enabled: false
58
+ EnabledForFlattenWithoutParams: false
59
+
60
+ Performance/InefficientHashSearch:
61
+ Enabled: false
62
+
63
+ # Supports --auto-correct
64
+ Performance/RangeInclude:
65
+ Description: Use `Range#cover?` instead of `Range#include?`.
66
+ Reference: https://github.com/JuanitoFatas/fast-ruby#cover-vs-include-code
67
+ Enabled: false
68
+
69
+ # Supports --auto-correct
70
+ Performance/RedundantBlockCall:
71
+ Description: Use `yield` instead of `block.call`.
72
+ Reference: https://github.com/JuanitoFatas/fast-ruby#proccall-vs-yield-code
73
+ Enabled: false
74
+
75
+ # Supports --auto-correct
76
+ Performance/RedundantMatch:
77
+ Description: Use `=~` instead of `String#match` or `Regexp#match` in a context where
78
+ the returned `MatchData` is not needed.
79
+ Enabled: false
80
+
81
+ # Supports --auto-correct
82
+ Performance/RedundantMerge:
83
+ Description: Use Hash#[]=, rather than Hash#merge! with a single key-value pair.
84
+ Reference: https://github.com/JuanitoFatas/fast-ruby#hashmerge-vs-hash-code
85
+ Enabled: false
86
+
87
+ Performance/RegexpMatch:
88
+ Enabled: false
89
+
90
+ # Supports --auto-correct
91
+ Performance/ReverseEach:
92
+ Description: Use `reverse_each` instead of `reverse.each`.
93
+ Reference: https://github.com/JuanitoFatas/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code
94
+ Enabled: false
95
+
96
+ # Supports --auto-correct
97
+ Performance/Size:
98
+ Description: Use `size` instead of `count` for counting the number of elements in
99
+ `Array` and `Hash`.
100
+ Reference: https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code
101
+ Enabled: false
102
+
103
+ # Supports --auto-correct
104
+ Performance/StartWith:
105
+ Description: Use `start_with?` instead of a regex match anchored to the beginning
106
+ of a string.
107
+ Reference: https://github.com/JuanitoFatas/fast-ruby#stringmatch-vs-stringstart_withstringend_with-code-start-code-end
108
+ Enabled: false
109
+
110
+ # Supports --auto-correct
111
+ Performance/StringReplacement:
112
+ Description: Use `tr` instead of `gsub` when you are replacing the same number of
113
+ characters. Use `delete` instead of `gsub` when you are deleting characters.
114
+ Reference: https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code
115
+ Enabled: false
116
+
117
+ Performance/TimesMap:
118
+ Description: Checks for .times.map calls.
119
+ Enabled: false
120
+
121
+ Performance/UnfreezeString:
122
+ Enabled: false
123
+
124
+ Performance/UriDefaultParser:
125
+ Enabled: false
126
+