-
Notifications
You must be signed in to change notification settings - Fork 5
/
.rubocop.yml
162 lines (137 loc) · 3.78 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
require:
- rubocop-rails
- rubocop-rspec
- rubocop-rspec_rails
- rubocop-faker
- rubocop-capybara
- rubocop-factory_bot
inherit_mode:
merge:
- Exclude
Rails:
Enabled: true
AllCops:
TargetRubyVersion: 3.2
NewCops: enable
Exclude:
# Fully autogenerated config files:
- bin/*
# Other autogenerated files
- db/schema.rb
# Old migrations
- db/migrate/201*.rb
Layout/LineLength:
Max: 125
Layout/SpaceInsideArrayLiteralBrackets:
Exclude:
# Fully and mostly autogenerated config files:
- config/environments/*.rb
Layout/MultilineMethodCallIndentation:
Exclude:
# Fully and mostly autogenerated config files:
- config/environments/*.rb
Metrics/BlockLength:
Exclude:
# DSL files:
- config/environments/*.rb
- config/routes.rb
- spec/**/*_spec.rb
- spec/factories.rb
Metrics/MethodLength:
CountAsOne: ['array', 'hash', 'heredoc', 'method_call']
Exclude:
- db/**/*.rb
# Files where the methods are basically html templates:
- app/helpers/listings_helper.rb
- app/helpers/map_listings_helper.rb
Metrics/ModuleLength:
Exclude:
# Files where the methods are basically html templates:
- app/helpers/listings_helper.rb
Style/Documentation:
Exclude:
- app/controllers/**/*.rb
- app/helpers/**/*.rb
- app/models/**/*.rb
- app/validators/**/*.rb
- config/application.rb
- db/migrate/**/*.rb
Style/FrozenStringLiteralComment:
Exclude:
# Fully and mostly autogenerated config files:
- config/environments/*.rb
- config/spring.rb
- config/puma.rb
- config/environment.rb
- config/application.rb
- config/boot.rb
- config/initializers/application_controller_renderer.rb
- config/initializers/backtrace_silencers.rb
- config/initializers/cors.rb
- config/initializers/mime_types.rb
- config/initializers/new_framework_defaults*.rb
- config/initializers/filter_parameter_logging.rb
- config/initializers/session_store.rb
- config/initializers/wrap_parameters.rb
- config/initializers/assets.rb
- config/initializers/cookies_serializer.rb
- config/initializers/content_security_policy.rb
- config/initializers/inflections.rb
- config/initializers/permissions_policy.rb
- config.ru
Style/NumericLiterals:
Exclude:
- lib/omniauth_test_response_builder.rb
# Files where this picks up a lot of false positives
- spec/**/*_spec.rb
- spec/support/**/*.rb
Style/StringLiterals:
EnforcedStyle: double_quotes
Exclude:
# Fully and mostly autogenerated config files
- config/environments/*.rb
- config/environment.rb
- config/application.rb
- config/puma.rb
- config/boot.rb
- config/initializers/backtrace_silencers.rb
- config.ru
Style/PercentLiteralDelimiters:
Exclude:
# Fully and mostly autogenerated config files:
- config/spring.rb
- config/application.rb
Style/RedundantConstantBase:
Exclude:
# Fully and mostly autogenerated config files:
- config/environments/*.rb
Style/RedundantFetchBlock:
Exclude:
# Fully and mostly autogenerated config files:
- config/puma.rb
Style/SymbolArray:
Exclude:
# Fully and mostly autogenerated config files:
- config/initializers/filter_parameter_logging.rb
Rails/Delegate:
Enabled: false
Rails/FilePath:
Exclude:
# Fully and mostly autogenerated config files:
- config/environments/*.rb
RSpec/DescribeClass:
Exclude:
- spec/system/**/*_spec.rb
RSpec/ExampleLength:
Max: 10
CountAsOne: ['array', 'hash', 'heredoc', 'method_call']
Exclude:
- spec/system/**/*_spec.rb
- spec/**/*integration_spec.rb
RSpec/MultipleExpectations:
Exclude:
- spec/system/**/*_spec.rb
RSpec/StringAsInstanceDoubleConstant:
Enabled: false
RSpec/VerifiedDoubleReference:
Enabled: false