ws-style 6.2.0 → 6.3.0

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: 04c36fcc000cf48774650d6edbf34c51959aa7d7f50cfe1e87892a4f88d49e94
4
- data.tar.gz: 6e85312d35bafe7122ec4223791b1f5338fcd87b9f89d0285b039f465a0212ba
3
+ metadata.gz: 574334100ed40e46d82434550ca90e558cd9eb2eed2ba51f860496ba5ae713e2
4
+ data.tar.gz: 87558c16e965e50133abd8adaa0938ca4eff3d43f08b1a0357c2d6da743b090c
5
5
  SHA512:
6
- metadata.gz: 8b84cc475ff90a16efab3f4a2f4829e1e8e3137d245675f6e8d88e1f16bd15876afcab7bff4fdfbb3a97090ae6a7be4abb6509d814c242d2c488db99c9c69e16
7
- data.tar.gz: c8c2be2e97a14b0196ad7a73e8c4f0cd287a1c3202dde0a06771a4c91f79354ca889a85bac26a26bb73c9be9ba165bf56910116d342fa2b443fb618cf0654933
6
+ metadata.gz: fa1ed665e440cd2dbefcaafef11eb4f4a4d87e778f4ae5e491c122f8d679f8bea0afc23c9865e0c89634c51101caa1138c027b63f792b8ae11f0ded3a0de5e5b
7
+ data.tar.gz: d63d70d6420e098df37293502ccbc60b1e3e23dc646eb5265c18c758576d01ea1e7e6abc90ffa3cf4ed2a1da6c6b76968b39cb08c4b6d684885b016fd28328ab
data/Rakefile CHANGED
@@ -1,6 +1,30 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rspec/core/rake_task"
3
+ require "rubocop"
4
+ require "rubocop-performance"
5
+ require "rubocop-rails"
6
+ require "rubocop-rspec"
3
7
 
4
8
  RSpec::Core::RakeTask.new(:spec)
5
9
 
6
10
  task default: :spec
11
+
12
+ desc 'Print out comments that can be used for a GitHub cop election'
13
+ task :election do # rubocop:disable Rails/RakeEnvironment
14
+ RuboCop::ConfigLoader.default_configuration.pending_cops.each do |pending_cop|
15
+ base_urls = {
16
+ 'layout' => 'https://docs.rubocop.org/rubocop/cops_layout.html#layout',
17
+ 'lint' => 'https://docs.rubocop.org/rubocop/cops_lint.html#lint',
18
+ 'style' => 'https://docs.rubocop.org/rubocop/cops_style.html#style',
19
+ 'performance' => 'https://docs.rubocop.org/rubocop-performance/cops_performance.html#performance',
20
+ 'rails' => 'https://docs.rubocop.org/rubocop-rails/cops_rails.html#rails',
21
+ 'rspec' => 'https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspec',
22
+ }
23
+ department, anchor = pending_cop.name.downcase.split('/')
24
+ puts <<~COMMENT
25
+ [**#{pending_cop.name}**](#{base_urls.fetch(department)}#{anchor})
26
+ #{pending_cop.metadata.fetch('Description')}
27
+
28
+ COMMENT
29
+ end
30
+ end
data/core.yml CHANGED
@@ -218,3 +218,128 @@ Style/RedundantRegexpEscape:
218
218
  Style/RedundantFetchBlock:
219
219
  Enabled: True
220
220
 
221
+ # 0.87
222
+ Style/AccessorGrouping:
223
+ Enabled: True
224
+
225
+ Style/BisectedAttrAccessor:
226
+ Enabled: True
227
+
228
+ Style/RedundantAssignment:
229
+ Enabled: True
230
+
231
+ # 0.88
232
+ Lint/DuplicateElsifCondition:
233
+ Enabled: True
234
+
235
+ Style/ArrayCoercion:
236
+ Enabled: True
237
+
238
+ Style/CaseLikeIf:
239
+ Enabled: True
240
+
241
+ Style/HashAsLastArrayItem:
242
+ Enabled: True
243
+
244
+ Style/HashLikeCase:
245
+ Enabled: True
246
+
247
+ Style/RedundantFileExtensionInRequire:
248
+ Enabled: True
249
+
250
+ # 0.89
251
+ Lint/BinaryOperatorWithIdenticalOperands:
252
+ Enabled: True
253
+
254
+ Lint/DuplicateRescueException:
255
+ Enabled: True
256
+
257
+ Lint/EmptyConditionalBody:
258
+ Enabled: True
259
+
260
+ Lint/FloatComparison:
261
+ Enabled: True
262
+
263
+ Lint/MissingSuper:
264
+ Enabled: True
265
+
266
+ Lint/OutOfRangeRegexpRef:
267
+ Enabled: True
268
+
269
+ Lint/SelfAssignment:
270
+ Enabled: True
271
+
272
+ Lint/TopLevelReturnWithArgument:
273
+ Enabled: True
274
+
275
+ Lint/UnreachableLoop:
276
+ Enabled: True
277
+
278
+ Style/ExplicitBlockArgument:
279
+ Enabled: True
280
+
281
+ Style/GlobalStdStream:
282
+ Enabled: False
283
+
284
+ Style/OptionalBooleanParameter:
285
+ Enabled: True
286
+
287
+ Style/SingleArgumentDig:
288
+ Enabled: True
289
+
290
+ Style/StringConcatenation:
291
+ Enabled: True
292
+
293
+ # rubocop-performance 1.7
294
+ Performance/AncestorsInclude:
295
+ Enabled: True
296
+
297
+ Performance/BigDecimalWithNumericArgument:
298
+ Enabled: True
299
+
300
+ Performance/RedundantSortBlock:
301
+ Enabled: True
302
+
303
+ Performance/RedundantStringChars:
304
+ Enabled: True
305
+
306
+ Performance/ReverseFirst:
307
+ Enabled: True
308
+
309
+ Performance/SortReverse:
310
+ Enabled: True
311
+
312
+ Performance/Squeeze:
313
+ Enabled: True
314
+
315
+ Performance/StringInclude:
316
+ Enabled: True
317
+
318
+ # 0.90
319
+ Lint/DuplicateRequire:
320
+ Enabled: True
321
+
322
+ Lint/EmptyFile:
323
+ Enabled: True
324
+
325
+ Lint/TrailingCommaInAttributeDeclaration:
326
+ Enabled: True
327
+
328
+ Lint/UselessMethodDefinition:
329
+ Enabled: True
330
+
331
+ Style/CombinableLoops:
332
+ Enabled: True
333
+
334
+ Style/KeywordParametersOrder:
335
+ Enabled: True
336
+
337
+ Style/RedundantSelfAssignment:
338
+ Enabled: True
339
+
340
+ Style/SoleNestedConditional:
341
+ Enabled: True
342
+
343
+ # rubocop-performance 1.7
344
+ Performance/Sum:
345
+ Enabled: True
@@ -1,5 +1,5 @@
1
1
  module Ws
2
2
  module Style
3
- VERSION = '6.2.0'.freeze
3
+ VERSION = '6.3.0'.freeze
4
4
  end
5
5
  end
data/rails.yml CHANGED
@@ -45,8 +45,17 @@ Rails/RenderPlainText:
45
45
  Enabled: True
46
46
 
47
47
  Rails/ShortI18n:
48
- Enabled: True
48
+ Enabled: False
49
49
 
50
50
  Rails/WhereExists:
51
51
  Enabled: True
52
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
@@ -22,10 +22,10 @@ Gem::Specification.new do |s|
22
22
  s.require_paths = ['lib']
23
23
  s.required_ruby_version = '>= 2.5.7'
24
24
 
25
- s.add_dependency 'rubocop', '>= 0.89'
26
- s.add_dependency 'rubocop-performance', '>= 1.7'
27
- s.add_dependency 'rubocop-rails', '>= 2.7'
28
- s.add_dependency 'rubocop-rspec', '~> 1.32'
25
+ s.add_dependency 'rubocop', '>= 0.90.0'
26
+ s.add_dependency 'rubocop-performance', '>= 1.8.1'
27
+ s.add_dependency 'rubocop-rails', '>= 2.8.1'
28
+ s.add_dependency 'rubocop-rspec', '>= 1.43.2'
29
29
  s.add_dependency 'rubocop-vendor', '~> 0'
30
30
 
31
31
  s.add_development_dependency 'bundler'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ws-style
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.0
4
+ version: 6.3.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: 2020-09-04 00:00:00.000000000 Z
11
+ date: 2020-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.89'
19
+ version: 0.90.0
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: '0.89'
26
+ version: 0.90.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.7'
33
+ version: 1.8.1
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.7'
40
+ version: 1.8.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '2.7'
47
+ version: 2.8.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '2.7'
54
+ version: 2.8.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop-rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '1.32'
61
+ version: 1.43.2
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '1.32'
68
+ version: 1.43.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-vendor
71
71
  requirement: !ruby/object:Gem::Requirement