forked from wikimedia/oojs-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
87 lines (78 loc) · 1.76 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
77
78
79
80
81
82
83
84
85
86
inherit_from: .rubocop_todo.yml
AllCops:
Include:
- 'bin/*.rb'
Metrics/LineLength:
Max: 120
# Too fussy.
Metrics/AbcSize:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
# Maybe I'll rewrite the code one day. This is not a Ruby project, this just has to work.
Style/GlobalVars:
Enabled: false
# I like my Unicode, thankyouverymuch.
Style/AsciiComments:
Enabled: false
# Opinions differ.
Style/BlockDelimiters:
Enabled: false
Style/ConditionalAssignment:
Enabled: false
Style/NegatedIf:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
MaxLineLength: 120
Style/Next:
Enabled: false
Style/PercentLiteralDelimiters:
Enabled: false
Style/RegexpLiteral:
Enabled: false
Style/MethodDefParentheses:
EnforcedStyle: require_no_parentheses
Style/TrailingCommaInLiteral:
Enabled: false
Style/TrailingCommaInArguments:
Enabled: false
Style/WordArray:
MinSize: 3
Layout/Tab:
Enabled: false
Layout/AlignArray:
Enabled: false
Layout/IndentArray:
Enabled: false
Layout/IndentHash:
Enabled: false
Layout/IndentationWidth:
Enabled: false
Layout/MultilineOperationIndentation:
Enabled: false
Layout/MultilineMethodCallIndentation:
Enabled: false
Layout/SpaceAroundEqualsInParameterDefault:
EnforcedStyle: no_space
Layout/SpaceBeforeBlockBraces:
EnforcedStyle: no_space
Layout/SpaceInsideBrackets:
Enabled: false
Layout/SpaceInsideHashLiteralBraces:
Enabled: false
Layout/SpaceInsideParens:
Enabled: false
Layout/SpaceInsideBlockBraces:
Enabled: false
Layout/EndOfLine:
EnforcedStyle: lf
# RuboCop bugs cause false positives (it just hates tabs with passion).
Layout/CommentIndentation:
Enabled: false
Layout/IndentAssignment:
Enabled: false