betterlint 1.4.6 → 1.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config/default.yml +100 -91
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 813f34b6686203903a45f61a50b77580db3724aae429fbf14fc7b40dae6e493a
|
|
4
|
+
data.tar.gz: 78e006ff0e4047dd5db5f884d123a6007692f46970a56de8461ea4a794933c10
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d239230e712d5f146fb3ed00d0a73cfb91af5a1fb352eeb912025f7d4c520eb117b8372e69543fcedaa2082cb7519038cb09db986e32f563c226faa6b7ce783e
|
|
7
|
+
data.tar.gz: b1cf64f99f99ac6abf64909651afc8ba269b49a8a9e17de166e0ff41bfa1b686976999a9a926063d20967fa63af5cb0f61975609cdb03481fa624900806a7867
|
data/config/default.yml
CHANGED
|
@@ -8,17 +8,17 @@ require:
|
|
|
8
8
|
- rubocop-rspec
|
|
9
9
|
|
|
10
10
|
AllCops:
|
|
11
|
-
Exclude:
|
|
12
|
-
- 'bin/**/*'
|
|
13
|
-
- 'db/**/*'
|
|
14
|
-
- 'vendor/**/*'
|
|
15
|
-
- 'frontend/**/*'
|
|
16
|
-
- 'build/**/*'
|
|
17
|
-
- 'node_modules/**/*'
|
|
18
|
-
- 'tmp/**/*'
|
|
19
|
-
- 'Gemfile'
|
|
20
|
-
DisplayStyleGuide: true
|
|
21
11
|
DisplayCopNames: true
|
|
12
|
+
DisplayStyleGuide: true
|
|
13
|
+
Exclude:
|
|
14
|
+
- Gemfile
|
|
15
|
+
- bin/**/*
|
|
16
|
+
- build/**/*
|
|
17
|
+
- db/**/*
|
|
18
|
+
- frontend/**/*
|
|
19
|
+
- node_modules/**/*
|
|
20
|
+
- tmp/**/*
|
|
21
|
+
- vendor/**/*
|
|
22
22
|
NewCops: enable
|
|
23
23
|
SuggestExtensions:
|
|
24
24
|
rubocop-capybara: false
|
|
@@ -26,60 +26,60 @@ AllCops:
|
|
|
26
26
|
Betterment:
|
|
27
27
|
StyleGuideBaseURL: https://github.com/Betterment/betterlint
|
|
28
28
|
|
|
29
|
-
Betterment/ServerErrorAssertion:
|
|
30
|
-
Description: 'Detects assertions on 5XX HTTP statuses.'
|
|
31
|
-
Include:
|
|
32
|
-
- 'spec/requests/**/*_spec.rb'
|
|
33
|
-
|
|
34
29
|
Betterment/AuthorizationInController:
|
|
35
|
-
Description:
|
|
36
|
-
StyleGuide: '#bettermentauthorizationincontroller'
|
|
30
|
+
Description: Detects unsafe handling of id-like parameters in controllers.
|
|
37
31
|
Enabled: false
|
|
38
|
-
|
|
39
|
-
Betterment/UnsafeJob:
|
|
40
|
-
Enabled: false
|
|
41
|
-
StyleGuide: '#bettermentunsafejob'
|
|
42
|
-
sensitive_params:
|
|
43
|
-
- password
|
|
44
|
-
- social_security_number
|
|
45
|
-
- ssn
|
|
46
|
-
|
|
47
|
-
Betterment/UnscopedFind:
|
|
48
|
-
StyleGuide: '#bettermentunscopedfind'
|
|
32
|
+
StyleGuide: '#bettermentauthorizationincontroller'
|
|
49
33
|
|
|
50
34
|
Betterment/DynamicParams:
|
|
51
35
|
StyleGuide: '#bettermentdynamicparams'
|
|
52
36
|
|
|
53
|
-
Betterment/
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
37
|
+
Betterment/HardcodedID:
|
|
38
|
+
AutoCorrect: false
|
|
39
|
+
Description: Detects hardcoded IDs in specs
|
|
40
|
+
SafeAutoCorrect: false
|
|
41
|
+
StyleGuide: '#bettermenthardcodedid'
|
|
57
42
|
|
|
58
43
|
Betterment/NonStandardActions:
|
|
59
|
-
Description: 'Detects non-standard controller actions.'
|
|
60
|
-
StyleGuide: '#bettermentnonstandardactions'
|
|
61
44
|
AdditionalAllowedActions: []
|
|
45
|
+
Description: Detects non-standard controller actions.
|
|
46
|
+
Include:
|
|
47
|
+
- config/routes.rb
|
|
62
48
|
StandardActions:
|
|
49
|
+
- create
|
|
50
|
+
- destroy
|
|
51
|
+
- edit
|
|
63
52
|
- index
|
|
64
|
-
- show
|
|
65
53
|
- new
|
|
66
|
-
-
|
|
67
|
-
- create
|
|
54
|
+
- show
|
|
68
55
|
- update
|
|
69
|
-
|
|
56
|
+
StyleGuide: '#bettermentnonstandardactions'
|
|
57
|
+
|
|
58
|
+
Betterment/ServerErrorAssertion:
|
|
59
|
+
Description: Detects assertions on 5XX HTTP statuses.
|
|
70
60
|
Include:
|
|
71
|
-
-
|
|
61
|
+
- spec/requests/**/*_spec.rb
|
|
72
62
|
|
|
73
|
-
Betterment/
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
63
|
+
Betterment/SitePrismLoaded:
|
|
64
|
+
Include:
|
|
65
|
+
- spec/features/**/*_spec.rb
|
|
66
|
+
- spec/system/**/*_spec.rb
|
|
67
|
+
|
|
68
|
+
Betterment/UnsafeJob:
|
|
69
|
+
Enabled: false
|
|
70
|
+
StyleGuide: '#bettermentunsafejob'
|
|
71
|
+
sensitive_params:
|
|
72
|
+
- password
|
|
73
|
+
- social_security_number
|
|
74
|
+
- ssn
|
|
75
|
+
|
|
76
|
+
Betterment/UnscopedFind:
|
|
77
|
+
StyleGuide: '#bettermentunscopedfind'
|
|
78
78
|
|
|
79
79
|
FactoryBot/ConsistentParenthesesStyle:
|
|
80
80
|
Enabled: false
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
FactoryBot/SyntaxMethods:
|
|
83
83
|
Enabled: false
|
|
84
84
|
|
|
85
85
|
Layout/CaseIndentation:
|
|
@@ -100,95 +100,86 @@ Layout/MultilineMethodCallIndentation:
|
|
|
100
100
|
Layout/MultilineOperationIndentation:
|
|
101
101
|
EnforcedStyle: indented
|
|
102
102
|
|
|
103
|
+
Layout/ParameterAlignment:
|
|
104
|
+
Enabled: false
|
|
105
|
+
|
|
103
106
|
# Disabling because of a bug in rubocop: https://github.com/rubocop-hq/rubocop/issues/6918
|
|
104
107
|
Layout/RescueEnsureAlignment:
|
|
105
108
|
Enabled: false
|
|
106
109
|
|
|
107
110
|
Lint/AmbiguousBlockAssociation:
|
|
108
111
|
Exclude:
|
|
109
|
-
-
|
|
112
|
+
- spec/**/*
|
|
110
113
|
|
|
111
114
|
Lint/AmbiguousOperator:
|
|
112
115
|
Exclude:
|
|
113
|
-
-
|
|
116
|
+
- spec/**/*
|
|
114
117
|
|
|
115
118
|
Lint/AmbiguousRegexpLiteral:
|
|
116
119
|
Exclude:
|
|
117
|
-
-
|
|
120
|
+
- spec/**/*
|
|
118
121
|
|
|
119
122
|
Lint/BooleanSymbol:
|
|
120
123
|
Exclude:
|
|
121
|
-
-
|
|
124
|
+
- spec/**/*
|
|
125
|
+
|
|
126
|
+
Lint/FloatComparison:
|
|
127
|
+
Enabled: true
|
|
122
128
|
|
|
123
129
|
Metrics/AbcSize:
|
|
124
130
|
Exclude:
|
|
125
|
-
-
|
|
126
|
-
-
|
|
131
|
+
- spec/**/*
|
|
132
|
+
- webvalve/**/*
|
|
127
133
|
|
|
128
134
|
Metrics/BlockLength:
|
|
129
135
|
Enabled: false
|
|
130
136
|
|
|
131
137
|
Metrics/ClassLength:
|
|
132
|
-
Max: 250
|
|
133
138
|
Exclude:
|
|
134
|
-
-
|
|
139
|
+
- webvalve/**/*
|
|
140
|
+
Max: 250
|
|
135
141
|
|
|
136
142
|
Metrics/CyclomaticComplexity:
|
|
137
|
-
Max: 10
|
|
138
143
|
Exclude:
|
|
139
|
-
-
|
|
140
|
-
-
|
|
144
|
+
- spec/**/*
|
|
145
|
+
- webvalve/**/*
|
|
146
|
+
Max: 10
|
|
141
147
|
|
|
142
148
|
Metrics/MethodLength:
|
|
143
149
|
Enabled: false
|
|
144
150
|
|
|
145
151
|
Metrics/ModuleLength:
|
|
146
|
-
Max: 250
|
|
147
152
|
Exclude:
|
|
148
|
-
-
|
|
153
|
+
- webvalve/**/*
|
|
154
|
+
Max: 250
|
|
149
155
|
|
|
150
156
|
Metrics/ParameterLists:
|
|
151
|
-
Max: 5
|
|
152
157
|
CountKeywordArgs: false
|
|
158
|
+
Max: 5
|
|
153
159
|
|
|
154
160
|
Metrics/PerceivedComplexity:
|
|
155
161
|
Exclude:
|
|
156
|
-
-
|
|
157
|
-
-
|
|
162
|
+
- spec/**/*
|
|
163
|
+
- webvalve/**/*
|
|
158
164
|
|
|
159
165
|
Naming/HeredocDelimiterNaming:
|
|
160
166
|
Enabled: false
|
|
161
167
|
|
|
162
168
|
Naming/PredicateName:
|
|
163
|
-
NamePrefix:
|
|
164
|
-
- is_
|
|
165
169
|
ForbiddenPrefixes:
|
|
166
170
|
- is_
|
|
171
|
+
NamePrefix:
|
|
172
|
+
- is_
|
|
167
173
|
|
|
168
174
|
Naming/VariableNumber:
|
|
169
|
-
EnforcedStyle:
|
|
175
|
+
EnforcedStyle: snake_case
|
|
170
176
|
|
|
171
177
|
Performance/RedundantMatch:
|
|
172
178
|
Enabled: false
|
|
173
179
|
|
|
174
|
-
|
|
175
|
-
Enabled: true
|
|
176
|
-
|
|
177
|
-
Rails/ApplicationRecord:
|
|
178
|
-
Enabled: false
|
|
179
|
-
|
|
180
|
-
Rails/Delegate:
|
|
180
|
+
RSpec/BeEq:
|
|
181
181
|
Enabled: false
|
|
182
182
|
|
|
183
|
-
Rails/FindEach:
|
|
184
|
-
Enabled: false
|
|
185
|
-
|
|
186
|
-
Rails/HttpPositionalArguments:
|
|
187
|
-
Enabled: true
|
|
188
|
-
|
|
189
|
-
Rails/OutputSafety:
|
|
190
|
-
Enabled: true
|
|
191
|
-
|
|
192
183
|
RSpec/Capybara/FeatureMethods:
|
|
193
184
|
Enabled: false
|
|
194
185
|
|
|
@@ -199,7 +190,7 @@ RSpec/DescribeClass:
|
|
|
199
190
|
Enabled: false
|
|
200
191
|
|
|
201
192
|
RSpec/DescribedClass:
|
|
202
|
-
EnforcedStyle:
|
|
193
|
+
EnforcedStyle: described_class
|
|
203
194
|
|
|
204
195
|
RSpec/EmptyLineAfterExampleGroup:
|
|
205
196
|
Enabled: false
|
|
@@ -220,10 +211,7 @@ RSpec/ExampleWording:
|
|
|
220
211
|
Enabled: false
|
|
221
212
|
|
|
222
213
|
RSpec/ExpectChange:
|
|
223
|
-
EnforcedStyle:
|
|
224
|
-
|
|
225
|
-
FactoryBot/SyntaxMethods:
|
|
226
|
-
Enabled: false
|
|
214
|
+
EnforcedStyle: block
|
|
227
215
|
|
|
228
216
|
RSpec/FilePath:
|
|
229
217
|
Enabled: false
|
|
@@ -231,6 +219,9 @@ RSpec/FilePath:
|
|
|
231
219
|
RSpec/HookArgument:
|
|
232
220
|
Enabled: false
|
|
233
221
|
|
|
222
|
+
RSpec/IndexedLet:
|
|
223
|
+
Enabled: false
|
|
224
|
+
|
|
234
225
|
RSpec/ItBehavesLike:
|
|
235
226
|
Enabled: false
|
|
236
227
|
|
|
@@ -267,6 +258,24 @@ RSpec/ScatteredLet:
|
|
|
267
258
|
RSpec/ScatteredSetup:
|
|
268
259
|
Enabled: false
|
|
269
260
|
|
|
261
|
+
Rails:
|
|
262
|
+
Enabled: true
|
|
263
|
+
|
|
264
|
+
Rails/ApplicationRecord:
|
|
265
|
+
Enabled: false
|
|
266
|
+
|
|
267
|
+
Rails/Delegate:
|
|
268
|
+
Enabled: false
|
|
269
|
+
|
|
270
|
+
Rails/FindEach:
|
|
271
|
+
Enabled: false
|
|
272
|
+
|
|
273
|
+
Rails/HttpPositionalArguments:
|
|
274
|
+
Enabled: true
|
|
275
|
+
|
|
276
|
+
Rails/OutputSafety:
|
|
277
|
+
Enabled: true
|
|
278
|
+
|
|
270
279
|
Style/AccessModifierDeclarations:
|
|
271
280
|
Enabled: false
|
|
272
281
|
|
|
@@ -293,7 +302,7 @@ Style/Lambda:
|
|
|
293
302
|
|
|
294
303
|
Style/LambdaCall:
|
|
295
304
|
Exclude:
|
|
296
|
-
-
|
|
305
|
+
- app/views/**/*.jbuilder
|
|
297
306
|
|
|
298
307
|
Style/MissingElse:
|
|
299
308
|
Enabled: true
|
|
@@ -301,12 +310,12 @@ Style/MissingElse:
|
|
|
301
310
|
|
|
302
311
|
Style/PercentLiteralDelimiters:
|
|
303
312
|
PreferredDelimiters:
|
|
304
|
-
|
|
305
|
-
'%
|
|
306
|
-
'%
|
|
313
|
+
'%I': ()
|
|
314
|
+
'%W': ()
|
|
315
|
+
'%i': ()
|
|
307
316
|
'%r': '{}'
|
|
308
|
-
'%w':
|
|
309
|
-
|
|
317
|
+
'%w': ()
|
|
318
|
+
default: ()
|
|
310
319
|
|
|
311
320
|
Style/SafeNavigation:
|
|
312
321
|
Enabled: false
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: betterlint
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Development
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-08-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|
|
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
129
129
|
- !ruby/object:Gem::Version
|
|
130
130
|
version: '0'
|
|
131
131
|
requirements: []
|
|
132
|
-
rubygems_version: 3.
|
|
132
|
+
rubygems_version: 3.3.7
|
|
133
133
|
signing_key:
|
|
134
134
|
specification_version: 4
|
|
135
135
|
summary: Betterment rubocop configuration
|