-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
75 lines (63 loc) · 1.89 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
AllCops:
NewCops: enable
Exclude:
# These aren't made or maintained by us, so we don't care about their code quality
- 'bin/**/*'
- 'coverage/**/*'
- 'lib/**/*'
- 'log/**/*'
- 'node_modules/**/*'
- 'db/schema.rb'
- 'public/**/*' # we could put our own code in here but we don't; everything here is a default or auto-generated
- 'storage/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
- 'Gemfile.lock'
- 'yarn.lock'
Metrics/BlockLength:
# Required for Rails config
Enabled: false
Layout/LineLength:
# Should not be checked for high entropy strings (they aren't supposed to be readable anyway)
# Devise requires a few of those
Enabled: false
Exclude:
- 'config/initializers/devise.rb'
# Differences due to development on Mac/Windows
Layout/EndOfLine:
Enabled: False
Metrics/PerceivedComplexity:
Enabled: False
Metrics/CyclomaticComplexity:
Enabled: False
# File formatted by Ruby Convention - fix suggested seems outdated
Metrics/AbcSize:
Enabled: False
# Delivers false positives - unresolved issue on GitHub
Lint/UselessAssignment:
Enabled: False
Lint/ShadowingOuterLocalVariable:
# Necessary in this gem-specific file because other constructs didn't work
Exclude:
- 'config/initializers/rails_admin.rb'
# Not something potentially dangerous and all the lines are only business logic
Metrics/MethodLength:
Enabled: False
# Not important but it is auto-correctable, so eh
#Style/FrozenStringLiteralComment:
# Enabled: false
Style/BlockComments:
# Pointless
Enabled: false
Style/Documentation:
# Models/controllers/helpers are self-explanatory/idiomatic in Rails
Exclude:
- 'db/**/*'
- 'app/models/**/*'
- 'app/controllers/**/*'
- 'app/helpers/**/*'
- 'config/application.rb'
Style/ClassAndModuleChildren:
# This is only used for very specific omniauth constructs
Exclude:
- 'app/controllers/users/**/*'