-
Notifications
You must be signed in to change notification settings - Fork 2
/
.rubocop.yml
45 lines (35 loc) · 1.1 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
---
require:
- rubocop-performance
- rubocop-rspec
AllCops:
NewCops: enable
TargetRubyVersion: '2.4'
Layout/IndentationWidth:
Description: Use 4 spaces for indentation.
# Number of spaces for each indentation level.
Width: 4
IgnoredPatterns: []
Layout/LineLength:
Description: Limit lines to 100 characters.
Max: 100
Lint/UnusedBlockArgument:
Description: Checks for unused block arguments.
AllowUnusedKeywordArguments: false
Exclude:
- src/bin/octool
Style/EmptyMethod:
Description: Checks the formatting of empty method definitions.
EnforcedStyle: expanded
Style/Semicolon:
Description: Don't use semicolons to terminate expressions.
AllowAsExpressionSeparator: true
Style/SymbolArray:
Description: Use %i or %I for arrays of symbols.
EnforcedStyle: brackets
Style/TrailingCommaInArrayLiteral:
Description: Checks for trailing comma in array literals.
EnforcedStyleForMultiline: comma
Style/WordArray:
Description: Brackets are more intuitive to read because they do not use magic syntax.
EnforcedStyle: brackets