simplycop 1.12.20 → 1.12.21

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d7b1dfbe91cd595f0491440519bdaf520cb4dfe9048ab500e5ed37f9a83eda2
4
- data.tar.gz: ed90b05962cb6537ff3370271a67659771232fcce4a35f535231b4bcd67f134e
3
+ metadata.gz: 68e568f306249b37bfb255cdd58ec03e209b2f1e0d81be18c8ef015dab756c4d
4
+ data.tar.gz: 84681f62a6470b474340dc9ab33310721a2caf41ada7245d2ab17c39e37b9038
5
5
  SHA512:
6
- metadata.gz: 20cf2ce53fc721de021c0be9f0fb63e119504b44599dfe3ce6f0d39afc6d5ba9cb79fcd9b91331dc3cd8852b51f4e998d7ae90206674cacd002cdba62963026b
7
- data.tar.gz: 4468e20beee4c4c03a12fc80599f92498a192f84d2842e8e8ce8aa056f1b59091eccdd2ae43905be36c4447c0d31e18af4b81cb74de99927dc6824431ad6864d
6
+ metadata.gz: f139da031074eb065eb31ecf446da61ce67c4fb33e7286dd601e8a236d44cdf3473e048b20f3936f615236e4a7ac866cfdb614bca263236fc17b33b04072898e
7
+ data.tar.gz: 8a02a4aef2f054cec5b66af68d2a922bf6cd0481c6337c51d3aff1de4ca82bbdfb6b0cd978537d639889475aec737e88f2bae86482bbc39b37d05caf7e402a84
data/.simplycop.yml CHANGED
@@ -25,21 +25,166 @@ AllCops:
25
25
  Gemspec/DeprecatedAttributeAssignment: # new in 1.30
26
26
  Enabled: true
27
27
 
28
+ Layout/AccessModifierIndentation:
29
+ Enabled: true
30
+
31
+ Layout/ArgumentAlignment:
32
+ Enabled: true
33
+
34
+ Layout/ArrayAlignment:
35
+ Enabled: true
36
+
37
+ Layout/AssignmentIndentation:
38
+ Enabled: true
39
+
40
+ Layout/BeginEndAlignment:
41
+ Enabled: true
42
+
43
+ Layout/BlockAlignment:
44
+ Enabled: true
45
+
46
+ Layout/BlockEndNewline:
47
+ Enabled: true
48
+
49
+ Layout/CaseIndentation:
50
+ Enabled: true
51
+
52
+ # Discussion needed about preferred structure. Dozens of fails on each repo if we stick with default, all but 4 on Chopin are autocorrectable
53
+ # Layout/ClassStructure:
54
+ # Enabled: true
55
+
56
+ Layout/ClosingHeredocIndentation:
57
+ Enabled: true
58
+
59
+ Layout/ClosingParenthesisIndentation:
60
+ Enabled: true
61
+
62
+ Layout/CommentIndentation:
63
+ Enabled: true
64
+
65
+ Layout/ConditionPosition:
66
+ Enabled: true
67
+
68
+ Layout/DefEndAlignment:
69
+ Enabled: true
70
+
71
+ Layout/DotPosition:
72
+ Enabled: true
73
+
74
+ Layout/ElseAlignment:
75
+ Enabled: true
76
+
77
+ Layout/EmptyComment:
78
+ Enabled: true
79
+
80
+ Layout/EmptyLineAfterGuardClause:
81
+ Enabled: true
82
+
83
+ # To discuss. Suggest should be true but 500+ autocorrectable fails on Chopin. None on others
84
+ # Layout/EmptyLineAfterMagicComment:
85
+ # Enabled: true
86
+
28
87
  Layout/EmptyLineAfterMultilineCondition:
29
88
  Enabled: true
30
89
 
90
+ Layout/EmptyLineBetweenDefs:
91
+ Enabled: true
92
+
93
+ Layout/EmptyLines:
94
+ Enabled: true
95
+
96
+ Layout/EmptyLinesAroundAccessModifier:
97
+ Enabled: true
98
+
99
+ Layout/EmptyLinesAroundArguments:
100
+ Enabled: true
101
+
102
+ Layout/EmptyLinesAroundAttributeAccessor:
103
+ Enabled: true
104
+
105
+ Layout/EmptyLinesAroundBeginBody:
106
+ Enabled: true
107
+
108
+ Layout/EmptyLinesAroundBlockBody:
109
+ Enabled: true
110
+
111
+ Layout/EmptyLinesAroundClassBody:
112
+ Enabled: true
113
+
114
+ Layout/EmptyLinesAroundExceptionHandlingKeywords:
115
+ Enabled: true
116
+
117
+ Layout/EmptyLinesAroundMethodBody:
118
+ Enabled: true
119
+
120
+ Layout/EmptyLinesAroundModuleBody:
121
+ Enabled: true
122
+
123
+ Layout/EndAlignment:
124
+ Enabled: true
125
+
126
+ Layout/EndOfLine:
127
+ Enabled: true
128
+
129
+ Layout/ExtraSpacing:
130
+ Enabled: true
131
+
132
+ Layout/FirstArgumentIndentation:
133
+ Enabled: true
134
+
135
+ Layout/FirstArrayElementIndentation:
136
+ Enabled: true
137
+
31
138
  Layout/FirstArrayElementLineBreak:
32
139
  Enabled: true
33
140
 
34
141
  Layout/FirstMethodArgumentLineBreak:
35
142
  Enabled: true
36
143
 
144
+ Layout/FirstHashElementIndentation:
145
+ Enabled: true
146
+
37
147
  Layout/FirstHashElementLineBreak:
38
148
  Enabled: true
39
149
 
150
+ # To discuss - 200+ fails on CoCo, none elsewhere
151
+ # Layout/FirstMethodArgumentLineBreak:
152
+ # Enabled: true
153
+
154
+ # To discuss - 100+ fails on Chopin, handful on others
155
+ # Layout/FirstMethodParameterLineBreak:
156
+ # Enabled: true
157
+
158
+ Layout/FirstParameterIndentation:
159
+ Enabled: true
160
+
161
+ Layout/HashAlignment:
162
+ Enabled: true
163
+
40
164
  Layout/HeredocArgumentClosingParenthesis:
41
165
  Enabled: true
42
166
 
167
+ Layout/HeredocIndentation:
168
+ Enabled: true
169
+
170
+ Layout/IndentationConsistency:
171
+ Enabled: true
172
+
173
+ Layout/IndentationStyle:
174
+ Enabled: true
175
+
176
+ Layout/IndentationWidth:
177
+ Enabled: true
178
+
179
+ Layout/InitialIndentation:
180
+ Enabled: true
181
+
182
+ Layout/LeadingCommentSpace:
183
+ Enabled: true
184
+
185
+ Layout/LeadingEmptyLines:
186
+ Enabled: true
187
+
43
188
  Layout/LineContinuationLeadingSpace:
44
189
  Enabled: true
45
190
 
@@ -49,9 +194,148 @@ Layout/LineContinuationSpacing:
49
194
  Layout/LineEndStringConcatenationIndentation:
50
195
  Enabled: true
51
196
 
197
+ # To discuss: configure line length? At default 120: 6805 fails on Chopin, 3 on Rater, 179 on CoCo
198
+ # Layout/LineLength
199
+ # Enabled: false
200
+ Layout/MultilineArrayBraceLayout:
201
+ Enabled: true
202
+
203
+ # To discuss: 100s of fails on each repo but autocorrectable
204
+ # Layout/MultilineArrayLineBreaks:
205
+ # Enabled: true
206
+
207
+ # To discuss: 100s of fails on each repo but autocorrectable
208
+ # Layout/MultilineAssignmentLayout:
209
+ # Enabled: true
210
+
211
+ Layout/MultilineBlockLayout:
212
+ Enabled: true
213
+
214
+ Layout/MultilineHashBraceLayout:
215
+ Enabled: true
216
+
217
+ # To discuss: 100s of fails on each repo but autocorrectable
218
+ # Layout/MultilineHashKeyLineBreaks:
219
+ # Enabled: true
220
+
221
+ # To discuss: 1000s of fails on each repo but autocorrectable
222
+ # Layout/MultilineMethodArgumentLineBreaks:
223
+ # Enabled: true
224
+
225
+ Layout/MultilineMethodCallBraceLayout:
226
+ Enabled: true
227
+
228
+ Layout/MultilineMethodCallIndentation:
229
+ Enabled: true
230
+
231
+ Layout/MultilineMethodDefinitionBraceLayout:
232
+ Enabled: true
233
+
234
+ # To discuss: 100s of fails on each repo but autocorrectable
235
+ # Layout/MultilineMethodParameterLineBreaks:
236
+ # Enabled: true
237
+
238
+ Layout/MultilineOperationIndentation:
239
+ Enabled: true
240
+
241
+ Layout/ParameterAlignment:
242
+ Enabled: true
243
+
244
+ # For discussion: 1000s of fails, all autocorrectable
245
+ # Layout/RedundantLineBreak:
246
+ # Enabled: true
247
+
248
+ Layout/RescueEnsureAlignment:
249
+ Enabled: true
250
+
251
+ # For discussion: 1000s of fails, all autocorrectable
252
+ # Layout/SingleLineBlockChain:
253
+ # Enabled: true
254
+
255
+ Layout/SpaceAfterColon:
256
+ Enabled: true
257
+
258
+ Layout/SpaceAfterComma:
259
+ Enabled: true
260
+
261
+ Layout/SpaceAfterMethodName:
262
+ Enabled: true
263
+
264
+ Layout/SpaceAfterNot:
265
+ Enabled: true
266
+
267
+ Layout/SpaceAfterSemicolon:
268
+ Enabled: true
269
+
270
+ Layout/SpaceAroundBlockParameters:
271
+ Enabled: true
272
+
273
+ Layout/SpaceAroundEqualsInParameterDefault:
274
+ Enabled: true
275
+
276
+ Layout/SpaceAroundKeyword:
277
+ Enabled: true
278
+
279
+ Layout/SpaceAroundMethodCallOperator:
280
+ Enabled: true
281
+
282
+ Layout/SpaceAroundOperators:
283
+ Enabled: true
284
+
285
+ Layout/SpaceBeforeBlockBraces:
286
+ Enabled: true
287
+
52
288
  Layout/SpaceBeforeBrackets:
53
289
  Enabled: true
54
290
 
291
+ Layout/SpaceBeforeComma:
292
+ Enabled: true
293
+
294
+ Layout/SpaceBeforeComment:
295
+ Enabled: true
296
+
297
+ Layout/SpaceBeforeFirstArg:
298
+ Enabled: true
299
+
300
+ Layout/SpaceBeforeSemicolon:
301
+ Enabled: true
302
+
303
+ Layout/SpaceInLambdaLiteral:
304
+ Enabled: true
305
+
306
+ Layout/SpaceInsideArrayLiteralBrackets:
307
+ Enabled: true
308
+
309
+ Layout/SpaceInsideArrayPercentLiteral:
310
+ Enabled: true
311
+
312
+ Layout/SpaceInsideBlockBraces:
313
+ Enabled: true
314
+
315
+ Layout/SpaceInsideHashLiteralBraces:
316
+ Enabled: true
317
+
318
+ Layout/SpaceInsideParens:
319
+ Enabled: true
320
+
321
+ Layout/SpaceInsidePercentLiteralDelimiters:
322
+ Enabled: true
323
+
324
+ Layout/SpaceInsideRangeLiteral:
325
+ Enabled: true
326
+
327
+ Layout/SpaceInsideReferenceBrackets:
328
+ Enabled: true
329
+
330
+ Layout/SpaceInsideStringInterpolation:
331
+ Enabled: true
332
+
333
+ Layout/TrailingEmptyLines:
334
+ Enabled: true
335
+
336
+ Layout/TrailingWhitespace:
337
+ Enabled: true
338
+
55
339
  Lint/AmbiguousAssignment:
56
340
  Enabled: true
57
341
 
data/.simplycop_rspec.yml CHANGED
@@ -117,6 +117,9 @@ Capybara/SpecificMatcher:
117
117
  FactoryBot/ConsistentParenthesesStyle:
118
118
  Enabled: true
119
119
 
120
+ FactoryBot/CreateList:
121
+ Enabled: false
122
+
120
123
  FactoryBot/FactoryNameStyle:
121
124
  Enabled: true
122
125
 
@@ -7,5 +7,5 @@
7
7
  #
8
8
 
9
9
  module Simplycop
10
- VERSION = '1.12.20'
10
+ VERSION = '1.12.21'
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplycop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.20
4
+ version: 1.12.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simply Business
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-22 00:00:00.000000000 Z
11
+ date: 2023-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop