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 +4 -4
- data/Rakefile +24 -0
- data/core.yml +125 -0
- data/lib/ws/style/version.rb +1 -1
- data/rails.yml +10 -1
- data/ws-style.gemspec +4 -4
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 574334100ed40e46d82434550ca90e558cd9eb2eed2ba51f860496ba5ae713e2
|
4
|
+
data.tar.gz: 87558c16e965e50133abd8adaa0938ca4eff3d43f08b1a0357c2d6da743b090c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/ws/style/version.rb
CHANGED
data/rails.yml
CHANGED
@@ -45,8 +45,17 @@ Rails/RenderPlainText:
|
|
45
45
|
Enabled: True
|
46
46
|
|
47
47
|
Rails/ShortI18n:
|
48
|
-
Enabled:
|
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
|
data/ws-style.gemspec
CHANGED
@@ -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.
|
26
|
-
s.add_dependency 'rubocop-performance', '>= 1.
|
27
|
-
s.add_dependency 'rubocop-rails', '>= 2.
|
28
|
-
s.add_dependency 'rubocop-rspec', '
|
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.
|
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-
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
68
|
+
version: 1.43.2
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop-vendor
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|