forked from jaredbeck/libyear-bundler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
68 lines (51 loc) · 1.65 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
inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.1.10
Layout/IndentArray:
EnforcedStyle: consistent
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Metrics/AbcSize:
Max: 27
# Not a useful metric compared to, e.g. `AbcSize`.
Metrics/BlockLength:
Enabled: false
# Not a useful metric compared to, e.g. `AbcSize`.
Metrics/ClassLength:
Enabled: false
# Not a useful metric compared to, e.g. `AbcSize`.
Metrics/MethodLength:
Enabled: false
# Not a useful metric compared to, e.g. `AbcSize`.
Metrics/ModuleLength:
Enabled: false
# Heredocs are usually assigned to a variable or constant, which already has a
# name, so naming the heredoc doesn't add much value. Feel free to name
# heredocs that are used as anonymous values (not a variable, constant, or
# named parameter).
Naming/HeredocDelimiterNaming:
Enabled: false
# Please use semantic style, e.g. `do` when there's a side-effect, else `{}`.
# The semantic style is too nuanced to lint, so the cop is disabled.
Style/BlockDelimiters:
Enabled: false
# Annotated tokens harm readability in 90% of format strings.
Style/FormatStringToken:
Enabled: false
# The decision of when to use a guard clause to improve readability is subtle,
# and it's not clear that it can be linted. Certainly, the default
# `MinBodyLength` of 1 can actually hurt readability.
Style/GuardClause:
Enabled: false
# Too subtle to lint. Prefer normal conditionals, except on very simple lines.
Style/IfUnlessModifier:
Enabled: false
Metrics/ModuleLength:
Exclude:
- 'spec/**/*'
Metrics/LineLength:
Max: 100
Metrics/MethodLength:
Enabled: false
Style/StringLiterals:
Enabled: false