ws-style 6.14.7 → 7.0.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a55eb9383771e4927aef590882db5d3eecb156a22b82da439752d2acaa72e4e5
4
- data.tar.gz: d60f8fb15f7b523f8858e2fd010fc0620bbd85da10764deaa67f00bbcacb51fa
3
+ metadata.gz: bc371e5897ddba4813bc5ebb209557c3a4182db7270bfc58fbec6e5de255e2be
4
+ data.tar.gz: 9c27b53cc8789b1b3c0e8d52b42ff3693dd5bd72e092fc5c2cf31f062cfb1108
5
5
  SHA512:
6
- metadata.gz: 66a2898e53ae6afe4f888aa8756d1f8095dfd9b2dd18fc0bc5440b7e3dcc97816d084453b32f05936c3c8cb2d9190fb46dcdbe017d95c8069348a1773dd987ab
7
- data.tar.gz: 62396ba227907bbecf8594e6393dc650b86ceedbd4dfb79b2c78609250d356755f63af0878e0ff65da8791e794f1cbd2580f68b08b2b5cec6e2008f6ebf1291a
6
+ metadata.gz: 2a615da602bce670369c4f95cd659587cde0fcd62ce8b24cb20ee70bb7e43950dc8fd0e015cb59aa85238c6e238269e5defeb32f578b03a464e8eab231b036ab
7
+ data.tar.gz: a895d17f8971383a70357e80fe363b41d47768b166278fb4e26a647e3da9a9f200522f24e676698279581bd91dd5d36720d5185443997037247b24dffd33bb07
data/.rubocop.yml CHANGED
@@ -1,3 +1,2 @@
1
1
  inherit_from:
2
- - .rubocop_todo.yml
3
2
  - core.yml
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.6
1
+ 3.2.2
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## 7.0.0 - 2023-05-18
10
+ ### Changed
11
+ - Use [standardrb](https://github.com/standardrb/standard) as a base.
12
+
9
13
  ## 6.14.7 - 2023-05-10
10
14
  ### Changed
11
15
  - Address rubocop warnings
data/Gemfile.lock CHANGED
@@ -1,17 +1,16 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ws-style (6.14.7)
5
- rubocop (>= 1.36)
6
- rubocop-performance (>= 1.10.2)
7
- rubocop-rails (>= 2.9.1)
4
+ ws-style (7.0.0)
8
5
  rubocop-rspec (>= 2.2.0)
9
6
  rubocop-vendor (>= 0.6.0)
7
+ standard (>= 1.28.2)
8
+ standard-rails (>= 0.1.0)
10
9
 
11
10
  GEM
12
11
  remote: https://rubygems.org/
13
12
  specs:
14
- activesupport (7.0.4.3)
13
+ activesupport (7.0.5)
15
14
  concurrent-ruby (~> 1.0, >= 1.0.2)
16
15
  i18n (>= 1.6, < 2)
17
16
  minitest (>= 5.1)
@@ -30,6 +29,8 @@ GEM
30
29
  i18n (1.13.0)
31
30
  concurrent-ruby (~> 1.0)
32
31
  json (2.6.3)
32
+ language_server-protocol (3.17.0.3)
33
+ lint_roller (1.0.0)
33
34
  minitest (5.18.0)
34
35
  parallel (1.23.0)
35
36
  parse_a_changelog (1.2.0)
@@ -71,9 +72,9 @@ GEM
71
72
  parser (>= 3.2.1.0)
72
73
  rubocop-capybara (2.18.0)
73
74
  rubocop (~> 1.41)
74
- rubocop-factory_bot (2.22.0)
75
+ rubocop-factory_bot (2.23.1)
75
76
  rubocop (~> 1.33)
76
- rubocop-performance (1.17.1)
77
+ rubocop-performance (1.16.0)
77
78
  rubocop (>= 1.7.0, < 2.0)
78
79
  rubocop-ast (>= 0.4.0)
79
80
  rubocop-rails (2.19.1)
@@ -87,7 +88,21 @@ GEM
87
88
  rubocop-vendor (0.9.2)
88
89
  rubocop (>= 0.53.0)
89
90
  ruby-progressbar (1.13.0)
90
- thor (1.2.1)
91
+ standard (1.28.3)
92
+ language_server-protocol (~> 3.17.0.2)
93
+ lint_roller (~> 1.0)
94
+ rubocop (~> 1.50.2)
95
+ standard-custom (~> 1.0.0)
96
+ standard-performance (~> 1.0.1)
97
+ standard-custom (1.0.0)
98
+ lint_roller (~> 1.0)
99
+ standard-performance (1.0.1)
100
+ lint_roller (~> 1.0)
101
+ rubocop-performance (~> 1.16.0)
102
+ standard-rails (0.1.0)
103
+ lint_roller (~> 1.0)
104
+ rubocop-rails (~> 2.19.0)
105
+ thor (1.2.2)
91
106
  treetop (1.6.12)
92
107
  polyglot (~> 0.3)
93
108
  tzinfo (2.0.6)
@@ -95,6 +110,7 @@ GEM
95
110
  unicode-display_width (2.4.2)
96
111
 
97
112
  PLATFORMS
113
+ arm64-darwin-22
98
114
  ruby
99
115
 
100
116
  DEPENDENCIES
data/Rakefile CHANGED
@@ -7,55 +7,3 @@ require "rubocop-rspec"
7
7
  RSpec::Core::RakeTask.new(:spec)
8
8
 
9
9
  task default: :spec
10
-
11
- desc 'Print out comments that can be used for a GitHub cop election'
12
- task :election do
13
- configuration_path = File.expand_path('default.yml', File.dirname(__FILE__))
14
- configuration = RuboCop::ConfigLoader.load_file(configuration_path)
15
- RuboCop::ConfigLoader.default_configuration.pending_cops.each do |pending_cop|
16
- base_urls = {
17
- 'gemspec' => 'https://docs.rubocop.org/rubocop/cops_gemspec.html#gemspec',
18
- 'layout' => 'https://docs.rubocop.org/rubocop/cops_layout.html#layout',
19
- 'lint' => 'https://docs.rubocop.org/rubocop/cops_lint.html#lint',
20
- 'performance' => 'https://docs.rubocop.org/rubocop-performance/cops_performance.html#performance',
21
- 'rails' => 'https://docs.rubocop.org/rubocop-rails/cops_rails.html#rails',
22
- 'rspec' => 'https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspec',
23
- 'rspec_capybara' => 'https://docs.rubocop.org/rubocop-rspec/cops_rspec_capybara.html',
24
- 'rspec_factorybot' => 'https://docs.rubocop.org/rubocop-rspec/cops_rspec_factorybot.html',
25
- 'rspec_rails' => 'https://docs.rubocop.org/rubocop-rspec/cops_rspec_rails.html',
26
- 'security' => 'https://docs.rubocop.org/rubocop/cops_security.html#security',
27
- 'style' => 'https://docs.rubocop.org/rubocop/cops_style.html#style',
28
- 'naming' => 'https://docs.rubocop.org/rubocop/cops_naming.html#naming',
29
- }
30
- next if configuration.key?(pending_cop.name)
31
-
32
- *department, anchor = pending_cop.name.downcase.split('/')
33
- puts <<~COMMENT
34
- [**#{pending_cop.name}**](#{base_urls.fetch(department.join('_'))}#{anchor})
35
- #{pending_cop.metadata.fetch('Description')}
36
-
37
- COMMENT
38
- end
39
- end
40
-
41
- desc 'Print out comments that can be used for a GitHub cop election'
42
- task "election:config" do
43
- configuration_path = File.expand_path('default.yml', File.dirname(__FILE__))
44
- configuration = RuboCop::ConfigLoader.load_file(configuration_path)
45
- pending_cops = RuboCop::ConfigLoader.default_configuration.pending_cops.reject { |cop|
46
- configuration.key?(cop.name)
47
- }
48
- ascending_by_version = pending_cops.group_by { |cop|
49
- cop.metadata.fetch('VersionAdded')
50
- }.sort_by(&:first)
51
- ascending_by_version.each do |(version, cops)|
52
- puts "# #{version}"
53
- cops.each do |cop|
54
- puts <<~CONFIGURATION
55
- #{cop.name}:
56
- Enabled: True
57
-
58
- CONFIGURATION
59
- end
60
- end
61
- end
data/bin/rake CHANGED
@@ -15,7 +15,7 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
15
15
  bundle_binstub = File.expand_path("../bundle", __FILE__)
16
16
 
17
17
  if File.file?(bundle_binstub)
18
- if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
18
+ if /This file was generated by Bundler/.match?(File.read(bundle_binstub, 300))
19
19
  load(bundle_binstub)
20
20
  else
21
21
  abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
data/bin/rspec CHANGED
@@ -15,7 +15,7 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
15
15
  bundle_binstub = File.expand_path("../bundle", __FILE__)
16
16
 
17
17
  if File.file?(bundle_binstub)
18
- if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
18
+ if /This file was generated by Bundler/.match?(File.read(bundle_binstub, 300))
19
19
  load(bundle_binstub)
20
20
  else
21
21
  abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
data/bin/rubocop CHANGED
@@ -15,7 +15,7 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
15
15
  bundle_binstub = File.expand_path("../bundle", __FILE__)
16
16
 
17
17
  if File.file?(bundle_binstub)
18
- if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
18
+ if /This file was generated by Bundler/.match?(File.read(bundle_binstub, 300))
19
19
  load(bundle_binstub)
20
20
  else
21
21
  abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
data/core.yml CHANGED
@@ -1,18 +1,26 @@
1
1
  # See documentation for details on definitions:
2
2
  # https://rubocop.readthedocs.io
3
3
 
4
- require:
5
- - rubocop-performance
6
- - rubocop-rspec
7
- - rubocop-vendor
8
-
9
4
  inherit_mode:
10
5
  merge:
11
6
  - AllowedNames
12
7
  - Exclude
13
8
 
9
+ require:
10
+ - standard
11
+ - rubocop-performance
12
+ - rubocop-vendor
13
+
14
+ inherit_gem:
15
+ standard: config/base.yml
16
+ standard-performance: config/base.yml
17
+ standard-custom: config/base.yml
18
+
14
19
  AllCops:
15
20
  NewCops: disable
21
+ DisabledByDefault: true
22
+ SuggestExtensions: false
23
+ TargetRubyVersion: 3.2
16
24
  Exclude:
17
25
  - "bin/**/*"
18
26
  - "data/**/*"
@@ -26,623 +34,40 @@ AllCops:
26
34
  - "public/**/*"
27
35
  - "tmp/**/*"
28
36
  - "vendor/**/*"
29
- SuggestExtensions: false
30
-
31
- Layout/ParameterAlignment:
32
- Enabled: false
33
-
34
- Lint/AmbiguousBlockAssociation:
35
- Exclude:
36
- - "spec/**/*"
37
-
38
- Layout/ArgumentAlignment:
39
- EnforcedStyle: with_fixed_indentation
40
37
 
38
+ # standardrb overrides
41
39
  Layout/DotPosition:
42
40
  EnforcedStyle: trailing
43
41
 
44
- Layout/CaseIndentation:
45
- Enabled: false
46
-
47
- Layout/ElseAlignment:
48
- Enabled: false
42
+ Layout/SpaceInsideHashLiteralBraces:
43
+ EnforcedStyle: space
49
44
 
50
45
  Layout/EmptyLineBetweenDefs:
51
46
  AllowAdjacentOneLineDefs: true
52
47
 
53
- Layout/EndAlignment:
48
+ Style/EmptyMethod:
54
49
  Enabled: false
55
50
 
56
- Layout/ExtraSpacing:
57
- Enabled: true
58
- AllowForAlignment: false
59
-
60
- Layout/FirstArrayElementIndentation:
61
- EnforcedStyle: consistent
62
-
63
- Layout/IndentationWidth:
64
- Enabled: true
65
- Width: 2
66
-
67
- Layout/LineLength:
68
- AllowedPatterns: ['(\A|\s)#']
69
- Max: 100
70
-
71
- Layout/FirstHashElementIndentation:
72
- EnforcedStyle: consistent
73
-
74
- Layout/MultilineMethodCallIndentation:
75
- EnforcedStyle: indented
76
-
77
- Metrics/AbcSize:
78
- Max: 18
79
-
80
- Metrics/BlockLength:
51
+ Style/SingleLineMethods:
81
52
  Enabled: false
82
53
 
83
- Metrics/ClassLength:
84
- Max: 150
85
-
86
- Metrics/CyclomaticComplexity:
87
- Max: 7
88
-
89
- Metrics/MethodLength:
90
- AllowedMethods: ["extended"]
91
- Max: 25
92
-
93
- Metrics/ModuleLength:
94
- Exclude:
95
- - "spec/**/*"
96
-
97
- Metrics/ParameterLists:
98
- Enabled: false
99
-
100
- Metrics/PerceivedComplexity:
101
- Max: 8
102
-
103
- Style/AndOr:
104
- EnforcedStyle: conditionals
105
-
106
- Style/BlockDelimiters:
107
- Enabled: false
108
-
109
- Style/ClassAndModuleChildren:
110
- Enabled: false
111
-
112
- Style/Documentation:
113
- Enabled: false
114
-
115
- Style/FormatStringToken:
116
- Enabled: false
117
-
118
- Style/FrozenStringLiteralComment:
54
+ Style/StringLiterals:
119
55
  Enabled: false
120
56
 
121
- Style/NumericPredicate:
57
+ Style/StringLiteralsInInterpolation:
122
58
  Enabled: false
123
59
 
124
- Style/StringLiterals:
125
- Enabled: false
60
+ Style/BlockDelimiters:
61
+ EnforcedStyle: semantic
126
62
 
127
- Style/SymbolArray:
128
- Enabled: false
63
+ Style/RescueStandardError:
64
+ EnforcedStyle: explicit
129
65
 
130
- Style/TrailingCommaInArguments:
66
+ Style/TrailingCommaInArrayLiteral:
131
67
  EnforcedStyleForMultiline: comma
132
68
 
133
- Style/TrailingCommaInArrayLiteral:
69
+ Style/TrailingCommaInArguments:
134
70
  EnforcedStyleForMultiline: comma
135
71
 
136
72
  Style/TrailingCommaInHashLiteral:
137
73
  EnforcedStyleForMultiline: comma
138
-
139
- Style/WordArray:
140
- Enabled: false
141
-
142
- Style/NegatedIf:
143
- Enabled: false
144
-
145
- RSpec/AnyInstance:
146
- Enabled: false
147
-
148
- RSpec/ContextWording:
149
- Enabled: false
150
-
151
- RSpec/EmptyExampleGroup:
152
- Enabled: false
153
-
154
- RSpec/ExampleLength:
155
- Max: 15
156
-
157
- RSpec/LetSetup:
158
- Enabled: false
159
-
160
- RSpec/MessageChain:
161
- Enabled: false
162
-
163
- RSpec/MultipleExpectations:
164
- Enabled: false
165
-
166
- RSpec/MultipleMemoizedHelpers:
167
- Enabled: false
168
-
169
- RSpec/NamedSubject:
170
- Enabled: false
171
-
172
- RSpec/NestedGroups:
173
- Max: 6
174
-
175
- # Cops added in Rubocop 0.80 or later need to be enabled one-by-one below.
176
- # For more information: https://docs.rubocop.org/en/latest/versioning/
177
-
178
- # 0.80
179
- Style/HashEachMethods:
180
- Enabled: true
181
-
182
- Style/HashTransformKeys:
183
- Enabled: true
184
-
185
- Style/HashTransformValues:
186
- Enabled: true
187
-
188
- # 0.81
189
- Lint/RaiseException:
190
- Enabled: true
191
-
192
- Lint/StructNewOverride:
193
- Enabled: true
194
-
195
- # 0.82
196
- Layout/SpaceAroundMethodCallOperator:
197
- Enabled: true
198
-
199
- Style/ExponentialNotation:
200
- Enabled: true
201
-
202
- # 0.83
203
- Layout/EmptyLinesAroundAttributeAccessor:
204
- Enabled: True
205
-
206
- Style/SlicingWithRange:
207
- Enabled: True
208
-
209
- # 0.84
210
- Lint/DeprecatedOpenSSLConstant:
211
- Enabled: True
212
-
213
- # 0.85
214
- Lint/MixedRegexpCaptureTypes:
215
- Enabled: True
216
-
217
- Style/RedundantRegexpCharacterClass:
218
- Enabled: True
219
-
220
- Style/RedundantRegexpEscape:
221
- Enabled: True
222
-
223
- # 0.86
224
- Style/RedundantFetchBlock:
225
- Enabled: True
226
-
227
- # 0.87
228
- Style/AccessorGrouping:
229
- Enabled: True
230
-
231
- Style/BisectedAttrAccessor:
232
- Enabled: True
233
-
234
- Style/RedundantAssignment:
235
- Enabled: True
236
-
237
- # 0.88
238
- Lint/DuplicateElsifCondition:
239
- Enabled: True
240
-
241
- Style/ArrayCoercion:
242
- Enabled: True
243
-
244
- Style/CaseLikeIf:
245
- Enabled: True
246
-
247
- Style/HashAsLastArrayItem:
248
- Enabled: True
249
-
250
- Style/HashLikeCase:
251
- Enabled: True
252
-
253
- Style/RedundantFileExtensionInRequire:
254
- Enabled: True
255
-
256
- # 0.89
257
- Lint/BinaryOperatorWithIdenticalOperands:
258
- Enabled: True
259
-
260
- Lint/DuplicateRescueException:
261
- Enabled: True
262
-
263
- Lint/EmptyConditionalBody:
264
- Enabled: True
265
-
266
- Lint/FloatComparison:
267
- Enabled: True
268
-
269
- Lint/MissingSuper:
270
- Enabled: True
271
-
272
- Lint/OutOfRangeRegexpRef:
273
- Enabled: True
274
-
275
- Lint/SelfAssignment:
276
- Enabled: True
277
-
278
- Lint/TopLevelReturnWithArgument:
279
- Enabled: True
280
-
281
- Lint/UnreachableLoop:
282
- Enabled: True
283
-
284
- Style/ExplicitBlockArgument:
285
- Enabled: True
286
-
287
- Style/GlobalStdStream:
288
- Enabled: False
289
-
290
- Style/OptionalBooleanParameter:
291
- Enabled: True
292
-
293
- Style/SingleArgumentDig:
294
- Enabled: True
295
-
296
- Style/StringConcatenation:
297
- Enabled: True
298
-
299
- # rubocop-performance 1.7
300
- Performance/AncestorsInclude:
301
- Enabled: True
302
-
303
- Performance/BigDecimalWithNumericArgument:
304
- Enabled: True
305
-
306
- Performance/RedundantSortBlock:
307
- Enabled: True
308
-
309
- Performance/RedundantStringChars:
310
- Enabled: True
311
-
312
- Performance/ReverseFirst:
313
- Enabled: True
314
-
315
- Performance/SortReverse:
316
- Enabled: True
317
-
318
- Performance/Squeeze:
319
- Enabled: True
320
-
321
- Performance/StringInclude:
322
- Enabled: True
323
-
324
- # 0.90
325
- Lint/DuplicateRequire:
326
- Enabled: True
327
-
328
- Lint/EmptyFile:
329
- Enabled: True
330
-
331
- Lint/TrailingCommaInAttributeDeclaration:
332
- Enabled: True
333
-
334
- Lint/UselessMethodDefinition:
335
- Enabled: True
336
-
337
- Style/CombinableLoops:
338
- Enabled: True
339
-
340
- Style/KeywordParametersOrder:
341
- Enabled: True
342
-
343
- Style/RedundantSelfAssignment:
344
- Enabled: True
345
-
346
- Style/SoleNestedConditional:
347
- Enabled: True
348
-
349
- # rubocop-performance 1.7
350
- Performance/Sum:
351
- Enabled: True
352
-
353
- # rubocop 1.1
354
- Lint/DuplicateRegexpCharacterClassElement:
355
- Enabled: True
356
-
357
- Lint/EmptyBlock:
358
- Enabled: False
359
-
360
- Lint/ToEnumArguments:
361
- Enabled: True
362
-
363
- Lint/UnmodifiedReduceAccumulator:
364
- Enabled: True
365
-
366
- Style/ArgumentsForwarding:
367
- Enabled: True
368
-
369
- Style/DocumentDynamicEvalDefinition:
370
- Enabled: True
371
-
372
- Style/SwapValues:
373
- Enabled: True
374
-
375
- # rubocop 1.2
376
- Lint/NoReturnInBeginEndBlocks:
377
- Enabled: True
378
-
379
- Style/CollectionCompact:
380
- Enabled: True
381
-
382
- Style/NegatedIfElseCondition:
383
- Enabled: True
384
-
385
- # rubocop 1.3
386
- Lint/DuplicateBranch:
387
- Enabled: True
388
-
389
- Lint/EmptyClass:
390
- Enabled: False
391
-
392
- Style/NilLambda:
393
- Enabled: False
394
-
395
- # rubocop 1.4
396
- Style/RedundantArgument:
397
- Enabled: True
398
-
399
- # rubocop 1.5
400
- Lint/UnexpectedBlockArity:
401
- Enabled: True
402
-
403
- # rubocop 1.7
404
- Layout/SpaceBeforeBrackets:
405
- Enabled: True
406
-
407
- Lint/AmbiguousAssignment:
408
- Enabled: True
409
-
410
- Style/HashExcept:
411
- Enabled: True
412
-
413
- # rubocop 1.8
414
- Lint/DeprecatedConstants:
415
- Enabled: True
416
-
417
- Lint/LambdaWithoutLiteralBlock:
418
- Enabled: True
419
-
420
- Lint/RedundantDirGlobSort:
421
- Enabled: True
422
-
423
- Style/EndlessMethod:
424
- Enabled: True
425
-
426
- Performance/CollectionLiteralInLoop:
427
- Enabled: True
428
-
429
- # rubocop 1.9
430
- Lint/NumberedParameterAssignment:
431
- Enabled: False
432
-
433
- Lint/OrAssignmentToConstant:
434
- Enabled: True
435
-
436
- Lint/SymbolConversion:
437
- Enabled: True
438
-
439
- Lint/TripleQuotes:
440
- Enabled: True
441
-
442
- Style/IfWithBooleanLiteralBranches:
443
- Enabled: False
444
-
445
- # rubocop 1.30
446
- Gemspec/DeprecatedAttributeAssignment:
447
- Enabled: True
448
-
449
- # rubocop 1.23
450
- Gemspec/RequireMFA:
451
- Enabled: False
452
-
453
- Style/HashConversion:
454
- Enabled: True
455
-
456
- # rubocop-performance 1.9
457
- Performance/BlockGivenWithExplicitBlock:
458
- Enabled: True
459
-
460
- Performance/ConstantRegexp:
461
- Enabled: True
462
-
463
- Performance/MethodObjectAsBlock:
464
- Enabled: True
465
-
466
- # rubocop-performance 1.10
467
- Performance/RedundantEqualityComparisonBlock:
468
- Enabled: False
469
-
470
- Performance/RedundantSplitRegexpArgument:
471
- Enabled: True
472
-
473
- # rubocop 1.12.0
474
- Style/StringChars:
475
- Enabled: True
476
-
477
- # rubocop-performance 1.11
478
- Performance/MapCompact:
479
- Enabled: True
480
-
481
- # rubocop 1.16
482
- Lint/EmptyInPattern:
483
- Enabled: True
484
-
485
- Style/InPatternThen:
486
- Enabled: True
487
-
488
- Style/MultilineInPatternThen:
489
- Enabled: True
490
-
491
- Style/QuotedSymbols:
492
- Enabled: True
493
-
494
- # rubocop 1.18
495
- Layout/LineEndStringConcatenationIndentation:
496
- Enabled: True
497
-
498
- # rubocop 1.19
499
- Lint/AmbiguousRange:
500
- Enabled: True
501
-
502
- Style/RedundantSelfAssignmentBranch:
503
- Enabled: True
504
-
505
- # rubocop 1.21
506
- Lint/AmbiguousOperatorPrecedence:
507
- Enabled: True
508
-
509
- Lint/IncompatibleIoSelectWithFiberScheduler:
510
- Enabled: True
511
-
512
- # rubocop 1.22
513
- Lint/RequireRelativeSelfPath:
514
- Enabled: True
515
-
516
- Security/IoMethods:
517
- Enabled: True
518
-
519
- Style/NumberedParameters:
520
- Enabled: True
521
-
522
- Style/NumberedParametersLimit:
523
- Enabled: True
524
-
525
- Style/SelectByRegexp:
526
- Enabled: True
527
-
528
- # rubocop-rspec 2.4
529
- RSpec/IdenticalEqualityAssertion:
530
- Enabled: True
531
-
532
- # rubocop-rspec 2.5
533
- RSpec/ExcessiveDocstringSpacing:
534
- Enabled: True
535
-
536
- RSpec/SubjectDeclaration:
537
- Enabled: True
538
-
539
- # rubocop-performance 1.12
540
- Performance/ConcurrentMonotonicTime:
541
- Enabled: True
542
-
543
- # rubocop-performance 1.13
544
- Performance/StringIdentifierArgument:
545
- Enabled: True
546
-
547
- # rubocop 1.23
548
- Lint/UselessRuby2Keywords:
549
- Enabled: True
550
-
551
- Style/OpenStructUse:
552
- Enabled: True
553
-
554
- # rubocop 1.24
555
- Naming/BlockForwarding:
556
- Enabled: True
557
- EnforcedStyle: explicit
558
-
559
- Style/FileRead:
560
- Enabled: True
561
-
562
- Style/FileWrite:
563
- Enabled: True
564
-
565
- Style/MapToHash:
566
- Enabled: True
567
-
568
- Style/HashSyntax:
569
- EnforcedShorthandSyntax: never
570
-
571
- # rubocop 1.26
572
- Style/NestedFileDirname:
573
- Enabled: True
574
-
575
- # rubocop 1.27
576
- Lint/RefinementImportMethods:
577
- Enabled: True
578
-
579
- Style/RedundantInitialize:
580
- Enabled: True
581
-
582
- # rubocop 1.28
583
- Security/CompoundHash:
584
- Enabled: True
585
-
586
- Style/FetchEnvVar:
587
- Enabled: True
588
-
589
- Style/ObjectThen:
590
- Enabled: True
591
-
592
- # rubocop 1.29
593
- Style/EnvHome:
594
- Enabled: True
595
-
596
- # rubocop 1.30
597
- Style/MapCompactWithConditionalBlock:
598
- Enabled: True
599
-
600
- # rubocop 1.31
601
- Layout/LineContinuationLeadingSpace:
602
- Enabled: True
603
-
604
- Layout/LineContinuationSpacing:
605
- Enabled: True
606
-
607
- Lint/ConstantOverwrittenInRescue:
608
- Enabled: True
609
-
610
- Lint/NonAtomicFileOperation:
611
- Enabled: True
612
-
613
- # rubocop 1.32
614
- Lint/RequireRangeParentheses:
615
- Enabled: True
616
-
617
- Style/EmptyHeredoc:
618
- Enabled: True
619
-
620
- # rubocop 1.35
621
- Style/MagicCommentFormat:
622
- Enabled: True
623
-
624
- # rubocop-rspec 2.10.0
625
- RSpec/VerifiedDoubleReference:
626
- Enabled: True
627
-
628
- # rubocop-rspec 2.11.0
629
- RSpec/ChangeByZero:
630
- Enabled: True
631
-
632
- # rubocop-rspec 2.12
633
- RSpec/Rails/HaveHttpStatus:
634
- Enabled: True
635
-
636
- # rubocop-rspec 2.9.0
637
- RSpec/BeEq:
638
- Enabled: True
639
-
640
- RSpec/BeNil:
641
- Enabled: True
642
-
643
- # rubocop-rspec 2.22
644
- Capybara/SpecificMatcher:
645
- Enabled: False
646
-
647
- FactoryBot/SyntaxMethods:
648
- Enabled: False
data/default.yml CHANGED
@@ -1,3 +1,4 @@
1
1
  inherit_from:
2
2
  - core.yml
3
+ - rspec.yml
3
4
  - rails.yml
@@ -1,5 +1,5 @@
1
1
  module Ws
2
2
  module Style
3
- VERSION = '6.14.7'.freeze
3
+ VERSION = '7.0.0'.freeze
4
4
  end
5
5
  end
data/rails.yml CHANGED
@@ -1,169 +1,9 @@
1
1
  require:
2
2
  - rubocop-rails
3
3
 
4
- Rails:
5
- Enabled: true
4
+ inherit_gem:
5
+ standard-rails: config/base.yml
6
6
 
7
- Rails/Delegate:
7
+ # standard-rails overrides
8
+ Rails/EnvironmentVariableAccess:
8
9
  Enabled: false
9
-
10
- Rails/FilePath:
11
- EnforcedStyle: arguments
12
-
13
- Rails/TimeZone:
14
- Enabled: false
15
-
16
- # rubocop-rails 2.7
17
- Rails/ActiveRecordCallbacksOrder:
18
- Enabled: True
19
-
20
- Rails/FindById:
21
- Enabled: True
22
-
23
- Rails/Inquiry:
24
- Enabled: True
25
-
26
- Rails/MailerName:
27
- Enabled: True
28
-
29
- Rails/MatchRoute:
30
- Enabled: True
31
-
32
- Rails/NegateInclude:
33
- Enabled: True
34
-
35
- Rails/Pluck:
36
- Enabled: True
37
-
38
- Rails/PluckInWhere:
39
- Enabled: True
40
-
41
- Rails/RenderInline:
42
- Enabled: True
43
-
44
- Rails/RenderPlainText:
45
- Enabled: True
46
-
47
- Rails/ShortI18n:
48
- Enabled: False
49
-
50
- Rails/WhereExists:
51
- Enabled: True
52
-
53
- # rubocop-rails 2.8
54
- Rails/AfterCommitOverride:
55
- Enabled: True
56
-
57
- Rails/SquishedSQLHeredocs:
58
- Enabled: False
59
-
60
- Rails/WhereNot:
61
- Enabled: True
62
-
63
- # rubocop-rails 2.9
64
- Rails/AttributeDefaultBlockValue:
65
- Enabled: True
66
-
67
- Rails/WhereEquals:
68
- Enabled: True
69
-
70
- # rubocop-rails 2.10
71
- Rails/TimeZoneAssignment:
72
- Enabled: True
73
-
74
- # rubocop-rails 2.11
75
- Rails/AddColumnIndex:
76
- Enabled: True
77
-
78
- Rails/EagerEvaluationLogMessage:
79
- Enabled: True
80
-
81
- Rails/ExpandedDateRange:
82
- Enabled: True
83
-
84
- Rails/I18nLocaleAssignment:
85
- Enabled: True
86
-
87
- Rails/UnusedIgnoredColumns:
88
- Enabled: True
89
-
90
- # rubocop-rails 2.12
91
- Rails/RedundantTravelBack:
92
- Enabled: True
93
-
94
- # rubocop-rspec 2.4
95
- RSpec/Rails/AvoidSetupHook:
96
- Enabled: True
97
-
98
- # rubocop-rails 2.13
99
- Rails/CompactBlank:
100
- Enabled: True
101
-
102
- Rails/DurationArithmetic:
103
- Enabled: True
104
-
105
- Rails/RedundantPresenceValidationOnBelongsTo:
106
- Enabled: False
107
-
108
- Rails/RootJoinChain:
109
- Enabled: True
110
-
111
- # rubocop-rails 2.14
112
- Rails/ActionControllerTestCase:
113
- Enabled: False
114
-
115
- Rails/DeprecatedActiveModelErrorsMethods:
116
- Enabled: True
117
-
118
- Rails/DuplicateAssociation:
119
- Enabled: True
120
-
121
- Rails/DuplicateScope:
122
- Enabled: True
123
-
124
- Rails/I18nLazyLookup:
125
- Enabled: True
126
-
127
- Rails/I18nLocaleTexts:
128
- Enabled: False
129
-
130
- Rails/MigrationClassName:
131
- Enabled: True
132
-
133
- Rails/TransactionExitStatement:
134
- Enabled: True
135
-
136
- # rubocop-rails 2.15
137
- Rails/DotSeparatedKeys:
138
- Enabled: True
139
-
140
- Rails/RootPublicPath:
141
- Enabled: True
142
-
143
- Rails/StripHeredoc:
144
- Enabled: True
145
-
146
- Rails/ToFormattedS:
147
- Enabled: True
148
-
149
- # rubocop-rails 2.16
150
- Rails/ActionControllerFlashBeforeRender:
151
- Enabled: True
152
-
153
- Rails/ActiveSupportOnLoad:
154
- Enabled: True
155
-
156
- Rails/FreezeTime:
157
- Enabled: True
158
-
159
- Rails/RootPathnameMethods:
160
- Enabled: True
161
-
162
- Rails/ToSWithArgument:
163
- Enabled: True
164
-
165
- Rails/TopLevelHashWithIndifferentAccess:
166
- Enabled: True
167
-
168
- Rails/WhereMissing:
169
- Enabled: True
data/rspec.yml ADDED
@@ -0,0 +1,33 @@
1
+ require:
2
+ - rubocop-rspec
3
+
4
+ # rubocop-rspec overrides
5
+ RSpec/AnyInstance:
6
+ Enabled: false
7
+
8
+ RSpec/ContextWording:
9
+ Enabled: false
10
+
11
+ RSpec/EmptyExampleGroup:
12
+ Enabled: false
13
+
14
+ RSpec/ExampleLength:
15
+ Max: 30
16
+
17
+ RSpec/LetSetup:
18
+ Enabled: false
19
+
20
+ RSpec/MessageChain:
21
+ Enabled: false
22
+
23
+ RSpec/MultipleExpectations:
24
+ Enabled: false
25
+
26
+ RSpec/MultipleMemoizedHelpers:
27
+ Enabled: false
28
+
29
+ RSpec/NamedSubject:
30
+ Enabled: false
31
+
32
+ RSpec/NestedGroups:
33
+ Max: 6
data/ws-style.gemspec CHANGED
@@ -20,11 +20,10 @@ Gem::Specification.new do |s|
20
20
  s.bindir = 'exe'
21
21
  s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  s.require_paths = ['lib']
23
- s.required_ruby_version = '>= 3.0'
23
+ s.required_ruby_version = '>= 3.2.0'
24
24
 
25
- s.add_dependency 'rubocop', '>= 1.36'
26
- s.add_dependency 'rubocop-performance', '>= 1.10.2'
27
- s.add_dependency 'rubocop-rails', '>= 2.9.1'
25
+ s.add_dependency 'standard', '>= 1.28.2'
26
+ s.add_dependency 'standard-rails', '>= 0.1.0'
28
27
  s.add_dependency 'rubocop-rspec', '>= 2.2.0'
29
28
  s.add_dependency 'rubocop-vendor', '>= 0.6.0'
30
29
 
metadata CHANGED
@@ -1,57 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ws-style
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.14.7
4
+ version: 7.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Graham
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-11 00:00:00.000000000 Z
11
+ date: 2023-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rubocop
14
+ name: standard
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.36'
19
+ version: 1.28.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.36'
26
+ version: 1.28.2
27
27
  - !ruby/object:Gem::Dependency
28
- name: rubocop-performance
28
+ name: standard-rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.10.2
33
+ version: 0.1.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 1.10.2
41
- - !ruby/object:Gem::Dependency
42
- name: rubocop-rails
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: 2.9.1
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: 2.9.1
40
+ version: 0.1.0
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: rubocop-rspec
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -179,7 +165,6 @@ files:
179
165
  - ".gitignore"
180
166
  - ".rspec"
181
167
  - ".rubocop.yml"
182
- - ".rubocop_todo.yml"
183
168
  - ".ruby-version"
184
169
  - CHANGELOG.md
185
170
  - Gemfile
@@ -198,6 +183,7 @@ files:
198
183
  - lib/ws/style/inflector.rb
199
184
  - lib/ws/style/version.rb
200
185
  - rails.yml
186
+ - rspec.yml
201
187
  - sonar-project.properties
202
188
  - ws-style.gemspec
203
189
  homepage: https://github.com/wealthsimple/ws-style
@@ -211,14 +197,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
211
197
  requirements:
212
198
  - - ">="
213
199
  - !ruby/object:Gem::Version
214
- version: '3.0'
200
+ version: 3.2.0
215
201
  required_rubygems_version: !ruby/object:Gem::Requirement
216
202
  requirements:
217
203
  - - ">="
218
204
  - !ruby/object:Gem::Version
219
205
  version: '0'
220
206
  requirements: []
221
- rubygems_version: 3.2.33
207
+ rubygems_version: 3.4.10
222
208
  signing_key:
223
209
  specification_version: 4
224
210
  summary: Shared rubocop config
data/.rubocop_todo.yml DELETED
@@ -1,7 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2023-02-01 15:43:17 UTC using RuboCop version 1.44.1.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.