wetransfer_style 0.6.4 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/ruby/default.yml +40 -50
  4. metadata +7 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 805334e866fbea0312b49d866a8ddd0fd5c2750ef2b4e589e1ae521deec7db52
4
- data.tar.gz: d8d1a44eea965cb28845166491c81987cd0ac5a5e8a7837ab7ea91ba0f4e6de9
3
+ metadata.gz: c017c33d503c26b47289f3af10204ef281b05ea8b1bddbf295b12c4b27f7dc24
4
+ data.tar.gz: 98c75c0392f1c17da275d5c0a6e5f63270c488406542a4b3e5b38a55e5e5b867
5
5
  SHA512:
6
- metadata.gz: bbb47c591490f8a0ed5cff02a56694e58a40119216b067595509f1783ac2537a178d2679a4b8301fa9f53c2abb4abfd3244a274bc7bd4376f8906422df9707ce
7
- data.tar.gz: f7e9d4513c80697bfcbbaf8f34570b04ba99ae84f2fc21768e2a0789eeefdb41252477ec7761d2c220d7716159d1ecd285c0e8ebec1d7f62d3539004b64c5bef
6
+ metadata.gz: 6f88b29438e8cdcf6da1b823f797c3ce4668b3cdd2bed49d6b6a49d432f3072eb121dc8da1ba4ab9f74134c78d4cbee59c184733aa2d665ea35c05fe877adb4c
7
+ data.tar.gz: d3321f0bdec11f26594460e3cc835c7d769f7ed21670ea8588da04aad5719dfde4884ab93dc701ba77dc5281e69381eafd148f98e64b2df0c170f96eff520f22
data/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.0
4
+
5
+ [Changed]
6
+
7
+ - Pin Rubocop version to 1.22.1
8
+ - Set TargetRubyVersion to 3.0
9
+
10
+ ## 0.8.0
11
+
12
+ [Changed]
13
+
14
+ - Set `EnforcedStyle: extend_self` for `Style/ModuleFunction`
15
+
16
+ ## 0.7.0
17
+
18
+ [Changed]
19
+
20
+ - Pin Rubocop version to 0.79.0
21
+ - Updated necessary linters' names.
22
+
23
+ ## 0.6.5
24
+
25
+ [Changed]
26
+
27
+ - Changed Style/FlipFlop to Lint/FlipFlop [PR #13](https://github.com/WeTransfer/wetransfer_style/pull/13)
28
+
3
29
  ## 0.6.4
4
30
 
5
31
  [Added]
data/ruby/default.yml CHANGED
@@ -2,15 +2,14 @@
2
2
  # specify what we *need*
3
3
  AllCops:
4
4
  DisabledByDefault: true
5
- TargetRubyVersion: 2.3
5
+ TargetRubyVersion: 3.0
6
+ SuggestExtensions: False
6
7
 
7
8
  Layout/AccessModifierIndentation:
8
9
  Enabled: True
9
- Layout/AlignArray:
10
+ Layout/ArrayAlignment:
10
11
  Enabled: True
11
- Layout/AlignHash:
12
- Enabled: True
13
- Layout/AlignParameters:
12
+ Layout/AssignmentIndentation:
14
13
  Enabled: True
15
14
  Layout/BlockEndNewline:
16
15
  Enabled: True
@@ -20,9 +19,6 @@ Layout/ClosingParenthesisIndentation:
20
19
  Enabled: True
21
20
  Layout/CommentIndentation:
22
21
  Enabled: True
23
- # TODO: This is not working as expected, as of rubocop 0.52.0
24
- # Layout/ElseAlignment:
25
- # Enabled: True
26
22
  Layout/EmptyLineAfterMagicComment:
27
23
  Enabled: True
28
24
  Layout/EmptyLineBetweenDefs:
@@ -45,33 +41,30 @@ Layout/EmptyLinesAroundMethodBody:
45
41
  Enabled: True
46
42
  Layout/EndOfLine:
47
43
  Enabled: True
44
+ Layout/FirstArrayElementIndentation:
45
+ Enabled: True
46
+ EnforcedStyle: consistent
48
47
  Layout/FirstArrayElementLineBreak:
49
48
  Enabled: True
49
+ Layout/FirstHashElementIndentation:
50
+ Enabled: True
51
+ EnforcedStyle: consistent
50
52
  Layout/FirstHashElementLineBreak:
51
53
  Enabled: True
52
54
  Layout/FirstMethodArgumentLineBreak:
53
- Enabled: True
55
+ Enabled: False
54
56
  Layout/FirstMethodParameterLineBreak:
55
57
  Enabled: True
56
58
  Layout/FirstParameterIndentation:
57
59
  Enabled: True
58
- Layout/IndentArray:
59
- Enabled: True
60
- EnforcedStyle: consistent
61
- Layout/IndentAssignment:
62
- Enabled: True
63
- Layout/IndentHash:
64
- Enabled: True
65
- EnforcedStyle: consistent
66
- Layout/IndentHeredoc:
60
+ Layout/HeredocIndentation:
67
61
  Enabled: True
68
62
  Layout/IndentationConsistency:
69
63
  Enabled: True
70
- # TODO: This is not working as expected, as of rubocop 0.52.0
71
- # Layout/IndentationWidth:
72
- # Enabled: True
73
64
  Layout/InitialIndentation:
74
65
  Enabled: True
66
+ Layout/HashAlignment:
67
+ Enabled: True
75
68
  Layout/LeadingCommentSpace:
76
69
  Enabled: True
77
70
  Layout/MultilineArrayBraceLayout:
@@ -82,6 +75,8 @@ Layout/MultilineHashBraceLayout:
82
75
  Enabled: True
83
76
  Layout/MultilineOperationIndentation:
84
77
  Enabled: True
78
+ Layout/ParameterAlignment:
79
+ Enabled: True
85
80
  Layout/RescueEnsureAlignment:
86
81
  Enabled: True
87
82
  Layout/SpaceAfterColon:
@@ -130,9 +125,9 @@ Layout/SpaceInsideReferenceBrackets:
130
125
  Enabled: True
131
126
  Layout/SpaceInsideStringInterpolation:
132
127
  Enabled: True
133
- Layout/Tab:
128
+ Layout/IndentationStyle:
134
129
  Enabled: True
135
- Layout/TrailingBlankLines:
130
+ Layout/TrailingEmptyLines:
136
131
  Enabled: True
137
132
  Layout/TrailingWhitespace:
138
133
  Enabled: True
@@ -152,7 +147,7 @@ Lint/DuplicateCaseCondition:
152
147
  Enabled: True
153
148
  Lint/DuplicateMethods:
154
149
  Enabled: True
155
- Lint/DuplicatedKey:
150
+ Lint/DuplicateHashKey:
156
151
  Enabled: True
157
152
  Lint/EachWithObjectArgument:
158
153
  Enabled: True
@@ -166,13 +161,10 @@ Lint/EmptyInterpolation:
166
161
  Enabled: True
167
162
  Lint/EmptyWhen:
168
163
  Enabled: True
169
- # TODO: This is not working as expected, as of rubocop 0.52.0
170
- # Lint/EndAlignment:
171
- # EnforcedStyleAlignWith: start_of_line
172
- Lint/EndInMethod:
173
- Enabled: True
174
164
  Lint/EnsureReturn:
175
165
  Enabled: True
166
+ Lint/FlipFlop:
167
+ Enabled: True
176
168
  Lint/FloatOutOfRange:
177
169
  Enabled: True
178
170
  Lint/FormatParameterMismatch:
@@ -192,7 +184,9 @@ Lint/LiteralInInterpolation:
192
184
  Enabled: True
193
185
  Lint/Loop:
194
186
  Enabled: True
195
- Lint/MultipleCompare:
187
+ Lint/MissingSuper:
188
+ Enabled: True
189
+ Lint/MultipleComparison:
196
190
  Enabled: True
197
191
  Lint/NestedMethodDefinition:
198
192
  Enabled: True
@@ -210,6 +204,10 @@ Lint/PercentSymbolArray:
210
204
  Enabled: True
211
205
  Lint/RandOne:
212
206
  Enabled: True
207
+ Lint/RedundantRequireStatement:
208
+ Enabled: True
209
+ Lint/RedundantSplatExpansion:
210
+ Enabled: True
213
211
  Lint/RedundantWithIndex:
214
212
  Enabled: True
215
213
  Lint/RedundantWithObject:
@@ -230,7 +228,7 @@ Lint/ShadowedArgument:
230
228
  Enabled: True
231
229
  Lint/ShadowedException:
232
230
  Enabled: True
233
- Lint/StringConversionInInterpolation:
231
+ Lint/RedundantStringCoercion:
234
232
  Enabled: True
235
233
  Lint/Syntax:
236
234
  Enabled: True
@@ -238,16 +236,12 @@ Lint/UnderscorePrefixedVariableName:
238
236
  Enabled: True
239
237
  Lint/UnifiedInteger:
240
238
  Enabled: True
241
- Lint/UnneededRequireStatement:
242
- Enabled: True
243
- Lint/UnneededSplatExpansion:
244
- Enabled: True
245
239
  Lint/UnreachableCode:
246
240
  Enabled: True
247
241
  Lint/UnusedBlockArgument:
248
242
  Enabled: True
249
243
  Lint/UnusedMethodArgument:
250
- Enabled: True
244
+ Enabled: False
251
245
  Lint/UriEscapeUnescape:
252
246
  Enabled: True
253
247
  Lint/UriRegexp:
@@ -256,7 +250,7 @@ Lint/UselessAccessModifier:
256
250
  Enabled: True
257
251
  Lint/UselessAssignment:
258
252
  Enabled: True
259
- Lint/UselessComparison:
253
+ Lint/BinaryOperatorWithIdenticalOperands:
260
254
  Enabled: True
261
255
  Lint/UselessElseWithoutRescue:
262
256
  Enabled: True
@@ -278,9 +272,9 @@ Naming/FileName:
278
272
  Naming/HeredocDelimiterCase:
279
273
  Enabled: True
280
274
  Naming/HeredocDelimiterNaming:
281
- Enabled: True
275
+ Enabled: False
282
276
  Naming/MethodName:
283
- Enabled: True
277
+ Enabled: False
284
278
  Naming/PredicateName:
285
279
  Enabled: True
286
280
  Naming/VariableName:
@@ -295,9 +289,6 @@ Style/BeginBlock:
295
289
  Enabled: True
296
290
  Style/BlockComments:
297
291
  Enabled: True
298
- Style/BracesAroundHashParameters:
299
- Enabled: True
300
- EnforcedStyle: context_dependent
301
292
  Style/CaseEquality:
302
293
  Enabled: True
303
294
  Style/CharacterLiteral:
@@ -337,8 +328,6 @@ Style/EndBlock:
337
328
  Enabled: True
338
329
  Style/EvenOdd:
339
330
  Enabled: True
340
- Style/FlipFlop:
341
- Enabled: True
342
331
  Style/For:
343
332
  Enabled: True
344
333
  Style/GlobalVars:
@@ -367,8 +356,6 @@ Style/MethodCallWithoutArgsParentheses:
367
356
  Enabled: True
368
357
  Style/MethodDefParentheses:
369
358
  Enabled: True
370
- Style/MethodMissingSuper:
371
- Enabled: True
372
359
  Style/MissingRespondToMissing:
373
360
  Enabled: True
374
361
  Style/MinMax:
@@ -377,6 +364,9 @@ Style/MixinGrouping:
377
364
  Enabled: True
378
365
  Style/MixinUsage:
379
366
  Enabled: True
367
+ Style/ModuleFunction:
368
+ Enabled: True
369
+ EnforcedStyle: extend_self
380
370
  Style/MultilineIfThen:
381
371
  Enabled: True
382
372
  Style/MultilineMemoization:
@@ -423,12 +413,16 @@ Style/RandomWithOffset:
423
413
  Enabled: True
424
414
  Style/RedundantBegin:
425
415
  Enabled: True
416
+ Style/RedundantCapitalW:
417
+ Enabled: True
426
418
  Style/RedundantConditional:
427
419
  Enabled: True
428
420
  Style/RedundantException:
429
421
  Enabled: True
430
422
  Style/RedundantFreeze:
431
423
  Enabled: True
424
+ Style/RedundantInterpolation:
425
+ Enabled: True
432
426
  Style/RedundantParentheses:
433
427
  Enabled: True
434
428
  Style/RedundantReturn:
@@ -466,10 +460,6 @@ Style/TrailingBodyOnMethodDefinition:
466
460
  Enabled: True
467
461
  Style/TrailingMethodEndStatement:
468
462
  Enabled: True
469
- Style/UnneededCapitalW:
470
- Enabled: True
471
- Style/UnneededInterpolation:
472
- Enabled: True
473
463
  Style/VariableInterpolation:
474
464
  Enabled: True
475
465
  Style/WhenThen:
metadata CHANGED
@@ -1,21 +1,23 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wetransfer_style
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Horak
8
8
  - Arno
9
9
  - David Bosveld
10
10
  - Dennis van der Vliet
11
+ - Fabio Perrella
11
12
  - GitHub
12
13
  - Julik Tarkhanov
13
14
  - Lorenzo Grandi
15
+ - Tors Dalid
14
16
  - grdw
15
17
  autorequire:
16
18
  bindir: bin
17
19
  cert_chain: []
18
- date: 2019-01-08 00:00:00.000000000 Z
20
+ date: 2021-10-04 00:00:00.000000000 Z
19
21
  dependencies:
20
22
  - !ruby/object:Gem::Dependency
21
23
  name: rubocop
@@ -23,14 +25,14 @@ dependencies:
23
25
  requirements:
24
26
  - - '='
25
27
  - !ruby/object:Gem::Version
26
- version: 0.61.1
28
+ version: 1.22.1
27
29
  type: :runtime
28
30
  prerelease: false
29
31
  version_requirements: !ruby/object:Gem::Requirement
30
32
  requirements:
31
33
  - - '='
32
34
  - !ruby/object:Gem::Version
33
- version: 0.61.1
35
+ version: 1.22.1
34
36
  description: At WeTransfer we code in style. This is our style.
35
37
  email: developers@wetransfer.com
36
38
  executables: []
@@ -63,8 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
65
  - !ruby/object:Gem::Version
64
66
  version: '0'
65
67
  requirements: []
66
- rubyforge_project:
67
- rubygems_version: 2.7.8
68
+ rubygems_version: 3.0.3
68
69
  signing_key:
69
70
  specification_version: 4
70
71
  summary: At WeTransfer we code in style. This is our style.