forked from troessner/reek
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
61 lines (48 loc) · 1.33 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
AllCops:
Exclude:
- 'spec/samples/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
# FIXME: Make the class shorter
Metrics/ClassLength:
Exclude:
- lib/reek/tree_walker.rb
- lib/reek/cli/options.rb
# FIXME: Lower the method length by fixing the biggest offenders
Metrics/MethodLength:
Max: 15
# Be rather lenient with line length
Metrics/LineLength:
Max: 120
# Keyword arguments make long parameter lists readable
Metrics/ParameterLists:
CountKeywordArgs: false
# Indent one level for follow-up lines
Style/MultilineOperationIndentation:
EnforcedStyle: indented
# Allow small arrays of words with quotes
Style/WordArray:
MinSize: 3
# Allow single-line method definitions
Style/SingleLineMethods:
Enabled: false
# Always use raise to signal exceptions
Style/SignalException:
EnforcedStyle: only_raise
# Place . on the previous line
Style/DotPosition:
EnforcedStyle: trailing
# Require empty lines between defs, except for one-line defs
Style/EmptyLineBetweenDefs:
AllowAdjacentOneLineDefs: true
# Allow multiline block chains
Style/MultilineBlockChain:
Enabled: false
# Allow Perl-style references to regex matches
Style/PerlBackrefs:
Enabled: false
Style/Documentation:
Exclude:
- 'lib/reek/ast/sexp_extensions/send.rb'
- 'lib/reek/ast/sexp_extensions/super.rb'
- 'lib/reek/ast/sexp_extensions/variables.rb'