-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
75 lines (57 loc) · 1.53 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
inherit_from:
- .rubocop-airbnb.yml
AllCops:
TargetRubyVersion: 2.6.3
Rails:
Enabled: true
Layout/EmptyLines:
Enabled: false
# Restore Rubocop default
Layout/DotPosition:
EnforcedStyle: leading
# The inbuilt style does not accommodate for:
#
# var = begin
# something
# rescue
# something
# end
#
# without indenting the entire block and looking dumb.
Layout/RescueEnsureAlignment:
Enabled: false
# In every instance where I've removed these extra lines, the result was less readable.
Layout/EmptyLinesAroundBlockBody:
Enabled: false
Layout/EmptyLinesAroundModuleBody:
Enabled: false
# Restore Rubocop default
Layout/MultilineMethodCallIndentation:
EnforcedStyle: aligned
Layout/CaseIndentation:
EnforcedStyle: end
Layout/EndAlignment:
EnforcedStyleAlignWith: variable
# Allow both %x() and backticks
Style/CommandLiteral:
Enabled: false
# $? and $: are more idiomatic than importing English and using $MAGIC_GLOBALS.
# If it's more esoteric, comment.
Style/SpecialGlobalVars:
Enabled: false
# Direct opposite of Prettier, allow either.
Style/TrailingCommaInHashLiteral:
Enabled: false
# Direct opposite of Prettier, allow either
Style/TrailingCommaInArrayLiteral:
Enabled: false
# Allow top-level mixins. Rightfully used in stubs/tasks
Style/MixinUsage:
Enabled: false
# Generated code/stubs as well as the rest of the code use what's
# appropriate according to the context
Style/PercentLiteralDelimiters:
Enabled: false
# "warn" and $stderr.puts have different connotations
Style/StderrPuts:
Enabled: false