-
Notifications
You must be signed in to change notification settings - Fork 90
/
.rubocop.yml
66 lines (55 loc) · 1.44 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
inherit_from: .rubocop_todo.yml
AllCops:
Exclude:
- 'bin/*'
- '.gems/**/*'
- 'vendor/**/*'
SuggestExtensions: false
NewCops: enable
Layout/HashAlignment:
EnforcedHashRocketStyle: table
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
Style/BlockDelimiters:
AllowedMethods: expect
Metrics/BlockLength:
Exclude:
- 'spec/**/*_spec.rb'
Style/Documentation:
Exclude:
- spec/**/*
- features/**/*
Style/HashSyntax:
EnforcedStyle: hash_rockets
Style/MethodDefParentheses:
EnforcedStyle: require_no_parentheses
Style/SymbolArray:
EnforcedStyle: brackets
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: consistent_comma
Style/Encoding:
Enabled: false
Style/ExpandPathArguments:
Enabled: false
Style/NumericPredicate:
Enabled: false
Style/SafeNavigation:
Enabled: false
Naming/FileName:
Enabled: false
Naming/PredicateName:
Enabled: false
Gemspec/RubyVersionGlobalsUsage: # maybe later
Enabled: false
Gemspec/OrderedDependencies: # nonsense
Enabled: false
Gemspec/RequiredRubyVersion: # rubocop errors when specifying TargetRubyVersion as 1.8.7
Enabled: false
Layout/HeredocIndentation:
Enabled: false
Lint/AmbiguousRegexpLiteral: # not a big deal
Enabled: false
Lint/AssignmentInCondition: # "I know I'm using an assignment as a condition. It's not a mistake."
Enabled: false
Naming/BlockForwarding: # need to check is this available for older ruby versions
Enabled: false