-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
123 lines (99 loc) · 2.61 KB
/
.rubocop.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
require:
- rubocop-capybara
- rubocop-performance
- rubocop-rails
- rubocop-rspec
- rubocop-rspec_rails
- rubocop-factory_bot
inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 3.2
Exclude:
- bin/*
- vendor/bundle/**/*
- node_modules/**/*
NewCops: enable
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/HashAlignment:
Exclude:
- 'config/application.rb'
- 'config/environments/test.rb'
Layout/LineLength:
Max: 120
Exclude:
- 'spec/controllers/feedback_forms_controller_spec.rb'
- 'app/controllers/feedback_forms_controller.rb'
Metrics/AbcSize:
Exclude:
- 'app/controllers/contact_forms_controller.rb'
- 'app/controllers/feedback_forms_controller.rb'
- 'app/controllers/renewals_controller.rb'
- 'app/controllers/requests_controller.rb'
Metrics/CyclomaticComplexity:
Exclude:
- 'app/controllers/feedback_forms_controller.rb'
Metrics/BlockLength:
Exclude:
- 'app/views/**/*.json.jbuilder'
- 'config/environments/*.rb'
- 'config/routes.rb'
- 'spec/**/*'
Metrics/ClassLength:
Exclude:
- 'app/models/symphony/checkout.rb'
- 'app/models/symphony/patron.rb'
- 'app/models/symphony/payment.rb'
- 'app/models/symphony/request.rb'
- 'app/services/symphony_client.rb'
- 'app/models/folio/checkout.rb'
- 'app/models/folio/patron.rb'
- 'app/models/folio/payment.rb'
- 'app/models/folio/request.rb'
- 'app/services/folio_client.rb'
- 'app/services/folio_graphql_client.rb'
- 'config/application.rb'
Metrics/ModuleLength:
Exclude:
- 'app/helpers/summaries_helper.rb'
Metrics/MethodLength:
Exclude:
- 'app/controllers/contact_forms_controller.rb'
- 'app/controllers/feedback_forms_controller.rb'
- 'app/mailers/feedback_mailer.rb'
- 'app/services/folio_graphql_client.rb'
Metrics/PerceivedComplexity:
Exclude:
- 'app/controllers/feedback_forms_controller.rb'
Rails/ActionControllerFlashBeforeRender:
Enabled: false
Rails/DynamicFindBy:
Enabled: false
RSpec/ExampleLength:
Exclude:
- 'spec/features/**/*'
- 'spec/controllers/**/*'
RSpec/MultipleExpectations:
Max: 4
Exclude:
- 'spec/features/**/*'
RSpec/NestedGroups:
Max: 4
RSpec/DescribeClass:
Exclude:
- 'spec/views/**/*'
- 'spec/features/**/*'
RSpec/VerifiedDoubleReference:
Enabled: false
RSpec/MultipleMemoizedHelpers:
Max: 15
Style/Documentation:
Enabled: false
Style/WordArray:
Exclude:
- 'config/application.rb'
- 'config/environments/test.rb'
FactoryBot/ConsistentParenthesesStyle:
Enabled: true
FactoryBot/SyntaxMethods:
Enabled: true