forked from 18F/identity-idp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.reek
180 lines (180 loc) · 5 KB
/
.reek
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
Attribute:
enabled: false
ControlParameter:
exclude:
- CustomDeviseFailureApp#i18n_message
- OpenidConnectRedirector#initialize
- NoRetryJobs#call
DuplicateMethodCall:
exclude:
- ApplicationController#disable_caching
- IdvFailureConcern#render_failure
- ServiceProviderSessionDecorator#registration_heading
- MfaConfirmationController#handle_invalid_password
- needs_to_confirm_email_change?
- WorkerHealthChecker#status
- FileEncryptor#encrypt
- UserFlowExporter#self.massage_assets
- BasicAuthUrl#build
- fallback_to_english
FeatureEnvy:
exclude:
- ActiveJob::Logging::LogSubscriber#json_for
- Aws::SES::Base#deliver
- CustomDeviseFailureApp#build_options
- CustomDeviseFailureApp#keys
- track_registration
- append_info_to_payload
- generate_slo_request
- reauthn?
- mark_profile_inactive
- EncryptedSidekiqRedis#zrem
- UserDecorator#should_acknowledge_personal_key?
- Pii::Attributes#[]=
- OpenidConnectLogoutForm#load_identity
- Idv::ProfileMaker#pii_from_applicant
- Idv::Step#vendor_validator_result
- IdvSession#vendor_result_timed_out?
- ServiceProviderSeeder#run
- OtpDeliverySelectionForm#unsupported_phone?
- fallback_to_english
- UserEncryptedAttributeOverrides#find_with_email
- Utf8Sanitizer#event_attributes
- Utf8Sanitizer#remote_ip
InstanceVariableAssumption:
exclude:
- User
IrresponsibleModule:
enabled: false
ManualDispatch:
exclude:
- EncryptedSidekiqRedis#respond_to_missing?
NestedIterators:
exclude:
- FileEncryptor#encrypt
- UserFlowExporter#self.massage_html
- TwilioService#sanitize_phone_number
- ServiceProviderSeeder#run
NilCheck:
enabled: false
LongParameterList:
exclude:
- IdentityLinker#optional_attributes
- Idv::ProoferJob#perform
- Idv::VendorResult#initialize
RepeatedConditional:
exclude:
- Users::ResetPasswordsController
- VerifyController
- Verify::Base
- Rack::Attack
TooManyConstants:
exclude:
- Analytics
TooManyInstanceVariables:
exclude:
- OpenidConnectAuthorizeForm
- OpenidConnectRedirector
- Idv::VendorResult
TooManyStatements:
max_statements: 6
exclude:
- IdvFailureConcern#render_failure
- OpenidConnect::AuthorizationController#index
- OpenidConnect::AuthorizationController#store_request
- SamlIdpAuthConcern#store_saml_request
- Users::PhoneConfirmationController
- FileEncryptor#encrypt
- UserFlowExporter#self.massage_assets
- UserFlowExporter#self.massage_html
- UserFlowExporter#self.run
TooManyMethods:
exclude:
- Users::ConfirmationsController
- ApplicationController
- OpenidConnectAuthorizeForm
- OpenidConnect::AuthorizationController
- Idv::Session
- User
- Verify::SessionsController
- ServiceProviderSessionDecorator
- SessionDecorator
UncommunicativeMethodName:
exclude:
- PhoneConfirmationFlow
- render_401
- SessionDecorator#registration_bullet_1
- ServiceProviderSessionDecorator#registration_bullet_1
UnusedPrivateMethod:
exclude:
- ApplicationController
- ActiveJob::Logging::LogSubscriber
- SamlIdpController
- Users::PhoneConfirmationController
- ssn_is_unique
UtilityFunction:
public_methods_only: true
exclude:
- AnalyticsEventJob#perform
- ApplicationController#default_url_options
- ApplicationHelper#step_class
- NullTwilioClient#http_client
- PersonalKeyFormatter#regexp
- SessionTimeoutWarningHelper#frequency
- SessionTimeoutWarningHelper#start
- SessionTimeoutWarningHelper#warning
- SessionDecorator
- WorkerHealthChecker::Middleware#call
- UserEncryptedAttributeOverrides#create_fingerprint
- LocaleHelper#locale_url_param
- IdvSession#timed_out_vendor_error
'app/controllers':
InstanceVariableAssumption:
enabled: false
'spec':
BooleanParameter:
exclude:
- SamlAuthHelper#generate_saml_response
ControlParameter:
exclude:
- complete_idv_session
- SamlAuthHelper#link_user_to_identity
- visit_idp_from_sp_with_loa1
- visit_idp_from_sp_with_loa3
DuplicateMethodCall:
enabled: false
FeatureEnvy:
enabled: false
NestedIterators:
exclude:
- complete_idv_questions_fail
- complete_idv_questions_ok
- create_sidekiq_queues
NilCheck:
exclude:
- complete_idv_questions_fail
- complete_idv_questions_ok
TooManyInstanceVariables:
enabled: false
TooManyMethods:
enabled: false
TooManyStatements:
enabled: false
UncommunicativeMethodName:
exclude:
- visit_idp_from_sp_with_loa1
- visit_idp_from_sp_with_loa3
- visit_idp_from_mobile_app_with_loa1
- visit_idp_from_oidc_sp_with_loa1
- visit_idp_from_oidc_sp_with_loa3
UncommunicativeParameterName:
exclude:
- begin_sign_up_with_sp_and_loa
UncommunicativeVariableName:
exclude:
- complete_idv_questions_fail
- complete_idv_questions_ok
UtilityFunction:
enabled: false
exclude_paths:
- db/migrate