betterlint 1.4.7 → 1.4.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/config/default.yml +103 -93
  3. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b226c8191c6a626e5cdd67d238bcc87f1a30e9dedc295df097e859ef0bae32b
4
- data.tar.gz: 68756cf570f941a1d8fa354ee74585da526eb610e3daf3efdb2205b80347ecb4
3
+ metadata.gz: d607b36a006c41af535225cf9ea3c32771dae29a2cc6bee9092f50d8fc6cab0c
4
+ data.tar.gz: 9cea34ee8efe8657ba6387b08001a95301e61af4a0e0be69a653de02e7d41cbb
5
5
  SHA512:
6
- metadata.gz: b25f6810a797815f54b308f9a895504a2c00d8642f13b45377ceac2dc9dd4da48438da338fc52317f90b80d1737c26ef68bda6e84ed237bd80866fc9883f8253
7
- data.tar.gz: f28f19632b3fc5fec8335b6f364fecbffe384be5c2c2b56ab0251c5bcb64f391d039dbd6b15c7f3978c1b63ceb9e9102676904493b2e705520a3694c660e1391
6
+ metadata.gz: efb8a0837eef49c7a41152194b21fa6e004923a4705812365234375bfc05140bda6bdf25742c4e1e8d6ad002b2940885b8a9c46dfbfa56864bf4bfbe3a18b583
7
+ data.tar.gz: e4d1fdb860e7f9806f1f0e0593999ac998a34345a159de8c2e1030b3464f42473e9ef8d9d3911720898fba489d42690d29ff47b777921bff7ebc80afabdab14e
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: 'Detects unsafe handling of id-like parameters in controllers.'
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/SitePrismLoaded:
54
- Include:
55
- - 'spec/features/**/*_spec.rb'
56
- - 'spec/system/**/*_spec.rb'
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
- - edit
67
- - create
54
+ - show
68
55
  - update
69
- - destroy
56
+ StyleGuide: '#bettermentnonstandardactions'
57
+
58
+ Betterment/ServerErrorAssertion:
59
+ Description: Detects assertions on 5XX HTTP statuses.
70
60
  Include:
71
- - 'config/routes.rb'
61
+ - spec/requests/**/*_spec.rb
72
62
 
73
- Betterment/HardcodedID:
74
- Description: 'Detects hardcoded IDs in specs'
75
- StyleGuide: '#bettermenthardcodedid'
76
- AutoCorrect: false
77
- SafeAutoCorrect: false
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
- Layout/ParameterAlignment:
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
- - 'spec/**/*'
112
+ - spec/**/*
110
113
 
111
114
  Lint/AmbiguousOperator:
112
115
  Exclude:
113
- - 'spec/**/*'
116
+ - spec/**/*
114
117
 
115
118
  Lint/AmbiguousRegexpLiteral:
116
119
  Exclude:
117
- - 'spec/**/*'
120
+ - spec/**/*
118
121
 
119
122
  Lint/BooleanSymbol:
120
123
  Exclude:
121
- - 'spec/**/*'
124
+ - spec/**/*
125
+
126
+ Lint/FloatComparison:
127
+ Enabled: true
122
128
 
123
129
  Metrics/AbcSize:
124
130
  Exclude:
125
- - 'spec/**/*'
126
- - 'webvalve/**/*'
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
- - 'webvalve/**/*'
139
+ - webvalve/**/*
140
+ Max: 250
135
141
 
136
142
  Metrics/CyclomaticComplexity:
137
- Max: 10
138
143
  Exclude:
139
- - 'spec/**/*'
140
- - 'webvalve/**/*'
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
- - 'webvalve/**/*'
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
- - 'spec/**/*'
157
- - 'webvalve/**/*'
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: 'snake_case'
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: 'described_class'
193
+ EnforcedStyle: described_class
206
194
 
207
195
  RSpec/EmptyLineAfterExampleGroup:
208
196
  Enabled: false
@@ -223,17 +211,17 @@ RSpec/ExampleWording:
223
211
  Enabled: false
224
212
 
225
213
  RSpec/ExpectChange:
226
- EnforcedStyle: 'block'
214
+ EnforcedStyle: block
227
215
 
228
- FactoryBot/SyntaxMethods:
216
+ RSpec/SpecFilePathSuffix:
229
217
  Enabled: false
230
218
 
231
- RSpec/FilePath:
219
+ RSpec/SpecFilePathFormat:
232
220
  Enabled: false
233
221
 
234
222
  RSpec/HookArgument:
235
223
  Enabled: false
236
-
224
+
237
225
  RSpec/IndexedLet:
238
226
  Enabled: false
239
227
 
@@ -273,6 +261,24 @@ RSpec/ScatteredLet:
273
261
  RSpec/ScatteredSetup:
274
262
  Enabled: false
275
263
 
264
+ Rails:
265
+ Enabled: true
266
+
267
+ Rails/ApplicationRecord:
268
+ Enabled: false
269
+
270
+ Rails/Delegate:
271
+ Enabled: false
272
+
273
+ Rails/FindEach:
274
+ Enabled: false
275
+
276
+ Rails/HttpPositionalArguments:
277
+ Enabled: true
278
+
279
+ Rails/OutputSafety:
280
+ Enabled: true
281
+
276
282
  Style/AccessModifierDeclarations:
277
283
  Enabled: false
278
284
 
@@ -299,20 +305,24 @@ Style/Lambda:
299
305
 
300
306
  Style/LambdaCall:
301
307
  Exclude:
302
- - 'app/views/**/*.jbuilder'
308
+ - app/views/**/*.jbuilder
303
309
 
304
310
  Style/MissingElse:
305
311
  Enabled: true
306
312
  EnforcedStyle: case
307
313
 
314
+ Style/NumberedParameters:
315
+ Enabled: true
316
+ EnforcedStyle: disallow
317
+
308
318
  Style/PercentLiteralDelimiters:
309
319
  PreferredDelimiters:
310
- default: '()'
311
- '%i': '()'
312
- '%I': '()'
320
+ '%I': ()
321
+ '%W': ()
322
+ '%i': ()
313
323
  '%r': '{}'
314
- '%w': '()'
315
- '%W': '()'
324
+ '%w': ()
325
+ default: ()
316
326
 
317
327
  Style/SafeNavigation:
318
328
  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.7
4
+ version: 1.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Development
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-31 00:00:00.000000000 Z
11
+ date: 2023-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '2.22'
75
+ version: '2.24'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '2.22'
82
+ version: '2.24'
83
83
  description: Betterment rubocop configuration
84
84
  email:
85
85
  - development@betterment.com
@@ -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.3.7
132
+ rubygems_version: 3.2.32
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: Betterment rubocop configuration