-
Notifications
You must be signed in to change notification settings - Fork 4
/
.rubocop.yml
178 lines (143 loc) · 4.04 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
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
require:
- rubocop-rails
- rubocop-performance
- rubocop-rspec
- rubocop-graphql
- rubocop-rspec_rails
AllCops:
TargetRubyVersion: 3.0
Exclude:
# You could specify set of files or dirs while you want to be ignored by rubocop
- 'vendor/**/*'
- 'bin/*'
- 'db/schema.rb'
- 'Gemfile.lock'
- !ruby/regexp /old_and_unused\.rb$/
- 'app/helpers/**/*'
- 'config/environments/**/*'
- 'app/jobs/**/*'
- 'tmp/**/*'
NewCops: enable
GraphQL/FieldDescription:
Enabled: false
GraphQL/ArgumentDescription:
Enabled: false
GraphQL/ObjectDescription:
Enabled: false
GraphQL/ExtractType:
Enabled: false
GraphQL/ExtractInputType:
Enabled: false
GraphQL/FieldMethod:
Enabled: false
# This is currently exiting with a rubocop exception error and should be
# resolved hopefully a future update
# "An error occurred while Rails/UniqueValidationWithoutIndex cop was inspecting"
# To see the complete backtrace run rubocop -d.
Rails/UniqueValidationWithoutIndex:
Enabled: false
Rails/I18nLocaleTexts:
Enabled: false
Layout/LineLength:
Enabled: false
Style/Documentation:
Enabled: false
Style/AsciiComments:
Enabled: false
Metrics/MethodLength:
Exclude:
- 'app/routes/**/*'
- 'db/migrate/**/*'
- 'app/adapters/highchart/finances_charts_adapter.rb'
- 'app/services/slack/slack_notification_service.rb'
- 'app/models/flow/contracts_flow_information.rb'
- 'app/controllers/graphql_controller.rb'
- 'app/controllers/concerns/**/*'
Max: 15
Metrics/BlockLength:
Exclude:
- 'app/routes/**/*'
- 'db/migrate/**/*'
- 'spec/**/*'
- 'config/routes.rb'
- 'lib/tasks/auto_annotate_models.rake'
- 'lib/tasks/consolidate_flows.rake'
Metrics/ClassLength:
Exclude:
- 'app/adapters/highchart/finances_charts_adapter.rb'
- 'app/data_objects/replenishing_data.rb'
- 'app/repositories/demands_repository.rb'
- 'app/models/company.rb'
- 'app/models/project.rb'
- 'app/models/team.rb'
- 'app/models/consolidations/project_consolidation.rb'
- 'app/models/demand.rb'
- 'app/models/membership.rb'
- 'app/models/flow/work_item_flow_information.rb'
- 'app/models/flow/contracts_flow_information.rb'
- 'app/models/demand_transition.rb'
- 'app/controllers/projects_controller.rb'
- 'app/controllers/demands_controller.rb'
- 'app/controllers/companies_controller.rb'
- 'app/controllers/teams_controller.rb'
- 'app/controllers/team_members_controller.rb'
- 'app/controllers/users_controller.rb'
- 'app/controllers/demand_blocks_controller.rb'
- 'app/services/slack/slack_notification_service.rb'
- 'app/services/stats/statistics_service.rb'
- 'app/services/demand_effort_service.rb'
- 'app/graphql/types/**/*'
- 'app/adapters/**/*'
- 'app/readers/**/*'
Metrics/CyclomaticComplexity:
Exclude:
- 'app/controllers/base_report_controller.rb'
- 'app/controllers/demands_controller.rb'
- 'app/services/slack/slack_notification_service.rb'
- 'app/adapters/**/*'
Metrics/PerceivedComplexity:
Exclude:
- 'app/controllers/base_report_controller.rb'
- 'app/services/slack/slack_notification_service.rb'
Metrics/AbcSize:
Exclude:
- 'app/routes/**/*'
- 'db/migrate/**/*'
- 'app/controllers/home_controller.rb'
- 'app/services/slack/slack_notification_service.rb'
- 'app/data_objects/replenishing_data.rb'
Max: 21
Metrics/ParameterLists:
Enabled: false
Rails/NotNullColumn:
Enabled: false
Rails/Presence:
Enabled: false
RSpec/ContextWording:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/NestedGroups:
Enabled: false
RSpec/MessageSpies:
Enabled: false
RSpec/PendingWithoutReason:
Enabled: false
RSpec/ScatteredLet:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/LetSetup:
Enabled: false
RSpec/AnyInstance:
Enabled: false
RSpec/ScatteredSetup:
Enabled: false
RSpec/MultipleMemoizedHelpers:
Enabled: false
RSpec/IdenticalEqualityAssertion:
Enabled: false
RSpec/MatchArray:
Enabled: false
Naming/VariableNumber:
Enabled: false