-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrubocop.yml
63 lines (50 loc) · 1.57 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
# require: rubocop-rspec
Metrics/LineLength:
Max: 160
Metrics/MethodLength:
CountComments: false
Max: 50
Layout/DotPosition:
Enabled: true
EnforcedStyle: trailing
Style/RedundantSelf:
Description: "Don't use self where it's not needed."
StyleGuide: '#no-self-unless-required'
Enabled: false
Style/ClassAndModuleChildren:
EnforcedStyle: compact
Layout/AlignHash:
EnforcedColonStyle: table
Layout/TrailingBlankLines:
EnforcedStyle: final_blank_line
Layout/AlignParameters:
EnforcedStyle: with_fixed_indentation
Style/StringLiterals:
Description: 'Checks if uses of quotes match the configured preference.'
StyleGuide: '#consistent-string-literals'
Enabled: true
VersionAdded: '0.9'
VersionChanged: '0.36'
EnforcedStyle: double_quotes
SupportedStyles:
- single_quotes
- double_quotes
# If `true`, strings which span multiple lines using `\` for continuation must
# use the same type of quotes on each line.
ConsistentQuotesInMultiline: false
Naming/MemoizedInstanceVariableName:
EnforcedStyleForLeadingUnderscores: required
Style/SpecialGlobalVars:
Description: 'Avoid Perl-style global variables.'
StyleGuide: '#no-cryptic-perlisms'
Enabled: true
VersionAdded: '0.13'
VersionChanged: '0.36'
SafeAutoCorrect: false
EnforcedStyle: use_perl_names
SupportedStyles:
- use_perl_names
- use_english_names
Style/CommentedKeyword:
Description: 'Do not place comments on the same line as certain keywords.'
Enabled: false