-
Notifications
You must be signed in to change notification settings - Fork 4
/
.rubocop.yml
119 lines (119 loc) · 3.08 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
---
AllCops:
NewCops: disable
DisplayCopNames: true
TargetRubyVersion: '2.4'
Include:
- "lib/**/*.rb"
- "**/Vagrantfile"
- "spec/**/*.rb"
- "acceptance/**/*.rb"
- "**/Rakefile"
- "**/*.task"
Exclude:
- "bin/*"
- "modules/**/*"
- ".vendor/**/*"
- ".bundle/**/*"
- "**/Gemfile"
- "pkg/**/*"
- "spec/fixtures/**/*"
- "vendor/**/*"
- ".vagrant/**/*"
DisabledByDefault: false
Metrics/LineLength:
Description: People have wide screens, use them.
Max: 200
Enabled: true
Style/BlockDelimiters:
Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
be consistent then.
EnforcedStyle: braces_for_chaining
Enabled: true
Style/ClassAndModuleChildren:
Description: Compact style reduces the required amount of indentation.
EnforcedStyle: compact
Enabled: true
Style/EmptyElse:
Description: Enforce against empty else clauses, but allow `nil` for clarity.
EnforcedStyle: empty
Enabled: true
Style/FormatString:
EnforcedStyle: percent
Enabled: true
Style/FormatStringToken:
EnforcedStyle: template
Enabled: true
Style/Lambda:
Description: Prefer the keyword for easier discoverability.
EnforcedStyle: literal
Enabled: true
Style/RegexpLiteral:
EnforcedStyle: percent_r
Enabled: true
Style/TernaryParentheses:
Description: Checks for use of parentheses around ternary conditions. Enforce parentheses
on complex expressions for better readability, but seriously consider breaking
it up.
EnforcedStyle: require_parentheses_when_complex
Enabled: true
Style/TrailingCommaInArguments:
Description: Prefer always trailing comma on multiline argument lists. This makes
diffs, and re-ordering nicer.
EnforcedStyleForMultiline: comma
Enabled: true
Style/TrailingCommaInHashLiteral:
Description: Prefer always trailing comma on multiline literals. This makes diffs,
and re-ordering nicer.
EnforcedStyleForMultiline: comma
Enabled: true
Style/TrailingCommaInArrayLiteral:
Description: Prefer always trailing comma on multiline literals. This makes diffs,
and re-ordering nicer.
EnforcedStyleForMultiline: comma
Enabled: true
Style/SymbolArray:
Description: Using percent style obscures symbolic intent of array's contents.
EnforcedStyle: brackets
Enabled: true
Style/Documentation:
Exclude:
- spec/**/*
Enabled: false
Style/WordArray:
EnforcedStyle: brackets
Enabled: true
Style/CollectionMethods:
Enabled: true
Style/MethodCalledOnDoEndBlock:
Enabled: true
Style/StringMethods:
Enabled: true
Metrics/AbcSize:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/ModuleLength:
Enabled: true
Style/StringLiterals:
Enabled: false
Naming/FileName:
Enabled: false
Style/FrozenStringLiteralComment:
Exclude:
- "**/Vagrantfile"
Metrics/BlockLength:
Exclude:
- "**/Vagrantfile"
- "spec/**/*.rb"
- "acceptance/**/*.rb"
Style/RescueStandardError:
EnforcedStyle: implicit
Lint/MissingSuper:
Enabled: false