-
-
Notifications
You must be signed in to change notification settings - Fork 98
/
rubocop.yml
64 lines (51 loc) · 2.01 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
# Disabling all Layout/* rules, as they're unnecessary when the user is using
# Syntax Tree to handle all of the formatting.
Layout:
Enabled: false
# Re-enable Layout/LineLength because certain cops that most projects use
# (e.g. Style/IfUnlessModifier) require Layout/LineLength to be enabled.
# By leaving it disabled, those rules will mis-fire.
#
# Users can always override these defaults in their own rubocop.yml files.
# https://github.com/prettier/plugin-ruby/issues/825
Layout/LineLength:
Enabled: true
Style/MultilineIfModifier:
Enabled: false
# Syntax Tree will expand empty methods to put the end keyword on the subsequent
# line to reduce git diff noise.
Style/EmptyMethod:
EnforcedStyle: expanded
# lambdas that are constructed with the lambda method call cannot be safely
# turned into lambda literals without removing a method call.
Style/Lambda:
Enabled: false
# When method chains with multiple blocks are chained together, rubocop will let
# them pass if they're using braces but not if they're using do and end
# keywords. Because we will break individual blocks down to using keywords if
# they are multiline, this conflicts with rubocop.
Style/MultilineBlockChain:
Enabled: false
# Disable the single- vs double-quotes rules as these depend on whether the user
# has added or not `plugin/single_quotes` for `syntax_tree`
Style/StringLiterals:
Enabled: false
Style/StringLiteralsInInterpolation:
Enabled: false
Style/QuotedSymbols:
Enabled: false
# We let users have a little more freedom with symbol and words arrays. If the
# user only has an individual item like ["value"] then we don't bother
# converting it because it ends up being just noise.
Style/SymbolArray:
Enabled: false
Style/WordArray:
Enabled: false
# Disable the trailing-comma rules as these depend on whether the user has added
# or not `plugin/trailing_comma` for `syntax_tree`
Style/TrailingCommaInArguments:
Enabled: false
Style/TrailingCommaInArrayLiteral:
Enabled: false
Style/TrailingCommaInHashLiteral:
Enabled: false