-
Notifications
You must be signed in to change notification settings - Fork 12
/
.rubocop.yml
64 lines (64 loc) · 1.39 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
AllCops:
SuggestExtensions: false
TargetRubyVersion: 2.7
NewCops: enable
Exclude:
- private/**/*
- tmp/**/*
Naming/MethodName:
Enabled: false
Naming/FileName:
Exclude:
- "**/*.gemspec"
- "**/*_spec.rb"
Layout/HashAlignment:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
Layout/LineLength:
Max: 170
Layout/SpaceAfterComma:
Enabled: true
Layout/EmptyLineAfterGuardClause:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: true
Max: 60
Metrics/ParameterLists:
Max: 6
Metrics/BlockNesting:
Max: 5
Metrics/ClassLength:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/BlockLength:
Enabled: false
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: no_comma
Style/StringLiterals:
EnforcedStyle: single_quotes
Style/StringLiteralsInInterpolation:
EnforcedStyle: single_quotes
Style/BarePercentLiterals:
EnforcedStyle: percent_q
Style/NumericLiteralPrefix:
EnforcedOctalStyle: zero_with_o
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: no_comma
Style/DateTime:
Enabled: false
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: no_comma
# Enabled: false
Style/FormatStringToken:
Enabled: false
Style/Encoding:
Enabled: true
Style/SlicingWithRange:
Enabled: false
Lint/RedundantCopDisableDirective:
Enabled: false