-
Notifications
You must be signed in to change notification settings - Fork 1
/
rubocop.yml
44 lines (43 loc) · 1.14 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
AllCops:
Include:
- ./Rakefile
Exclude:
- bin/**/*
- db/**/*
- config/**/*
- vendor/**/*
- node_modules/**/*
Documentation:
# Only document difficult algorithms. The code should readable
# enough to not require extensive docs, unless there is an
# exposed object API.
Enabled: false
Style/GlobalVars:
# Redis is the special animal in our apps.
AllowedVariables: ['$redis']
Metrics/AbcSize:
# Locking methods to specific complexity levels causes explosions
# of smaller, useless methods for no real reason.
Enabled: false
Metrics/MethodLength:
# Similarly, methods should be as long as they need to be.
Enabled: false
Metrics/ModuleLength:
# Same with modules.
Enabled: false
Metrics/ClassLength:
# Same with classes.
Enabled: false
Style/NumericLiterals:
# 10_000_000 vs. 10000000 was never a problem for us.
Enabled: false
Style/WordArray:
# Sometimes ['word', 'array'] is more readable for us than %w(word array).
Enabled: false
Metrics/LineLength:
# 80 character lines across all projects.
Max: 80
Style/RaiseArgs:
EnforcedStyle: compact
Style/SignalException:
EnforcedStyle: only_fail