-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
92 lines (74 loc) · 1.48 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
require:
# - rubocop-rspec
- rubocop-rails
# - rubocop-performance
AllCops:
NewCops: enable
TargetRubyVersion: 3.2
Exclude:
- "bin/*"
- "script/**/*"
- "log/**/*"
- "public/**/*"
- "tmp/**/*"
- "db/schema.rb"
- "db/migrate/*"
- "vendor/**/*"
- "lib/**/*"
- "node_modules/**/*"
- "db/seeders/*"
- ".git/**/*"
Rails:
Enabled: true
Layout/LineLength:
Max: 120
Metrics/ClassLength:
Max: 150
Metrics/MethodLength:
Exclude:
- "db/migrate/*"
- "app/models/ability.rb"
Style/MixinUsage:
Exclude:
- "spec/**/*"
Metrics/BlockLength:
Exclude:
- "spec/**/*"
- "config/routes.rb"
- "config/environments/*"
- "config/initializers/*"
- "app/models/ability.rb"
Metrics/AbcSize:
Max: 20
Exclude:
- "db/migrate/*"
- "spec/**/*"
Style/Documentation:
Enabled: false
Naming/VariableNumber:
Enabled: false
Naming/MethodParameterName:
AllowedNames:
- "to"
- "at"
- "as"
Rails/EnvironmentVariableAccess:
AllowReads: true
Style/GlobalVars:
Exclude:
- "app/services/cache_store_config_service.rb"
- "config/initializers/redis.rb"
- "config/initializers/sidekiq.rb"
Style/SymbolProc:
Enabled: false
Style/SafeNavigationChainLength:
Max: 3
# TODO: bug with false positives
Lint/UnusedMethodArgument:
Enabled: false
# TODO: bug with false positives
Style/RedundantDoubleSplatHashBraces:
Enabled: false
# TODO: bug
Rails/UniqueValidationWithoutIndex:
Enabled: false