forked from 18F/identity-idp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.reek.yml
227 lines (226 loc) · 6.81 KB
/
.reek.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
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
detectors:
Attribute:
enabled: false
ControlParameter:
exclude:
- CustomDeviseFailureApp#i18n_message
- OpenidConnectRedirector#initialize
- NoRetryJobs#call
- PhoneFormatter#self.format
- Users::TwoFactorAuthenticationController#invalid_phone_number
DuplicateMethodCall:
exclude:
- ApplicationController#disable_caching
- IdvFailureConcern#render_failure
- ServiceProviderSessionDecorator#registration_heading
- MfaConfirmationController#handle_invalid_password
- needs_to_confirm_email_change?
- UserFlowExporter#self.massage_assets
- BasicAuthUrl#build
- fallback_to_english
- Upaya::RandomTools#self.random_weighted_sample
- SmsController#authenticate
FeatureEnvy:
exclude:
- ActiveJob::Logging::LogSubscriber#json_for
- Ahoy::Store#track_event
- Aws::SES::Base#deliver
- CustomDeviseFailureApp#build_options
- CustomDeviseFailureApp#keys
- track_registration
- append_info_to_payload
- generate_slo_request
- reauthn?
- mark_profile_inactive
- 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
- TwilioService::Utils#request_data
- UserEncryptedAttributeOverrides#find_with_email
- Utf8Sanitizer#event_attributes
- Utf8Sanitizer#remote_ip
- TwoFactorAuthenticationController#capture_analytics_for_exception
- UspsConfirmationExporter#make_entry_row
InstanceVariableAssumption:
exclude:
- User
- JWT
IrresponsibleModule:
enabled: false
ManualDispatch:
exclude:
- CloudhsmKeyGenerator#initialize_settings
NestedIterators:
exclude:
- UserFlowExporter#self.massage_html
- TwilioService::Utils#sanitize_phone_number
- ServiceProviderSeeder#run
- UspsConfirmationUploader#upload_export
NilCheck:
enabled: false
LongParameterList:
max_params: 4
exclude:
- IdentityLinker#optional_attributes
- Idv::ProoferJob#perform
- Idv::VendorResult#initialize
- JWT
- SmsOtpSenderJob#perform
RepeatedConditional:
exclude:
- Users::ResetPasswordsController
- IdvController
- Idv::Base
- Rack::Attack
- ServiceProviderSessionDecorator
TooManyConstants:
exclude:
- Analytics
TooManyInstanceVariables:
exclude:
- BaseFlow
- OpenidConnectAuthorizeForm
- OpenidConnectRedirector
- Idv::VendorResult
- CloudhsmKeyGenerator
- CloudhsmKeySharer
- UserMailer
- WebauthnSetupForm
- WebauthnVerificationForm
TooManyStatements:
max_statements: 6
exclude:
- IdvFailureConcern#render_failure
- OpenidConnect::AuthorizationController#index
- OpenidConnect::AuthorizationController#store_request
- SamlIdpAuthConcern#store_saml_request
- Users::PhoneConfirmationController
- UserFlowExporter#self.massage_assets
- UserFlowExporter#self.massage_html
- UserFlowExporter#self.run
- Idv::Agent#proof
- Idv::VendorResult#initialize
- SamlIdpController#auth
- TwilioService::Utils#sanitize_errors
- Upaya::QueueConfig#self.choose_queue_adapter
- Upaya::RandomTools#self.random_weighted_sample
- UserFlowFormatter#stop
- Upaya::QueueConfig#self.choose_queue_adapter
- Users::TwoFactorAuthenticationController#send_code
TooManyMethods:
exclude:
- Users::ConfirmationsController
- ApplicationController
- OpenidConnectAuthorizeForm
- OpenidConnectTokenForm
- OpenidConnect::AuthorizationController
- Idv::Session
- User
- Idv::SessionsController
- ServiceProviderSessionDecorator
- SessionDecorator
- HolidayService
- PhoneDeliveryPresenter
- CloudhsmKeyGenerator
- TwoFactorLoginOptionsPresenter
UncommunicativeMethodName:
exclude:
- Deploy::Activate#download_application_yml_from_s3
- Deploy::Activate#download_geocoding_database_from_s3
- PhoneConfirmationFlow
- render_401
- SessionDecorator#registration_bullet_1
- ServiceProviderSessionDecorator#registration_bullet_1
UncommunicativeModuleName:
exclude:
- X509
- X509::Attribute
- X509::Attributes
- X509::SessionStore
UnusedParameters:
exclude:
- SmsOtpSenderJob#perform
- VoiceOtpSenderJob#perform
UnusedPrivateMethod:
exclude:
- ApplicationController
- ActiveJob::Logging::LogSubscriber
- SamlIdpController
- Users::PhoneConfirmationController
- ssn_is_unique
UtilityFunction:
public_methods_only: true
exclude:
- AnalyticsEventJob#perform
- AnonymousUser#confirmed_at
- ApplicationController#default_url_options
- ApplicationHelper#step_class
- NullTwilioClient#http_client
- PersonalKeyFormatter#regexp
- SessionTimeoutWarningHelper#frequency
- SessionTimeoutWarningHelper#start
- SessionTimeoutWarningHelper#warning
- SessionDecorator
- SmsDocAuthLinkJob#perform
- UserEncryptedAttributeOverrides#create_fingerprint
- LocaleHelper#locale_url_param
- IdvSession#timed_out_vendor_error
- JWT::Signature#sign
- SmsAccountResetCancellationNotifierJob#perform
directories:
'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
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
- spec
- lib/tasks/