talkable-style 1.2022.0131 → 1.2022.0201

Sign up to get free protection for your applications and to get access to all the features.
data/config/rspec.yml ADDED
@@ -0,0 +1,136 @@
1
+ require: rubocop-rspec
2
+
3
+ RSpec:
4
+ Language:
5
+ Includes:
6
+ Examples:
7
+ - it_has_behavior
8
+
9
+ RSpec/AroundBlock:
10
+ Enabled: true
11
+ RSpec/Be:
12
+ Enabled: true
13
+ RSpec/BeEql:
14
+ Enabled: true
15
+ RSpec/BeforeAfterAll:
16
+ Enabled: true
17
+ RSpec/Capybara/CurrentPathExpectation:
18
+ Enabled: true
19
+ RSpec/Capybara/FeatureMethods:
20
+ Enabled: true
21
+ RSpec/Capybara/VisibilityMatcher:
22
+ Enabled: true
23
+ RSpec/ContextMethod:
24
+ Enabled: true
25
+ RSpec/DescribeClass:
26
+ Enabled: true
27
+ Exclude:
28
+ - spec/system/**/*
29
+ - spec/tasks/**/*
30
+ RSpec/DescribeMethod:
31
+ Enabled: true
32
+ RSpec/DescribeSymbol:
33
+ Enabled: true
34
+ RSpec/DescribedClass:
35
+ Enabled: true
36
+ RSpec/DescribedClassModuleWrapping:
37
+ Enabled: true
38
+ RSpec/EmptyExampleGroup:
39
+ Enabled: true
40
+ Exclude:
41
+ - spec/requests/api_v2/**/*
42
+ RSpec/EmptyHook:
43
+ Enabled: true
44
+ RSpec/EmptyLineAfterExample:
45
+ Enabled: true
46
+ RSpec/EmptyLineAfterExampleGroup:
47
+ Enabled: true
48
+ RSpec/ExampleWithoutDescription:
49
+ Enabled: true
50
+ RSpec/ExampleWording:
51
+ Enabled: true
52
+ RSpec/ExcessiveDocstringSpacing:
53
+ Enabled: true
54
+ RSpec/ExpectInHook:
55
+ Enabled: true
56
+ RSpec/ExpectOutput:
57
+ Enabled: true
58
+ RSpec/FactoryBot/AttributeDefinedStatically:
59
+ Enabled: true
60
+ RSpec/FactoryBot/CreateList:
61
+ Enabled: true
62
+ RSpec/FactoryBot/FactoryClassName:
63
+ Enabled: true
64
+ RSpec/FactoryBot/SyntaxMethods:
65
+ Enabled: true
66
+ RSpec/FilePath:
67
+ Enabled: true
68
+ IgnoreMethods: true
69
+ Exclude:
70
+ - spec/requests/api_v2/**/*
71
+ RSpec/Focus:
72
+ Enabled: true
73
+ RSpec/HooksBeforeExamples:
74
+ Enabled: true
75
+ RSpec/IdenticalEqualityAssertion:
76
+ Enabled: true
77
+ RSpec/InstanceSpy:
78
+ Enabled: true
79
+ RSpec/InstanceVariable:
80
+ Enabled: true
81
+ RSpec/ItBehavesLike:
82
+ Enabled: true
83
+ RSpec/IteratedExpectation:
84
+ Enabled: true
85
+ RSpec/LeakyConstantDeclaration:
86
+ Enabled: true
87
+ RSpec/LetBeforeExamples:
88
+ Enabled: true
89
+ RSpec/LetSetup:
90
+ Enabled: true
91
+ RSpec/MultipleDescribes:
92
+ Enabled: true
93
+ RSpec/MultipleSubjects:
94
+ Enabled: true
95
+ RSpec/OverwritingSetup:
96
+ Enabled: true
97
+ RSpec/Rails/AvoidSetupHook:
98
+ Enabled: true
99
+ RSpec/Rails/HttpStatus:
100
+ Enabled: true
101
+ RSpec/ReceiveCounts:
102
+ Enabled: true
103
+ RSpec/ReceiveNever:
104
+ Enabled: true
105
+ RSpec/RepeatedDescription:
106
+ Enabled: true
107
+ RSpec/RepeatedExample:
108
+ Enabled: true
109
+ RSpec/RepeatedExampleGroupBody:
110
+ Enabled: true
111
+ RSpec/RepeatedExampleGroupDescription:
112
+ Enabled: true
113
+ RSpec/ScatteredLet:
114
+ Enabled: true
115
+ RSpec/ScatteredSetup:
116
+ Enabled: true
117
+ RSpec/SharedContext:
118
+ Enabled: true
119
+ RSpec/SharedExamples:
120
+ Enabled: true
121
+ RSpec/SingleArgumentMessageChain:
122
+ Enabled: true
123
+ RSpec/StubbedMock:
124
+ Enabled: true
125
+ RSpec/SubjectDeclaration:
126
+ Enabled: true
127
+ RSpec/VariableDefinition:
128
+ Enabled: true
129
+ RSpec/VariableName:
130
+ Enabled: true
131
+ RSpec/VerifiedDoubles:
132
+ Enabled: true
133
+ RSpec/VoidExpect:
134
+ Enabled: true
135
+ RSpec/Yield:
136
+ Enabled: true
@@ -0,0 +1,12 @@
1
+ Security/Eval:
2
+ Enabled: true
3
+ Security/IoMethods:
4
+ Enabled: true
5
+ Security/JSONLoad:
6
+ Enabled: true
7
+ Security/MarshalLoad:
8
+ Enabled: true
9
+ Security/Open:
10
+ Enabled: true
11
+ Security/YAMLLoad:
12
+ Enabled: true
data/config/style.yml ADDED
@@ -0,0 +1,329 @@
1
+ Style/AccessorGrouping:
2
+ Enabled: true
3
+ Style/Alias:
4
+ Enabled: true
5
+ EnforcedStyle: prefer_alias_method
6
+ Style/AndOr:
7
+ Enabled: true
8
+ Style/ArgumentsForwarding:
9
+ Enabled: true
10
+ Style/ArrayCoercion:
11
+ Enabled: true
12
+ Style/ArrayJoin:
13
+ Enabled: true
14
+ Style/Attr:
15
+ Enabled: true
16
+ Style/AutoResourceCleanup:
17
+ Enabled: true
18
+ Style/BarePercentLiterals:
19
+ Enabled: true
20
+ Style/BeginBlock:
21
+ Enabled: true
22
+ Style/BisectedAttrAccessor:
23
+ Enabled: true
24
+ Style/BlockComments:
25
+ Enabled: true
26
+ Exclude:
27
+ - support/**/*
28
+ Style/BlockDelimiters:
29
+ Enabled: true
30
+ Exclude:
31
+ - spec/**/*
32
+ Style/CaseLikeIf:
33
+ Enabled: true
34
+ Style/CharacterLiteral:
35
+ Enabled: true
36
+ Style/ClassCheck:
37
+ Enabled: true
38
+ Style/ClassEqualityComparison:
39
+ Enabled: true
40
+ Style/ClassMethods:
41
+ Enabled: true
42
+ Style/CollectionCompact:
43
+ Enabled: true
44
+ Style/CollectionMethods:
45
+ Enabled: true
46
+ PreferredMethods:
47
+ collect: 'map'
48
+ collect!: 'map!'
49
+ detect: 'find'
50
+ find_all: 'select'
51
+ Style/ColonMethodCall:
52
+ Enabled: true
53
+ Style/ColonMethodDefinition:
54
+ Enabled: true
55
+ Style/CombinableLoops:
56
+ Enabled: true
57
+ Style/CommentAnnotation:
58
+ Enabled: true
59
+ Style/ConditionalAssignment:
60
+ Enabled: true
61
+ Style/DateTime:
62
+ Enabled: true
63
+ Style/DefWithParentheses:
64
+ Enabled: true
65
+ Style/Dir:
66
+ Enabled: true
67
+ Style/DocumentDynamicEvalDefinition:
68
+ Enabled: true
69
+ Style/EachForSimpleLoop:
70
+ Enabled: true
71
+ Style/EachWithObject:
72
+ Enabled: true
73
+ Style/EmptyBlockParameter:
74
+ Enabled: true
75
+ Style/EmptyElse:
76
+ Enabled: true
77
+ Style/EmptyLambdaParameter:
78
+ Enabled: true
79
+ Style/EmptyLiteral:
80
+ Enabled: true
81
+ Style/EndBlock:
82
+ Enabled: true
83
+ Style/EndlessMethod:
84
+ Enabled: true
85
+ Style/EvalWithLocation:
86
+ Enabled: true
87
+ Style/EvenOdd:
88
+ Enabled: true
89
+ Style/ExpandPathArguments:
90
+ Enabled: true
91
+ Style/ExplicitBlockArgument:
92
+ Enabled: true
93
+ Style/ExponentialNotation:
94
+ Enabled: true
95
+ Style/FileRead:
96
+ Enabled: true
97
+ Style/FileWrite:
98
+ Enabled: true
99
+ Style/FloatDivision:
100
+ Enabled: true
101
+ Style/For:
102
+ Enabled: true
103
+ Style/GlobalStdStream:
104
+ Enabled: true
105
+ Style/GlobalVars:
106
+ Enabled: true
107
+ Style/HashConversion:
108
+ Enabled: true
109
+ Style/HashEachMethods:
110
+ Enabled: true
111
+ Style/HashExcept:
112
+ Enabled: true
113
+ Style/HashLikeCase:
114
+ Enabled: true
115
+ Style/HashSyntax:
116
+ Enabled: true
117
+ EnforcedShorthandSyntax: never
118
+ Style/HashTransformKeys:
119
+ Enabled: true
120
+ Style/HashTransformValues:
121
+ Enabled: true
122
+ Style/IdenticalConditionalBranches:
123
+ Enabled: true
124
+ Style/IfInsideElse:
125
+ Enabled: true
126
+ Style/IfUnlessModifierOfIfUnless:
127
+ Enabled: true
128
+ Style/IfWithBooleanLiteralBranches:
129
+ Enabled: true
130
+ Style/IfWithSemicolon:
131
+ Enabled: true
132
+ Style/InfiniteLoop:
133
+ Enabled: true
134
+ Style/InverseMethods:
135
+ Enabled: true
136
+ Style/KeywordParametersOrder:
137
+ Enabled: true
138
+ Style/LambdaCall:
139
+ Enabled: true
140
+ Style/LineEndConcatenation:
141
+ Enabled: true
142
+ Style/MapToHash:
143
+ Enabled: true
144
+ Style/MethodCallWithoutArgsParentheses:
145
+ Enabled: true
146
+ Style/MethodDefParentheses:
147
+ Enabled: true
148
+ Style/MinMax:
149
+ Enabled: true
150
+ Style/MissingRespondToMissing:
151
+ Enabled: true
152
+ Style/MixinGrouping:
153
+ Enabled: true
154
+ Style/MixinUsage:
155
+ Enabled: true
156
+ Style/ModuleFunction:
157
+ Enabled: true
158
+ Style/MultilineIfThen:
159
+ Enabled: true
160
+ Style/MultilineInPatternThen:
161
+ Enabled: true
162
+ Style/MultilineMemoization:
163
+ Enabled: true
164
+ Style/MultilineMethodSignature:
165
+ Enabled: true
166
+ Style/MultilineWhenThen:
167
+ Enabled: true
168
+ Style/MultipleComparison:
169
+ Enabled: true
170
+ Style/MutableConstant:
171
+ Enabled: true
172
+ Style/NegatedIf:
173
+ Enabled: true
174
+ Style/NegatedIfElseCondition:
175
+ Enabled: true
176
+ Style/NegatedUnless:
177
+ Enabled: true
178
+ Style/NegatedWhile:
179
+ Enabled: true
180
+ Style/NestedModifier:
181
+ Enabled: true
182
+ Style/NestedTernaryOperator:
183
+ Enabled: true
184
+ Style/Next:
185
+ Enabled: true
186
+ Style/NilComparison:
187
+ Enabled: true
188
+ Style/NilLambda:
189
+ Enabled: true
190
+ Style/NonNilCheck:
191
+ Enabled: true
192
+ Style/Not:
193
+ Enabled: true
194
+ Style/NumberedParameters:
195
+ Enabled: true
196
+ Style/NumberedParametersLimit:
197
+ Enabled: true
198
+ Style/NumericLiteralPrefix:
199
+ Enabled: true
200
+ Style/NumericLiterals:
201
+ Enabled: true
202
+ Style/OneLineConditional:
203
+ Enabled: true
204
+ Style/OpenStructUse:
205
+ Enabled: true
206
+ Style/OptionalArguments:
207
+ Enabled: true
208
+ Style/OptionalBooleanParameter:
209
+ Enabled: true
210
+ Style/ParenthesesAroundCondition:
211
+ Enabled: true
212
+ Style/PercentQLiterals:
213
+ Enabled: true
214
+ Style/PerlBackrefs:
215
+ Enabled: true
216
+ Style/PreferredHashMethods:
217
+ Enabled: true
218
+ Style/Proc:
219
+ Enabled: true
220
+ Style/RaiseArgs:
221
+ Enabled: true
222
+ Style/RedundantArgument:
223
+ Enabled: true
224
+ Style/RedundantAssignment:
225
+ Enabled: true
226
+ Style/RedundantBegin:
227
+ Enabled: true
228
+ Style/RedundantCapitalW:
229
+ Enabled: true
230
+ Style/RedundantCondition:
231
+ Enabled: true
232
+ Style/RedundantConditional:
233
+ Enabled: true
234
+ Style/RedundantException:
235
+ Enabled: true
236
+ Style/RedundantFetchBlock:
237
+ Enabled: true
238
+ Style/RedundantFileExtensionInRequire:
239
+ Enabled: true
240
+ Style/RedundantFreeze:
241
+ Enabled: true
242
+ Style/RedundantInterpolation:
243
+ Enabled: true
244
+ Style/RedundantParentheses:
245
+ Enabled: true
246
+ Style/RedundantPercentQ:
247
+ Enabled: true
248
+ Style/RedundantRegexpCharacterClass:
249
+ Enabled: true
250
+ Style/RedundantRegexpEscape:
251
+ Enabled: true
252
+ Style/RedundantReturn:
253
+ Enabled: true
254
+ Style/RedundantSelf:
255
+ Enabled: true
256
+ Style/RedundantSelfAssignment:
257
+ Enabled: true
258
+ Style/RedundantSelfAssignmentBranch:
259
+ Enabled: true
260
+ Style/RedundantSort:
261
+ Enabled: true
262
+ Style/RedundantSortBy:
263
+ Enabled: true
264
+ Style/RescueStandardError:
265
+ Enabled: true
266
+ Style/ReturnNil:
267
+ Enabled: true
268
+ Style/SafeNavigation:
269
+ Enabled: true
270
+ Style/Sample:
271
+ Enabled: true
272
+ Style/SelectByRegexp:
273
+ Enabled: true
274
+ Style/SelfAssignment:
275
+ Enabled: true
276
+ Style/SignalException:
277
+ Enabled: true
278
+ Style/SingleArgumentDig:
279
+ Enabled: true
280
+ Style/SlicingWithRange:
281
+ Enabled: true
282
+ Style/SoleNestedConditional:
283
+ Enabled: true
284
+ Style/SpecialGlobalVars:
285
+ Enabled: true
286
+ Style/StabbyLambdaParentheses:
287
+ Enabled: true
288
+ Style/StaticClass:
289
+ Enabled: true
290
+ Style/StderrPuts:
291
+ Enabled: true
292
+ Style/StringChars:
293
+ Enabled: true
294
+ Style/StringConcatenation:
295
+ Enabled: true
296
+ Style/StringMethods:
297
+ Enabled: true
298
+ Style/Strip:
299
+ Enabled: true
300
+ Style/StructInheritance:
301
+ Enabled: true
302
+ Style/SwapValues:
303
+ Enabled: true
304
+ Style/SymbolLiteral:
305
+ Enabled: true
306
+ Style/SymbolProc:
307
+ Enabled: true
308
+ Style/TopLevelMethodDefinition:
309
+ Enabled: true
310
+ Style/TrailingBodyOnClass:
311
+ Enabled: true
312
+ Style/TrailingBodyOnModule:
313
+ Enabled: true
314
+ Style/TrailingCommaInBlockArgs:
315
+ Enabled: true
316
+ Style/TrivialAccessors:
317
+ Enabled: true
318
+ Style/UnlessElse:
319
+ Enabled: true
320
+ Style/UnpackFirst:
321
+ Enabled: true
322
+ Style/VariableInterpolation:
323
+ Enabled: true
324
+ Style/WhileUntilDo:
325
+ Enabled: true
326
+ Style/YodaCondition:
327
+ Enabled: true
328
+ Style/ZeroLengthPredicate:
329
+ Enabled: true