-
Notifications
You must be signed in to change notification settings - Fork 0
/
betterment.yml
53 lines (48 loc) · 1.38 KB
/
betterment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# from: https://github.com/Betterment/betterlint/blob/main/config/default.yml
require:
- rubocop/cop/betterment.rb
Betterment:
StyleGuideBaseURL: https://github.com/Betterment/betterlint
Betterment/ServerErrorAssertion:
Description: 'Detects assertions on 5XX HTTP statuses.'
Include:
- 'spec/requests/**/*_spec.rb'
Betterment/AuthorizationInController:
Description: 'Detects unsafe handling of id-like parameters in controllers.'
StyleGuide: '#bettermentauthorizationincontroller'
Enabled: true
# Betterment/UnsafeJob:
# Enabled: true
# StyleGuide: '#bettermentunsafejob'
# sensitive_params:
# - password
# - social_security_number
# - ssn
Betterment/UnscopedFind:
StyleGuide: '#bettermentunscopedfind'
Betterment/DynamicParams:
StyleGuide: '#bettermentdynamicparams'
# Betterment/SitePrismLoaded:
# Include:
# - 'spec/features/**/*_spec.rb'
# - 'spec/system/**/*_spec.rb'
Betterment/NonStandardActions:
Description: 'Detects non-standard controller actions.'
StyleGuide: '#bettermentnonstandardactions'
AdditionalAllowedActions: []
Enabled: false
StandardActions:
- index
- show
- new
- edit
- create
- update
- destroy
Include:
- 'config/routes.rb'
# Betterment/HardcodedID:
# Description: 'Detects hardcoded IDs in specs'
# StyleGuide: '#bettermenthardcodedid'
# AutoCorrect: false
# SafeAutoCorrect: false