-
Notifications
You must be signed in to change notification settings - Fork 3
/
.rubocop.yml
45 lines (39 loc) · 902 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
require:
- rubocop-factory_bot
- rubocop-performance
- rubocop-rails
- rubocop-rake
- rubocop-rspec_rails
- rubocop-rspec
inherit_gem:
rubocop-config-oharagroup:
- default.yml
- factory_bot.yml
- performance.yml
- rails.yml
- rake.yml
- rspec_rails.yml
- rspec.yml
AllCops:
Exclude:
- "bin/*"
- "config/**/*"
- "db/migrate/*"
- "db/schema.rb"
- "node_modules/**/*"
- "vendor/**/*"
# Can't fully qualify a private_constant
Lint/ConstantResolution:
Ignore:
- Frequency
- FREQUENCIES
- NUM_RESULTS
# Allow reading of ENV vars for authentication
Rails/EnvironmentVariableAccess:
AllowReads: true
# Can't use :inverse_of due to self-referential and polymorphic associations
Rails/InverseOf:
Enabled: false
# Needed for update_all and update_column used in a few places
Rails/SkipsModelValidations:
Enabled: false