ws-style 6.0.4 → 6.1.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 +6 -0
- data/README.md +8 -0
- data/core.yml +313 -0
- data/default.yml +3 -229
- data/lib/ws/style/version.rb +1 -1
- data/rails.yml +52 -0
- data/ws-style.gemspec +4 -3
- metadata +11 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5210fc8649116d987ca8139168c9962a38ff06c0e5fb1e345c2c131f7884842
|
4
|
+
data.tar.gz: d10be9d6f856a40b4f2217c5497fccea304a96238af6ad2039bfacd8c9caf408
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1db89b905a23779cfd611eb18eb10655308cde5a9fd2745f278bfcec9f3a6b04bb7bbcf7f0ad3079c7735ca5138b8d47c712e07fef738563173b3fddaa37ed62
|
7
|
+
data.tar.gz: d6797dd1e5014b482d3d9da9cabf3fb3197fd525d915f1dc1337138c291fdb5be6806710a4a1bbb5ad1c6a558c3d1b7093ab9b5e3ed9da01aa5381db9a4825eb
|
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,12 @@ 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.1.0 - 2020-08-27
|
8
|
+
- Upgraded rubocop to 0.89
|
9
|
+
- Upgraded rubocop-performance to 1.7
|
10
|
+
- Upgraded rubocop-rails to 2.7
|
11
|
+
- Split out Rails cops into their own configuration to improve installation for non-Rails projects
|
12
|
+
|
7
13
|
## 6.0.4 - 2020-07-06
|
8
14
|
### Changed
|
9
15
|
- 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/core.yml
ADDED
@@ -0,0 +1,313 @@
|
|
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/NamedSubject:
|
161
|
+
Enabled: false
|
162
|
+
|
163
|
+
RSpec/NestedGroups:
|
164
|
+
Max: 6
|
165
|
+
|
166
|
+
# Cops added in Rubocop 0.80 or later need to be enabled one-by-one below.
|
167
|
+
# For more information: https://docs.rubocop.org/en/latest/versioning/
|
168
|
+
|
169
|
+
# 0.80
|
170
|
+
Style/HashEachMethods:
|
171
|
+
Enabled: true
|
172
|
+
|
173
|
+
Style/HashTransformKeys:
|
174
|
+
Enabled: true
|
175
|
+
|
176
|
+
Style/HashTransformValues:
|
177
|
+
Enabled: true
|
178
|
+
|
179
|
+
# 0.81
|
180
|
+
Lint/RaiseException:
|
181
|
+
Enabled: true
|
182
|
+
|
183
|
+
Lint/StructNewOverride:
|
184
|
+
Enabled: true
|
185
|
+
|
186
|
+
# 0.82
|
187
|
+
Layout/SpaceAroundMethodCallOperator:
|
188
|
+
Enabled: true
|
189
|
+
|
190
|
+
Style/ExponentialNotation:
|
191
|
+
Enabled: true
|
192
|
+
|
193
|
+
# 0.83
|
194
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
195
|
+
Enabled: True
|
196
|
+
|
197
|
+
Style/SlicingWithRange:
|
198
|
+
Enabled: True
|
199
|
+
|
200
|
+
# 0.84
|
201
|
+
Lint/DeprecatedOpenSSLConstant:
|
202
|
+
Enabled: True
|
203
|
+
|
204
|
+
# 0.85
|
205
|
+
Lint/MixedRegexpCaptureTypes:
|
206
|
+
Enabled: True
|
207
|
+
|
208
|
+
Style/RedundantRegexpCharacterClass:
|
209
|
+
Enabled: True
|
210
|
+
|
211
|
+
Style/RedundantRegexpEscape:
|
212
|
+
Enabled: True
|
213
|
+
|
214
|
+
# 0.86
|
215
|
+
Style/RedundantFetchBlock:
|
216
|
+
Enabled: True
|
217
|
+
|
218
|
+
# 0.87
|
219
|
+
Style/AccessorGrouping:
|
220
|
+
Enabled: True
|
221
|
+
|
222
|
+
Style/BisectedAttrAccessor:
|
223
|
+
Enabled: True
|
224
|
+
|
225
|
+
Style/RedundantAssignment:
|
226
|
+
Enabled: True
|
227
|
+
|
228
|
+
# 0.88
|
229
|
+
Lint/DuplicateElsifCondition:
|
230
|
+
Enabled: True
|
231
|
+
|
232
|
+
Style/ArrayCoercion:
|
233
|
+
Enabled: True
|
234
|
+
|
235
|
+
Style/CaseLikeIf:
|
236
|
+
Enabled: True
|
237
|
+
|
238
|
+
Style/HashAsLastArrayItem:
|
239
|
+
Enabled: True
|
240
|
+
|
241
|
+
Style/HashLikeCase:
|
242
|
+
Enabled: True
|
243
|
+
|
244
|
+
Style/RedundantFileExtensionInRequire:
|
245
|
+
Enabled: True
|
246
|
+
|
247
|
+
# 0.89
|
248
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
249
|
+
Enabled: True
|
250
|
+
|
251
|
+
Lint/DuplicateRescueException:
|
252
|
+
Enabled: True
|
253
|
+
|
254
|
+
Lint/EmptyConditionalBody:
|
255
|
+
Enabled: True
|
256
|
+
|
257
|
+
Lint/FloatComparison:
|
258
|
+
Enabled: True
|
259
|
+
|
260
|
+
Lint/MissingSuper:
|
261
|
+
Enabled: True
|
262
|
+
|
263
|
+
Lint/OutOfRangeRegexpRef:
|
264
|
+
Enabled: True
|
265
|
+
|
266
|
+
Lint/SelfAssignment:
|
267
|
+
Enabled: True
|
268
|
+
|
269
|
+
Lint/TopLevelReturnWithArgument:
|
270
|
+
Enabled: True
|
271
|
+
|
272
|
+
Lint/UnreachableLoop:
|
273
|
+
Enabled: True
|
274
|
+
|
275
|
+
Style/ExplicitBlockArgument:
|
276
|
+
Enabled: True
|
277
|
+
|
278
|
+
Style/GlobalStdStream:
|
279
|
+
Enabled: True
|
280
|
+
|
281
|
+
Style/OptionalBooleanParameter:
|
282
|
+
Enabled: True
|
283
|
+
|
284
|
+
Style/SingleArgumentDig:
|
285
|
+
Enabled: True
|
286
|
+
|
287
|
+
Style/StringConcatenation:
|
288
|
+
Enabled: True
|
289
|
+
|
290
|
+
# rubocop-performance 1.7
|
291
|
+
Performance/AncestorsInclude:
|
292
|
+
Enabled: True
|
293
|
+
|
294
|
+
Performance/BigDecimalWithNumericArgument:
|
295
|
+
Enabled: True
|
296
|
+
|
297
|
+
Performance/RedundantSortBlock:
|
298
|
+
Enabled: True
|
299
|
+
|
300
|
+
Performance/RedundantStringChars:
|
301
|
+
Enabled: True
|
302
|
+
|
303
|
+
Performance/ReverseFirst:
|
304
|
+
Enabled: True
|
305
|
+
|
306
|
+
Performance/SortReverse:
|
307
|
+
Enabled: True
|
308
|
+
|
309
|
+
Performance/Squeeze:
|
310
|
+
Enabled: True
|
311
|
+
|
312
|
+
Performance/StringInclude:
|
313
|
+
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,52 @@
|
|
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: True
|
49
|
+
|
50
|
+
Rails/WhereExists:
|
51
|
+
Enabled: True
|
52
|
+
|
data/ws-style.gemspec
CHANGED
@@ -20,10 +20,11 @@ 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.
|
26
|
-
s.add_dependency 'rubocop-rails', '>= 2.
|
25
|
+
s.add_dependency 'rubocop', '>= 0.89'
|
26
|
+
s.add_dependency 'rubocop-performance', '>= 1.7'
|
27
|
+
s.add_dependency 'rubocop-rails', '>= 2.7'
|
27
28
|
s.add_dependency 'rubocop-rspec', '~> 1.32'
|
28
29
|
s.add_dependency 'rubocop-vendor', '~> 0'
|
29
30
|
|
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.1.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-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.89'
|
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.
|
26
|
+
version: '0.89'
|
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.
|
33
|
+
version: '1.7'
|
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.
|
40
|
+
version: '1.7'
|
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.7'
|
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.7'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop-rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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
|
- - ">="
|