-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrubocop.yml
78 lines (59 loc) · 1.32 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
76
77
78
# inherit_from: .rubocop_todo.yml
AllCops:
Exclude:
- 'vendor/**/*'
- 'spec/fixtures/**/*'
Style/FileName: # exclude these filenames without camel case
Exclude:
- 'Vagrantfile'
- 'Gemfile'
- 'Rakefile'
Style/SignalException:
EnforcedStyle: semantic
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: consistent_comma
Style/BracesAroundHashParameters:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/BlockDelimiters:
EnforcedStyle: semantic
FunctionalMethods:
- before
- after
- around
- let
- let!
- subject
- watch
- its
- trait
- sequence
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
Style/LineEndConcatenation:
Enabled: false
Style/NumericLiterals:
Enabled: false
Style/MethodDefParentheses:
EnforcedStyle: require_parentheses
Metrics/LineLength:
Severity: refactor
Style/Documentation:
Enabled: false
Style/SymbolArray:
Enabled: false
Style/WordArray:
Enabled: false
# We have deep modules so we don't want to waste the space.
Style/ClassAndModuleChildren:
Enabled: false
# Overwrite new defaults for rspec
# https://github.com/bbatsov/rubocop/issues/3664#issuecomment-275860483
#
Metrics/ModuleLength:
Exclude:
- "**/*_spec.rb"
Metrics/BlockLength:
Exclude:
- "**/*_spec.rb"