-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
44 lines (37 loc) · 1.17 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
AllCops:
NewCops: enable
TargetRubyVersion: 3.2
Exclude:
- "db/**/*"
- "tmp/**/*"
- "log/**/*"
- "vendor/**/*"
- "node_modules/**/*"
# Rails specific
require:
- rubocop-rails
- rubocop-rspec
# Rails/OutputSafety:
# Enabled: false # This disallows .html_safe
# Rails/TimeZone:
# Enabled: false # This enforces Time.zone.now
# Rails/Date:
# Enabled: false # This enforces Time.zone.today
# Rails/HasAndBelongsToMany:
# Enabled: false # This disallows HABTM.
# Rails/I18nLocaleTexts:
# Enabled: false # This should be enabled when #933 is merged.
# Project styling
Style: # Style is not Rubocop's responsibility. Use an auto-formatter like prettier.
Enabled: false
Layout: # Layout is not Rubocop's responsibility. Use an auto-formatter like prettier.
Enabled: false
Metrics: # Rubocop metrics are useless.
Enabled: false
Naming/VariableNumber:
Enabled: false
Lint/ShadowingOuterLocalVariable: # shadowing is a language feature - we should use it where appropriate.
Enabled: false
# Concessions (remove these if possible / appropriate).
# Bundler/OrderedGems:
# Enabled: false # we have a ton of gems, grouped arbitrarily. Could be tackled later.