forked from pupilfirst/pupilfirst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
56 lines (48 loc) · 1.42 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
AllCops:
NewCops: enable
TargetRubyVersion: 3.2
Exclude:
- "db/**/*"
- "tmp/**/*"
- "log/**/*"
- "node_modules/**/*"
- "vendor/**/*"
- bin/**/*
# Rails specific
require:
- rubocop-rails
- rubocop-performance
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
Rails/FindEach:
Enabled: false # Blanket find_each isn't a good idea
Rails/RakeEnvironment:
Enabled: false # There is no need for all rake tasks to load the environment
Rails/UnknownEnv:
Environments:
- development
- test
- production
- local
# Project styling
Style: # Style is not Rubocop's responsibility. Use an auto-formatter like rufo.
Enabled: false
Layout: # Layout is not Rubocop's responsibility. Use an auto-formatter like rufo.
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.