-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
48 lines (38 loc) · 957 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
require: rubocop-rspec
AllCops:
NewCops: enable
Include:
- lib/**/*.rb
- spec/**/*.rb
Exclude:
- docs/**/*
- factory_burgers-ui/**/*
- lib/assets/**/*
- test_apps/**/*
# wut
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
# Why would you enforce a single-letter variable name?
Naming/RescuedExceptionsVariableName:
PreferredName: err
# Sometimes a mutli-branch case statement is easier to read
Metrics/MethodLength:
Max: 16
# I hate this rule
Style/NegatedIf:
Enabled: false
# Trailing commas rule
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
# Trailing commas rule
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma
# This is just anonying.
Style/FrozenStringLiteralComment:
Enabled: false
# Explicit returns are good.
Style/RedundantReturn:
Enabled: false
# Changing string to add interpolation is annoying.
Style/StringLiterals:
Enabled: false