-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
89 lines (66 loc) · 1.93 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
79
80
81
82
83
84
85
86
87
88
89
AllCops:
TargetRubyVersion: 2.3
Gemspec/RequiredRubyVersion:
Enabled: false
Layout/ParameterAlignment:
EnforcedStyle: with_fixed_indentation
Layout/CaseIndentation:
EnforcedStyle: end
Layout/ClosingHeredocIndentation:
Enabled: false
# A method chain with a trailing dot is able to be copy-and-pasted into a
# console
Layout/DotPosition:
EnforcedStyle: trailing
Layout/EmptyLinesAroundAccessModifier:
Enabled: false
# This cop has a bug in 0.52.0
# https://github.com/bbatsov/rubocop/issues/5224
Layout/EmptyLinesAroundArguments:
Enabled: false
Layout/HeredocIndentation:
Enabled: false
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
Layout/EndAlignment:
EnforcedStyleAlignWith: variable
Metrics/AbcSize:
Exclude:
- lib/bunup/options.rb
# Compared to metrics like `AbcSize` or `CyclomaticComplexity`, the number of
# lines in a method is not a useful metric. It's common to have very long
# methods (> 50 lines) which are quite simple. For example, a method that
# returns a long string with only a few interpolations.
Metrics/MethodLength:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
# Too subtle to lint. Recommend semantic style, but avoid `end.x`.
Style/BlockDelimiters:
Enabled: false
# Adding annotations to short format strings would make them less readable.
Style/FormatStringToken:
Enabled: false
# Too complicated for a linter. Should be up to the developer at implementation
# time.
Style/GuardClause:
Enabled: false
# New cop opt-in
Style/HashEachMethods:
Enabled: true
# New cop opt-in
Style/HashTransformKeys:
Enabled: true
# New cop opt-in
Style/HashTransformValues:
Enabled: true
# Too subtle to lint. Avoid the "modifier" (postfix) style except on extremely
# short and simple lines.
Style/IfUnlessModifier:
Enabled: false