This repository has been archived by the owner on Jun 30, 2021. It is now read-only.
/
.rubocop.yml
169 lines (141 loc) · 3.93 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
require: rubocop-rspec
AllCops:
Exclude:
- '.internal_test_app/**/*'
- 'bin/**/*'
- 'db/**/*'
- 'lib/generators/warclight/templates/**/*'
- 'vendor/**/*'
TargetRubyVersion: 2.4
DisplayCopNames: true
Layout/AlignArray:
Exclude:
- app/controllers/collections_controller.rb
- app/jobs/wasapi_seed_job.rb
Metrics/AbcSize:
Exclude:
- app/controllers/collections_controller.rb
- app/helpers/collections_helper.rb
- app/helpers/dashboards_helper.rb
- app/helpers/wasapi_files_helper.rb
- app/jobs/cleanup_job.rb
- app/jobs/graphpass_job.rb
- app/jobs/spark_job.rb
- app/jobs/textfilter_job.rb
- app/jobs/wasapi_download_job.rb
- app/jobs/wasapi_seed_job.rb
- app/mailers/user_mailer.rb
Metrics/BlockLength:
Exclude:
- app/jobs/spark_job.rb
- app/jobs/textfilter_job.rb
- app/jobs/wasapi_download_job.rb
- app/jobs/wasapi_seed_job.rb
- config/environments/development.rb
- config/environments/production.rb
- config/environments/test.rb
- config/routes.rb
Metrics/ClassLength:
Exclude:
- app/controllers/collections_controller.rb
- app/controllers/dashboards_controller.rb
- app/jobs/spark_job.rb
- app/jobs/wasapi_seed_job.rb
Metrics/CyclomaticComplexity:
Exclude:
- app/helpers/wasapi_files_helper.rb
Metrics/LineLength:
Exclude:
- app/helpers/users_helper.rb
- app/jobs/cleanup_job.rb
- app/jobs/graphpass_job.rb
- app/jobs/spark_job.rb
- app/jobs/textfilter_job.rb
- app/jobs/wasapi_download_job.rb
- app/jobs/wasapi_seed_job.rb
- app/mailers/user_mailer.rb
- test/helpers/collections_helper_test.rb
- test/controllers/dashboards_controller_test.rb
- test/controllers/pages_controller_test.rb
- test/helpers/auth_helper.rb
- test/helpers/users_helper_test.rb
Metrics/MethodLength:
Exclude:
- app/controllers/collections_controller.rb
- app/controllers/dashboards_controller.rb
- app/helpers/collections_helper.rb
- app/helpers/dashboards_helper.rb
- app/helpers/wasapi_files_helper.rb
- app/jobs/cleanup_job.rb
- app/jobs/graphpass_job.rb
- app/jobs/spark_job.rb
- app/jobs/textfilter_job.rb
- app/jobs/wasapi_download_job.rb
- app/jobs/wasapi_seed_job.rb
Metrics/ModuleLength:
Exclude:
- app/helpers/dashboards_helper.rb
Metrics/PerceivedComplexity:
Exclude:
- app/helpers/wasapi_files_helper.rb
Naming/AccessorMethodName:
Exclude:
- app/helpers/dashboards_helper.rb
Naming/PredicateName:
Exclude:
- test/test_helper.rb
Rails:
Enabled: true
RSpec/NestedGroups:
Max: 4
Rails/FilePath:
Exclude:
- config/environments/development.rb
Rails/HasManyOrHasOneDependent:
Exclude:
- app/models/collection.rb
- app/models/user.rb
Rails/HttpPositionalArguments:
Exclude:
- test/controllers/dashboards_controller_test.rb
Security/Open:
Exclude:
- app/jobs/wasapi_download_job.rb
Style/BlockDelimiters:
Exclude:
- app/controllers/dashboards_controller.rb
- app/helpers/dashboards_helper.rb
Style/ClassAndModuleChildren:
Exclude:
- test/test_helper.rb
Style/GuardClause:
Exclude:
- app/helpers/collections_helper.rb
- app/helpers/wasapi_files_helper.rb
- app/jobs/spark_job.rb
- app/jobs/wasapi_seed_job.rb
- app/models/concerns/ai_wasapi_validator.rb
Style/IfUnlessModifier:
Exclude:
- app/controllers/sessions_controller.rb
- app/helpers/wasapi_files_helper.rb
Style/NegatedIf:
Exclude:
- app/jobs/wasapi_download_job.rb
Style/Next:
Exclude:
- app/jobs/textfilter_job.rb
- app/jobs/wasapi_download_job.rb
- app/jobs/wasapi_seed_job.rb
Style/PercentLiteralDelimiters:
Exclude:
- config/spring.rb
Style/RedundantSelf:
Exclude:
- config/initializers/delayed_job_config.rb
Style/RescueStandardError:
Exclude:
- app/jobs/wasapi_download_job.rb
Style/StringLiterals:
Exclude:
- test/controllers/dashboards_controller_test.rb