-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
66 lines (55 loc) · 1.68 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
AllCops:
TargetRubyVersion: 2.4
DisplayCopNames: true
DisplayStyleGuide: true
Style/RegexpLiteral:
Exclude:
- Guardfile
# We deal with s2 cell ids and geo hashes.
# Doesn't make sense to use this cop.
Style/NumericLiterals:
Enabled: false
# Cop supports --auto-correct.
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
# Include: **/Gemfile, **/gems.rb
Bundler/OrderedGems:
AutoCorrect: true
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
AllowHeredoc: true
AllowURI: true
IgnoredPatterns: true
Max: 100
# Sometimes we have portuguese in the comments
Style/AsciiComments:
Enabled: false
Style/Documentation:
Enabled: false
# Exclude:
# - 'spec/**/*'
# - 'test/**/*'
# Cop supports --auto-correct.
Style/EmptyLineAfterMagicComment:
AutoCorrect: true
Exclude:
- 'Gemfile'
Style/ParallelAssignment:
Enabled: false
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces.
# SupportedStyles: space, no_space, compact
# SupportedStylesForEmptyBraces: space, no_space
Style/SpaceInsideHashLiteralBraces:
AutoCorrect: true
EnforcedStyle: no_space
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
EnforcedStyle: double_quotes
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: final_newline, final_blank_line
Style/TrailingBlankLines:
AutoCorrect: true