ws-style 6.2.0 → 6.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +7 -3
- data/.ruby-version +1 -1
- data/CHANGELOG.md +15 -0
- data/Rakefile +25 -0
- data/catalog-info.yaml +12 -0
- data/core.yml +129 -1
- data/lib/ws/style/version.rb +1 -1
- data/rails.yml +10 -1
- data/sonar-project.properties +4 -0
- data/ws-style.gemspec +5 -5
- metadata +16 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '080f20dbb2a789dae262e81c9bf0212430bae72c7e731d401f311b8b102a7a50'
|
4
|
+
data.tar.gz: 5907fa3bfa4c9ad521a58b4aeb37ee602d4751dac3fce90c8aaee63fa69a55bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d6280ff2f2c040a8a8e4419e10c22b1664f3d2f4e7a15f5371d06fbc10b30495a66bebfbef85da8baabcc436e57a1e2e40a4b20390b3b849a68ad88c65d3d2c
|
7
|
+
data.tar.gz: 3ec5c0a81583012046c85be1f8e29f56f43511669e04baea75336e278225e228bef0f122b18c4012e5f4ac1d29bd38e518bcb8d23c44dc3ea955927a70645c6c
|
data/.circleci/config.yml
CHANGED
@@ -73,12 +73,15 @@ workflows:
|
|
73
73
|
- checkout_and_bundle:
|
74
74
|
context: wealthsimple
|
75
75
|
- rspec:
|
76
|
+
context: wealthsimple
|
76
77
|
requires:
|
77
78
|
- checkout_and_bundle
|
78
79
|
- lint_check:
|
80
|
+
context: wealthsimple
|
79
81
|
requires:
|
80
82
|
- checkout_and_bundle
|
81
83
|
- vulnerability_check:
|
84
|
+
context: wealthsimple
|
82
85
|
requires:
|
83
86
|
- checkout_and_bundle
|
84
87
|
- release:
|
@@ -87,9 +90,9 @@ workflows:
|
|
87
90
|
branches:
|
88
91
|
only: master
|
89
92
|
requires:
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
+
- rspec
|
94
|
+
- lint_check
|
95
|
+
- vulnerability_check
|
93
96
|
|
94
97
|
security-audit:
|
95
98
|
triggers:
|
@@ -103,5 +106,6 @@ workflows:
|
|
103
106
|
- checkout_and_bundle:
|
104
107
|
context: wealthsimple
|
105
108
|
- vulnerability_check:
|
109
|
+
context: wealthsimple
|
106
110
|
requires:
|
107
111
|
- checkout_and_bundle
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.5.
|
1
|
+
2.5.8
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## 6.5.2 - 2020-12-17
|
8
|
+
- Add backstage catalog file + sonarqube project settings
|
9
|
+
|
10
|
+
## 6.5.1 - 2020-11-30
|
11
|
+
- Disable EmptyLineBetweenClassDefs added in rubocop 1.4
|
12
|
+
|
13
|
+
## 6.5.0 - 2020-10-26
|
14
|
+
- Upgrade RuboCop and RuboCop RSpec
|
15
|
+
|
16
|
+
## 6.4.0 - 2020-10-07
|
17
|
+
- Upgrade RuboCop
|
18
|
+
|
19
|
+
## 6.3.0 - 2020-10-06
|
20
|
+
- Upgrade RuboCop and enable cops that were voted in
|
21
|
+
|
7
22
|
## 6.2.0 - 2020-09-04
|
8
23
|
- Disable Cops enabled in 6.1.0 until we can confirm we want them
|
9
24
|
|
data/Rakefile
CHANGED
@@ -1,6 +1,31 @@
|
|
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
|
+
configuration_path = File.expand_path('default.yml', File.dirname(__FILE__))
|
15
|
+
RuboCop::ConfigLoader.load_file(configuration_path).pending_cops.each do |pending_cop|
|
16
|
+
base_urls = {
|
17
|
+
'layout' => 'https://docs.rubocop.org/rubocop/cops_layout.html#layout',
|
18
|
+
'lint' => 'https://docs.rubocop.org/rubocop/cops_lint.html#lint',
|
19
|
+
'style' => 'https://docs.rubocop.org/rubocop/cops_style.html#style',
|
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
|
+
}
|
24
|
+
department, anchor = pending_cop.name.downcase.split('/')
|
25
|
+
puts <<~COMMENT
|
26
|
+
[**#{pending_cop.name}**](#{base_urls.fetch(department)}#{anchor})
|
27
|
+
#{pending_cop.metadata.fetch('Description')}
|
28
|
+
|
29
|
+
COMMENT
|
30
|
+
end
|
31
|
+
end
|
data/catalog-info.yaml
ADDED
data/core.yml
CHANGED
@@ -48,6 +48,9 @@ Layout/CaseIndentation:
|
|
48
48
|
Layout/ElseAlignment:
|
49
49
|
Enabled: false
|
50
50
|
|
51
|
+
Layout/EmptyLineBetweenDefs:
|
52
|
+
AllowAdjacentOneLineDefs: true
|
53
|
+
|
51
54
|
Layout/EndAlignment:
|
52
55
|
Enabled: false
|
53
56
|
|
@@ -81,7 +84,7 @@ Metrics/CyclomaticComplexity:
|
|
81
84
|
Max: 7
|
82
85
|
|
83
86
|
Metrics/MethodLength:
|
84
|
-
|
87
|
+
IgnoredMethods: ["extended"]
|
85
88
|
Max: 15
|
86
89
|
|
87
90
|
Metrics/ModuleLength:
|
@@ -218,3 +221,128 @@ Style/RedundantRegexpEscape:
|
|
218
221
|
Style/RedundantFetchBlock:
|
219
222
|
Enabled: True
|
220
223
|
|
224
|
+
# 0.87
|
225
|
+
Style/AccessorGrouping:
|
226
|
+
Enabled: True
|
227
|
+
|
228
|
+
Style/BisectedAttrAccessor:
|
229
|
+
Enabled: True
|
230
|
+
|
231
|
+
Style/RedundantAssignment:
|
232
|
+
Enabled: True
|
233
|
+
|
234
|
+
# 0.88
|
235
|
+
Lint/DuplicateElsifCondition:
|
236
|
+
Enabled: True
|
237
|
+
|
238
|
+
Style/ArrayCoercion:
|
239
|
+
Enabled: True
|
240
|
+
|
241
|
+
Style/CaseLikeIf:
|
242
|
+
Enabled: True
|
243
|
+
|
244
|
+
Style/HashAsLastArrayItem:
|
245
|
+
Enabled: True
|
246
|
+
|
247
|
+
Style/HashLikeCase:
|
248
|
+
Enabled: True
|
249
|
+
|
250
|
+
Style/RedundantFileExtensionInRequire:
|
251
|
+
Enabled: True
|
252
|
+
|
253
|
+
# 0.89
|
254
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
255
|
+
Enabled: True
|
256
|
+
|
257
|
+
Lint/DuplicateRescueException:
|
258
|
+
Enabled: True
|
259
|
+
|
260
|
+
Lint/EmptyConditionalBody:
|
261
|
+
Enabled: True
|
262
|
+
|
263
|
+
Lint/FloatComparison:
|
264
|
+
Enabled: True
|
265
|
+
|
266
|
+
Lint/MissingSuper:
|
267
|
+
Enabled: True
|
268
|
+
|
269
|
+
Lint/OutOfRangeRegexpRef:
|
270
|
+
Enabled: True
|
271
|
+
|
272
|
+
Lint/SelfAssignment:
|
273
|
+
Enabled: True
|
274
|
+
|
275
|
+
Lint/TopLevelReturnWithArgument:
|
276
|
+
Enabled: True
|
277
|
+
|
278
|
+
Lint/UnreachableLoop:
|
279
|
+
Enabled: True
|
280
|
+
|
281
|
+
Style/ExplicitBlockArgument:
|
282
|
+
Enabled: True
|
283
|
+
|
284
|
+
Style/GlobalStdStream:
|
285
|
+
Enabled: False
|
286
|
+
|
287
|
+
Style/OptionalBooleanParameter:
|
288
|
+
Enabled: True
|
289
|
+
|
290
|
+
Style/SingleArgumentDig:
|
291
|
+
Enabled: True
|
292
|
+
|
293
|
+
Style/StringConcatenation:
|
294
|
+
Enabled: True
|
295
|
+
|
296
|
+
# rubocop-performance 1.7
|
297
|
+
Performance/AncestorsInclude:
|
298
|
+
Enabled: True
|
299
|
+
|
300
|
+
Performance/BigDecimalWithNumericArgument:
|
301
|
+
Enabled: True
|
302
|
+
|
303
|
+
Performance/RedundantSortBlock:
|
304
|
+
Enabled: True
|
305
|
+
|
306
|
+
Performance/RedundantStringChars:
|
307
|
+
Enabled: True
|
308
|
+
|
309
|
+
Performance/ReverseFirst:
|
310
|
+
Enabled: True
|
311
|
+
|
312
|
+
Performance/SortReverse:
|
313
|
+
Enabled: True
|
314
|
+
|
315
|
+
Performance/Squeeze:
|
316
|
+
Enabled: True
|
317
|
+
|
318
|
+
Performance/StringInclude:
|
319
|
+
Enabled: True
|
320
|
+
|
321
|
+
# 0.90
|
322
|
+
Lint/DuplicateRequire:
|
323
|
+
Enabled: True
|
324
|
+
|
325
|
+
Lint/EmptyFile:
|
326
|
+
Enabled: True
|
327
|
+
|
328
|
+
Lint/TrailingCommaInAttributeDeclaration:
|
329
|
+
Enabled: True
|
330
|
+
|
331
|
+
Lint/UselessMethodDefinition:
|
332
|
+
Enabled: True
|
333
|
+
|
334
|
+
Style/CombinableLoops:
|
335
|
+
Enabled: True
|
336
|
+
|
337
|
+
Style/KeywordParametersOrder:
|
338
|
+
Enabled: True
|
339
|
+
|
340
|
+
Style/RedundantSelfAssignment:
|
341
|
+
Enabled: True
|
342
|
+
|
343
|
+
Style/SoleNestedConditional:
|
344
|
+
Enabled: True
|
345
|
+
|
346
|
+
# rubocop-performance 1.7
|
347
|
+
Performance/Sum:
|
348
|
+
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,15 +22,15 @@ 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', '>= 1.0.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.44.1'
|
29
29
|
s.add_dependency 'rubocop-vendor', '~> 0'
|
30
30
|
|
31
31
|
s.add_development_dependency 'bundler'
|
32
32
|
s.add_development_dependency 'bundler-audit'
|
33
33
|
s.add_development_dependency 'git'
|
34
34
|
s.add_development_dependency 'rake'
|
35
|
-
s.add_development_dependency 'rspec', '~> 3.0'
|
35
|
+
s.add_development_dependency 'rspec', '~> 3.9.0'
|
36
36
|
end
|
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
|
4
|
+
version: 6.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Graham
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-06 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: 1.0.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: 1.0.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.44.1
|
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.44.1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop-vendor
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 3.9.0
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 3.9.0
|
153
153
|
description: Shared config to enforce Ruby style consistently across Wealthsimple
|
154
154
|
services.
|
155
155
|
email:
|
@@ -172,11 +172,13 @@ files:
|
|
172
172
|
- Rakefile
|
173
173
|
- bin/console
|
174
174
|
- bin/setup
|
175
|
+
- catalog-info.yaml
|
175
176
|
- core.yml
|
176
177
|
- default.yml
|
177
178
|
- lib/ws/style.rb
|
178
179
|
- lib/ws/style/version.rb
|
179
180
|
- rails.yml
|
181
|
+
- sonar-project.properties
|
180
182
|
- ws-style.gemspec
|
181
183
|
homepage: https://github.com/wealthsimple/ws-style
|
182
184
|
licenses: []
|