-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
76 lines (61 loc) · 1.72 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
67
68
69
70
71
72
73
74
75
76
AllCops:
Exclude:
- lib/query_parser.rb
# Force single-quotes for strings without interpolation.
#
# - I hate this. Hate it.
Style/StringLiterals:
Enabled: false
# Often added for clarity
Style/RedundantParentheses:
Enabled: false
# Force every module start on its own line, as opposed to
# Module::SubModule
#
# - Can make for too much indentation
Style/ClassAndModuleChildren:
Enabled: false
# We never use method name `set_*` unless we
# really need to show something weird is
# happening, so don't disallow it
Naming/AccessorMethodName:
Enabled: false
# I don't understand the desire to use ! instead of `not`
# The former is so much easier to miss when scanning code.
Style/Not:
Enabled: false
# Use of an explicit 'if' block is generally chosen
# in special cases for readability -- trust the
# programmer on this one
Style/IfUnlessModifier:
Enabled: false
# Switching between interpolation and `to_s` is a pain
# compared to just adding/removing stuff between the
# double-quotes. Ditto with %[qQ]
Style/RedundantInterpolation:
Enabled: false
Style/RedundantPercentQ:
Enabled: false
# The following are all focused on aligning method defnitions
# or calls when the params/arguments don't all fit on the calling line.
#
# This gives us all on one line if possible; if not, give each argument
# its own line and indent two spaces.
#
# Example:
# myobject.methodname(
# one,
# two,
# three
# )
Layout/FirstMethodParameterLineBreak:
Enabled: true
Layout/ArgumentAlignment:
Enabled: true
EnforcedStyle: with_fixed_indentation
Layout/MultilineMethodArgumentLineBreaks:
Enabled: true
Layout/FirstMethodParameterLineBreak:
Enabled: true
Layout/FirstMethodArgumentLineBreak:
Enabled: true