-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
61 lines (46 loc) · 966 Bytes
/
.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
inherit_from: .rubocop_todo.yml
require:
- standard
- rubocop-rails
inherit_gem:
standard: config/base.yml
AllCops:
TargetRubyVersion: 3.2
NewCops: enable
Exclude:
- 'vendor/**/*'
- 'db/schema.rb'
- 'tmp/**/*'
- 'bin/**/*'
- 'config/initializers/new_framework_defaults_*'
Rails/UnknownEnv:
Environments:
- production
- staging
- development
- test
- e2e
Rails/EagerEvaluationLogMessage:
Enabled: false
Severity: warning
Rails/SquishedSQLHeredocs:
Enabled: false
Rails/RedundantTravelBack:
Enabled: false
Rails/RootPathnameMethods:
Enabled: false
Rails/FilePath:
Enabled: false
Rails/LexicallyScopedActionFilter:
Enabled: true
Exclude:
- 'app/controllers/v1/**/*'
Rails/SkipsModelValidations:
Enabled: false
Rails/HasManyOrHasOneDependent:
Enabled: false
Rails/HasAndBelongsToMany:
Enabled: false
# have a mixed feeling about this style
Rails/WhereRange:
Enabled: false