ws-style 6.0.4 → 6.4.0
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 +1 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +18 -0
- data/README.md +8 -0
- data/Rakefile +24 -0
- data/core.yml +345 -0
- data/default.yml +3 -229
- data/lib/ws/style/version.rb +1 -1
- data/rails.yml +61 -0
- data/ws-style.gemspec +6 -5
- metadata +17 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d7821f0b636b9ba9c1af12cf715600fc68b09798d934e47b808b6bbd4dc5df1
|
4
|
+
data.tar.gz: 307d84cbffc80c17071e82aeaa2bf0e5e73492a0379a5b8f930cc6a14d82fc16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebf03f9b06e16f4f26770db4bb06207ea78ff8c5318cf20b4104c9a33af492d362c014c63543ba4ebf73a5beb2cbe1cf3c92f7ffebfa8d2cfde9ce0584044499
|
7
|
+
data.tar.gz: 22d953cb0c305e0449fc6f13f3c2b3db6407f0e97d5965b5d304d2612d68bf981dc0700509852e83d12498bf85eb2a34e1899ea31352ae7f1ab39f7a327c9966
|
data/.circleci/config.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.5.
|
1
|
+
2.5.7
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,24 @@ 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.4.0 - 2020-10-07
|
8
|
+
- Upgrade RuboCop
|
9
|
+
|
10
|
+
## 6.3.0 - 2020-10-06
|
11
|
+
- Upgrade RuboCop and enable cops that were voted in
|
12
|
+
|
13
|
+
## 6.2.0 - 2020-09-04
|
14
|
+
- Disable Cops enabled in 6.1.0 until we can confirm we want them
|
15
|
+
|
16
|
+
## 6.1.1 - 2020-09-04
|
17
|
+
- Disable RSpec/MultipleMemoizedHelpers cop
|
18
|
+
|
19
|
+
## 6.1.0 - 2020-08-27
|
20
|
+
- Upgraded rubocop to 0.89
|
21
|
+
- Upgraded rubocop-performance to 1.7
|
22
|
+
- Upgraded rubocop-rails to 2.7
|
23
|
+
- Split out Rails cops into their own configuration to improve installation for non-Rails projects
|
24
|
+
|
7
25
|
## 6.0.4 - 2020-07-06
|
8
26
|
### Changed
|
9
27
|
- Upgraded rubocop to >= 0.86 and opted into the new cops.
|
data/README.md
CHANGED
@@ -59,6 +59,14 @@ Style/HashSyntax:
|
|
59
59
|
EnforcedStyle: hash_rockets
|
60
60
|
```
|
61
61
|
|
62
|
+
If you're using `ws-style` in a non-Rails project, inherit from the core configuration file instead:
|
63
|
+
|
64
|
+
```yaml
|
65
|
+
inherit_gem:
|
66
|
+
ws-style:
|
67
|
+
- core.yml
|
68
|
+
```
|
69
|
+
|
62
70
|
## Development
|
63
71
|
|
64
72
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
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
ADDED
@@ -0,0 +1,345 @@
|
|
1
|
+
# See documentation for details on definitions:
|
2
|
+
# https://rubocop.readthedocs.io
|
3
|
+
|
4
|
+
require:
|
5
|
+
- rubocop-performance
|
6
|
+
- rubocop-rspec
|
7
|
+
- rubocop-vendor
|
8
|
+
|
9
|
+
inherit_mode:
|
10
|
+
merge:
|
11
|
+
- AllowedNames
|
12
|
+
- Exclude
|
13
|
+
|
14
|
+
AllCops:
|
15
|
+
Exclude:
|
16
|
+
- "bin/**/*"
|
17
|
+
- "data/**/*"
|
18
|
+
- "db/data/**/*"
|
19
|
+
- "db/migrate/**/*"
|
20
|
+
- "db/schema.rb"
|
21
|
+
- "gemfiles/**/*"
|
22
|
+
- "lib/tasks/circle_0.rake"
|
23
|
+
- "log/**/*"
|
24
|
+
- "node_modules/**/*"
|
25
|
+
- "public/**/*"
|
26
|
+
- "tmp/**/*"
|
27
|
+
- "vendor/**/*"
|
28
|
+
|
29
|
+
Layout/HashAlignment:
|
30
|
+
EnforcedLastArgumentHashStyle: ignore_implicit
|
31
|
+
|
32
|
+
Layout/ParameterAlignment:
|
33
|
+
Enabled: false
|
34
|
+
|
35
|
+
Layout/ArgumentAlignment:
|
36
|
+
Enabled: false
|
37
|
+
|
38
|
+
Lint/AmbiguousBlockAssociation:
|
39
|
+
Exclude:
|
40
|
+
- "spec/**/*"
|
41
|
+
|
42
|
+
Layout/DotPosition:
|
43
|
+
EnforcedStyle: trailing
|
44
|
+
|
45
|
+
Layout/CaseIndentation:
|
46
|
+
Enabled: false
|
47
|
+
|
48
|
+
Layout/ElseAlignment:
|
49
|
+
Enabled: false
|
50
|
+
|
51
|
+
Layout/EndAlignment:
|
52
|
+
Enabled: false
|
53
|
+
|
54
|
+
Layout/FirstArrayElementIndentation:
|
55
|
+
EnforcedStyle: consistent
|
56
|
+
|
57
|
+
Layout/IndentationWidth:
|
58
|
+
Enabled: true
|
59
|
+
Width: 2
|
60
|
+
|
61
|
+
Layout/LineLength:
|
62
|
+
IgnoredPatterns: ['(\A|\s)#']
|
63
|
+
Max: 100
|
64
|
+
|
65
|
+
Layout/FirstHashElementIndentation:
|
66
|
+
EnforcedStyle: consistent
|
67
|
+
|
68
|
+
Layout/MultilineMethodCallIndentation:
|
69
|
+
EnforcedStyle: indented
|
70
|
+
|
71
|
+
Metrics/AbcSize:
|
72
|
+
Max: 18
|
73
|
+
|
74
|
+
Metrics/BlockLength:
|
75
|
+
Enabled: false
|
76
|
+
|
77
|
+
Metrics/ClassLength:
|
78
|
+
Max: 150
|
79
|
+
|
80
|
+
Metrics/CyclomaticComplexity:
|
81
|
+
Max: 7
|
82
|
+
|
83
|
+
Metrics/MethodLength:
|
84
|
+
ExcludedMethods: ["extended"]
|
85
|
+
Max: 15
|
86
|
+
|
87
|
+
Metrics/ModuleLength:
|
88
|
+
Exclude:
|
89
|
+
- "spec/**/*"
|
90
|
+
|
91
|
+
Metrics/ParameterLists:
|
92
|
+
Enabled: false
|
93
|
+
|
94
|
+
Metrics/PerceivedComplexity:
|
95
|
+
Max: 8
|
96
|
+
|
97
|
+
Style/AndOr:
|
98
|
+
EnforcedStyle: conditionals
|
99
|
+
|
100
|
+
Style/BlockDelimiters:
|
101
|
+
Enabled: false
|
102
|
+
|
103
|
+
Style/ClassAndModuleChildren:
|
104
|
+
Enabled: false
|
105
|
+
|
106
|
+
Style/Documentation:
|
107
|
+
Enabled: false
|
108
|
+
|
109
|
+
Style/FormatStringToken:
|
110
|
+
Enabled: false
|
111
|
+
|
112
|
+
Style/FrozenStringLiteralComment:
|
113
|
+
Enabled: false
|
114
|
+
|
115
|
+
Style/NumericPredicate:
|
116
|
+
Enabled: false
|
117
|
+
|
118
|
+
Style/StringLiterals:
|
119
|
+
Enabled: false
|
120
|
+
|
121
|
+
Style/SymbolArray:
|
122
|
+
Enabled: false
|
123
|
+
|
124
|
+
Style/TrailingCommaInArguments:
|
125
|
+
EnforcedStyleForMultiline: comma
|
126
|
+
|
127
|
+
Style/TrailingCommaInArrayLiteral:
|
128
|
+
EnforcedStyleForMultiline: comma
|
129
|
+
|
130
|
+
Style/TrailingCommaInHashLiteral:
|
131
|
+
EnforcedStyleForMultiline: comma
|
132
|
+
|
133
|
+
Style/WordArray:
|
134
|
+
Enabled: false
|
135
|
+
|
136
|
+
Style/NegatedIf:
|
137
|
+
Enabled: false
|
138
|
+
|
139
|
+
RSpec/AnyInstance:
|
140
|
+
Enabled: false
|
141
|
+
|
142
|
+
RSpec/ContextWording:
|
143
|
+
Enabled: false
|
144
|
+
|
145
|
+
RSpec/EmptyExampleGroup:
|
146
|
+
Enabled: false
|
147
|
+
|
148
|
+
RSpec/ExampleLength:
|
149
|
+
Max: 15
|
150
|
+
|
151
|
+
RSpec/LetSetup:
|
152
|
+
Enabled: false
|
153
|
+
|
154
|
+
RSpec/MessageChain:
|
155
|
+
Enabled: false
|
156
|
+
|
157
|
+
RSpec/MultipleExpectations:
|
158
|
+
Enabled: false
|
159
|
+
|
160
|
+
RSpec/MultipleMemoizedHelpers:
|
161
|
+
Enabled: false
|
162
|
+
|
163
|
+
RSpec/NamedSubject:
|
164
|
+
Enabled: false
|
165
|
+
|
166
|
+
RSpec/NestedGroups:
|
167
|
+
Max: 6
|
168
|
+
|
169
|
+
# Cops added in Rubocop 0.80 or later need to be enabled one-by-one below.
|
170
|
+
# For more information: https://docs.rubocop.org/en/latest/versioning/
|
171
|
+
|
172
|
+
# 0.80
|
173
|
+
Style/HashEachMethods:
|
174
|
+
Enabled: true
|
175
|
+
|
176
|
+
Style/HashTransformKeys:
|
177
|
+
Enabled: true
|
178
|
+
|
179
|
+
Style/HashTransformValues:
|
180
|
+
Enabled: true
|
181
|
+
|
182
|
+
# 0.81
|
183
|
+
Lint/RaiseException:
|
184
|
+
Enabled: true
|
185
|
+
|
186
|
+
Lint/StructNewOverride:
|
187
|
+
Enabled: true
|
188
|
+
|
189
|
+
# 0.82
|
190
|
+
Layout/SpaceAroundMethodCallOperator:
|
191
|
+
Enabled: true
|
192
|
+
|
193
|
+
Style/ExponentialNotation:
|
194
|
+
Enabled: true
|
195
|
+
|
196
|
+
# 0.83
|
197
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
198
|
+
Enabled: True
|
199
|
+
|
200
|
+
Style/SlicingWithRange:
|
201
|
+
Enabled: True
|
202
|
+
|
203
|
+
# 0.84
|
204
|
+
Lint/DeprecatedOpenSSLConstant:
|
205
|
+
Enabled: True
|
206
|
+
|
207
|
+
# 0.85
|
208
|
+
Lint/MixedRegexpCaptureTypes:
|
209
|
+
Enabled: True
|
210
|
+
|
211
|
+
Style/RedundantRegexpCharacterClass:
|
212
|
+
Enabled: True
|
213
|
+
|
214
|
+
Style/RedundantRegexpEscape:
|
215
|
+
Enabled: True
|
216
|
+
|
217
|
+
# 0.86
|
218
|
+
Style/RedundantFetchBlock:
|
219
|
+
Enabled: True
|
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/default.yml
CHANGED
@@ -1,229 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
require:
|
5
|
-
- rubocop-performance
|
6
|
-
- rubocop-rails
|
7
|
-
- rubocop-rspec
|
8
|
-
- rubocop-vendor
|
9
|
-
|
10
|
-
inherit_mode:
|
11
|
-
merge:
|
12
|
-
- AllowedNames
|
13
|
-
- Exclude
|
14
|
-
|
15
|
-
AllCops:
|
16
|
-
Exclude:
|
17
|
-
- "bin/**/*"
|
18
|
-
- "data/**/*"
|
19
|
-
- "db/data/**/*"
|
20
|
-
- "db/migrate/**/*"
|
21
|
-
- "db/schema.rb"
|
22
|
-
- "gemfiles/**/*"
|
23
|
-
- "lib/tasks/circle_0.rake"
|
24
|
-
- "log/**/*"
|
25
|
-
- "node_modules/**/*"
|
26
|
-
- "public/**/*"
|
27
|
-
- "tmp/**/*"
|
28
|
-
- "vendor/**/*"
|
29
|
-
|
30
|
-
Layout/HashAlignment:
|
31
|
-
EnforcedLastArgumentHashStyle: ignore_implicit
|
32
|
-
|
33
|
-
Layout/ParameterAlignment:
|
34
|
-
Enabled: false
|
35
|
-
|
36
|
-
Layout/ArgumentAlignment:
|
37
|
-
Enabled: false
|
38
|
-
|
39
|
-
Lint/AmbiguousBlockAssociation:
|
40
|
-
Exclude:
|
41
|
-
- "spec/**/*"
|
42
|
-
|
43
|
-
Layout/DotPosition:
|
44
|
-
EnforcedStyle: trailing
|
45
|
-
|
46
|
-
Layout/CaseIndentation:
|
47
|
-
Enabled: false
|
48
|
-
|
49
|
-
Layout/ElseAlignment:
|
50
|
-
Enabled: false
|
51
|
-
|
52
|
-
Layout/EndAlignment:
|
53
|
-
Enabled: false
|
54
|
-
|
55
|
-
Layout/FirstArrayElementIndentation:
|
56
|
-
EnforcedStyle: consistent
|
57
|
-
|
58
|
-
Layout/IndentationWidth:
|
59
|
-
Enabled: true
|
60
|
-
Width: 2
|
61
|
-
|
62
|
-
Layout/LineLength:
|
63
|
-
IgnoredPatterns: ['(\A|\s)#']
|
64
|
-
Max: 100
|
65
|
-
|
66
|
-
Layout/FirstHashElementIndentation:
|
67
|
-
EnforcedStyle: consistent
|
68
|
-
|
69
|
-
Layout/MultilineMethodCallIndentation:
|
70
|
-
EnforcedStyle: indented
|
71
|
-
|
72
|
-
Metrics/AbcSize:
|
73
|
-
Max: 18
|
74
|
-
|
75
|
-
Metrics/BlockLength:
|
76
|
-
Enabled: false
|
77
|
-
|
78
|
-
Metrics/ClassLength:
|
79
|
-
Max: 150
|
80
|
-
|
81
|
-
Metrics/CyclomaticComplexity:
|
82
|
-
Max: 7
|
83
|
-
|
84
|
-
Metrics/MethodLength:
|
85
|
-
ExcludedMethods: ["extended"]
|
86
|
-
Max: 15
|
87
|
-
|
88
|
-
Metrics/ModuleLength:
|
89
|
-
Exclude:
|
90
|
-
- "spec/**/*"
|
91
|
-
|
92
|
-
Metrics/ParameterLists:
|
93
|
-
Enabled: false
|
94
|
-
|
95
|
-
Metrics/PerceivedComplexity:
|
96
|
-
Max: 8
|
97
|
-
|
98
|
-
Style/AndOr:
|
99
|
-
EnforcedStyle: conditionals
|
100
|
-
|
101
|
-
Style/BlockDelimiters:
|
102
|
-
Enabled: false
|
103
|
-
|
104
|
-
Style/ClassAndModuleChildren:
|
105
|
-
Enabled: false
|
106
|
-
|
107
|
-
Style/Documentation:
|
108
|
-
Enabled: false
|
109
|
-
|
110
|
-
Style/FormatStringToken:
|
111
|
-
Enabled: false
|
112
|
-
|
113
|
-
Style/FrozenStringLiteralComment:
|
114
|
-
Enabled: false
|
115
|
-
|
116
|
-
Style/NumericPredicate:
|
117
|
-
Enabled: false
|
118
|
-
|
119
|
-
Style/StringLiterals:
|
120
|
-
Enabled: false
|
121
|
-
|
122
|
-
Style/SymbolArray:
|
123
|
-
Enabled: false
|
124
|
-
|
125
|
-
Style/TrailingCommaInArguments:
|
126
|
-
EnforcedStyleForMultiline: comma
|
127
|
-
|
128
|
-
Style/TrailingCommaInArrayLiteral:
|
129
|
-
EnforcedStyleForMultiline: comma
|
130
|
-
|
131
|
-
Style/TrailingCommaInHashLiteral:
|
132
|
-
EnforcedStyleForMultiline: comma
|
133
|
-
|
134
|
-
Style/WordArray:
|
135
|
-
Enabled: false
|
136
|
-
|
137
|
-
Style/NegatedIf:
|
138
|
-
Enabled: false
|
139
|
-
|
140
|
-
Rails:
|
141
|
-
Enabled: true
|
142
|
-
|
143
|
-
Rails/Delegate:
|
144
|
-
Enabled: false
|
145
|
-
|
146
|
-
Rails/FilePath:
|
147
|
-
EnforcedStyle: arguments
|
148
|
-
|
149
|
-
Rails/TimeZone:
|
150
|
-
Enabled: false
|
151
|
-
|
152
|
-
RSpec/AnyInstance:
|
153
|
-
Enabled: false
|
154
|
-
|
155
|
-
RSpec/ContextWording:
|
156
|
-
Enabled: false
|
157
|
-
|
158
|
-
RSpec/EmptyExampleGroup:
|
159
|
-
Enabled: false
|
160
|
-
|
161
|
-
RSpec/ExampleLength:
|
162
|
-
Max: 15
|
163
|
-
|
164
|
-
RSpec/LetSetup:
|
165
|
-
Enabled: false
|
166
|
-
|
167
|
-
RSpec/MessageChain:
|
168
|
-
Enabled: false
|
169
|
-
|
170
|
-
RSpec/MultipleExpectations:
|
171
|
-
Enabled: false
|
172
|
-
|
173
|
-
RSpec/NamedSubject:
|
174
|
-
Enabled: false
|
175
|
-
|
176
|
-
RSpec/NestedGroups:
|
177
|
-
Max: 6
|
178
|
-
|
179
|
-
# Cops added in Rubocop 0.80 or later need to be enabled one-by-one below.
|
180
|
-
# For more information: https://docs.rubocop.org/en/latest/versioning/
|
181
|
-
|
182
|
-
# 0.80
|
183
|
-
Style/HashEachMethods:
|
184
|
-
Enabled: true
|
185
|
-
|
186
|
-
Style/HashTransformKeys:
|
187
|
-
Enabled: true
|
188
|
-
|
189
|
-
Style/HashTransformValues:
|
190
|
-
Enabled: true
|
191
|
-
|
192
|
-
# 0.81
|
193
|
-
Lint/RaiseException:
|
194
|
-
Enabled: true
|
195
|
-
|
196
|
-
Lint/StructNewOverride:
|
197
|
-
Enabled: true
|
198
|
-
|
199
|
-
# 0.82
|
200
|
-
Layout/SpaceAroundMethodCallOperator:
|
201
|
-
Enabled: true
|
202
|
-
|
203
|
-
Style/ExponentialNotation:
|
204
|
-
Enabled: true
|
205
|
-
|
206
|
-
# 0.83
|
207
|
-
Layout/EmptyLinesAroundAttributeAccessor:
|
208
|
-
Enabled: True
|
209
|
-
|
210
|
-
Style/SlicingWithRange:
|
211
|
-
Enabled: True
|
212
|
-
|
213
|
-
# 0.84
|
214
|
-
Lint/DeprecatedOpenSSLConstant:
|
215
|
-
Enabled: True
|
216
|
-
|
217
|
-
# 0.85
|
218
|
-
Lint/MixedRegexpCaptureTypes:
|
219
|
-
Enabled: True
|
220
|
-
|
221
|
-
Style/RedundantRegexpCharacterClass:
|
222
|
-
Enabled: True
|
223
|
-
|
224
|
-
Style/RedundantRegexpEscape:
|
225
|
-
Enabled: True
|
226
|
-
|
227
|
-
# 0.86
|
228
|
-
Style/RedundantFetchBlock:
|
229
|
-
Enabled: True
|
1
|
+
inherit_from:
|
2
|
+
- core.yml
|
3
|
+
- rails.yml
|
data/lib/ws/style/version.rb
CHANGED
data/rails.yml
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
require:
|
2
|
+
- rubocop-rails
|
3
|
+
|
4
|
+
Rails:
|
5
|
+
Enabled: true
|
6
|
+
|
7
|
+
Rails/Delegate:
|
8
|
+
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
|
data/ws-style.gemspec
CHANGED
@@ -20,16 +20,17 @@ 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 = '>= 2.5.7'
|
23
24
|
|
24
|
-
s.add_dependency 'rubocop', '>= 0.
|
25
|
-
s.add_dependency 'rubocop-performance', '>= 1.1
|
26
|
-
s.add_dependency 'rubocop-rails', '>= 2.
|
27
|
-
s.add_dependency 'rubocop-rspec', '
|
25
|
+
s.add_dependency 'rubocop', '>= 0.92.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'
|
28
29
|
s.add_dependency 'rubocop-vendor', '~> 0'
|
29
30
|
|
30
31
|
s.add_development_dependency 'bundler'
|
31
32
|
s.add_development_dependency 'bundler-audit'
|
32
33
|
s.add_development_dependency 'git'
|
33
34
|
s.add_development_dependency 'rake'
|
34
|
-
s.add_development_dependency 'rspec', '~> 3.0'
|
35
|
+
s.add_development_dependency 'rspec', '~> 3.9.0'
|
35
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.0
|
4
|
+
version: 6.4.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-07
|
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.92.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.92.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.1
|
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.1
|
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.
|
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.
|
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
|
@@ -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,9 +172,11 @@ files:
|
|
172
172
|
- Rakefile
|
173
173
|
- bin/console
|
174
174
|
- bin/setup
|
175
|
+
- core.yml
|
175
176
|
- default.yml
|
176
177
|
- lib/ws/style.rb
|
177
178
|
- lib/ws/style/version.rb
|
179
|
+
- rails.yml
|
178
180
|
- ws-style.gemspec
|
179
181
|
homepage: https://github.com/wealthsimple/ws-style
|
180
182
|
licenses: []
|
@@ -187,7 +189,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
187
189
|
requirements:
|
188
190
|
- - ">="
|
189
191
|
- !ruby/object:Gem::Version
|
190
|
-
version:
|
192
|
+
version: 2.5.7
|
191
193
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
192
194
|
requirements:
|
193
195
|
- - ">="
|