betterlint 1.4.7 → 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 +97 -94
- metadata +2 -2
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,83 @@ 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
|
-
Rails:
|
|
175
|
-
Enabled: true
|
|
176
|
-
|
|
177
|
-
Rails/ApplicationRecord:
|
|
178
|
-
Enabled: false
|
|
179
|
-
|
|
180
|
-
Rails/Delegate:
|
|
181
|
-
Enabled: false
|
|
182
|
-
|
|
183
|
-
Rails/FindEach:
|
|
184
|
-
Enabled: false
|
|
185
|
-
|
|
186
|
-
Rails/HttpPositionalArguments:
|
|
187
|
-
Enabled: true
|
|
188
|
-
|
|
189
|
-
Rails/OutputSafety:
|
|
190
|
-
Enabled: true
|
|
191
|
-
|
|
192
180
|
RSpec/BeEq:
|
|
193
181
|
Enabled: false
|
|
194
182
|
|
|
@@ -202,7 +190,7 @@ RSpec/DescribeClass:
|
|
|
202
190
|
Enabled: false
|
|
203
191
|
|
|
204
192
|
RSpec/DescribedClass:
|
|
205
|
-
EnforcedStyle:
|
|
193
|
+
EnforcedStyle: described_class
|
|
206
194
|
|
|
207
195
|
RSpec/EmptyLineAfterExampleGroup:
|
|
208
196
|
Enabled: false
|
|
@@ -223,17 +211,14 @@ RSpec/ExampleWording:
|
|
|
223
211
|
Enabled: false
|
|
224
212
|
|
|
225
213
|
RSpec/ExpectChange:
|
|
226
|
-
EnforcedStyle:
|
|
227
|
-
|
|
228
|
-
FactoryBot/SyntaxMethods:
|
|
229
|
-
Enabled: false
|
|
214
|
+
EnforcedStyle: block
|
|
230
215
|
|
|
231
216
|
RSpec/FilePath:
|
|
232
217
|
Enabled: false
|
|
233
218
|
|
|
234
219
|
RSpec/HookArgument:
|
|
235
220
|
Enabled: false
|
|
236
|
-
|
|
221
|
+
|
|
237
222
|
RSpec/IndexedLet:
|
|
238
223
|
Enabled: false
|
|
239
224
|
|
|
@@ -273,6 +258,24 @@ RSpec/ScatteredLet:
|
|
|
273
258
|
RSpec/ScatteredSetup:
|
|
274
259
|
Enabled: false
|
|
275
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
|
+
|
|
276
279
|
Style/AccessModifierDeclarations:
|
|
277
280
|
Enabled: false
|
|
278
281
|
|
|
@@ -299,7 +302,7 @@ Style/Lambda:
|
|
|
299
302
|
|
|
300
303
|
Style/LambdaCall:
|
|
301
304
|
Exclude:
|
|
302
|
-
-
|
|
305
|
+
- app/views/**/*.jbuilder
|
|
303
306
|
|
|
304
307
|
Style/MissingElse:
|
|
305
308
|
Enabled: true
|
|
@@ -307,12 +310,12 @@ Style/MissingElse:
|
|
|
307
310
|
|
|
308
311
|
Style/PercentLiteralDelimiters:
|
|
309
312
|
PreferredDelimiters:
|
|
310
|
-
|
|
311
|
-
'%
|
|
312
|
-
'%
|
|
313
|
+
'%I': ()
|
|
314
|
+
'%W': ()
|
|
315
|
+
'%i': ()
|
|
313
316
|
'%r': '{}'
|
|
314
|
-
'%w':
|
|
315
|
-
|
|
317
|
+
'%w': ()
|
|
318
|
+
default: ()
|
|
316
319
|
|
|
317
320
|
Style/SafeNavigation:
|
|
318
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
|