forked from code-dot-org/code-dot-org
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
90 lines (62 loc) · 1.52 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
87
88
89
90
inherit_from:
- .rubocop_hound.yml
- .rubocop_todo.yml
AllCops:
Exclude:
- 'apps/**/*'
- 'dashboard/db/schema.rb'
- 'pegasus/test/test_string.rb' # Parser does not support non-utf8 escape sequences
DisplayCopNames: true
TargetRubyVersion: 2.2
# BEGIN CODE.ORG OVERRIDES
Style/AlignParameters:
EnforcedStyle: with_fixed_indentation
Style/DotPosition:
EnforcedStyle: trailing
Style/EmptyElse:
EnforcedStyle: empty
Style/EmptyLineBetweenDefs:
AllowAdjacentOneLineDefs: true
Style/EmptyMethod:
EnforcedStyle: expanded
Style/FirstParameterIndentation:
EnforcedStyle: consistent
Style/MultilineMethodCallBraceLayout:
EnforcedStyle: new_line
Style/NumericLiterals:
MinDigits: 7
Style/Semicolon:
AllowAsExpressionSeparator: true
Style/WordArray:
MinSize: 5
# END CODE.ORG OVERRIDES
# BEGIN BLACKLIST: Below are rules we don't plan to enable in the forseeable
# future. Rules we plan to fix (but are currently failing) belong in
# .rubocop_todo.yml.
Metrics/AbcSize:
Enabled: false
Metrics/BlockNesting:
Enabled: false
Metrics/LineLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Style/AsciiComments:
Enabled: false
Style/BarePercentLiterals:
Enabled: false
Style/ClosingParenthesisIndentation:
Enabled: false
Style/ExtraSpacing:
Enabled: false
Style/IdenticalConditionalBranches:
Enabled: false
Style/IfInsideElse:
Enabled: false
Style/NumericPredicate:
Enabled: false
Style/RedundantReturn:
Enabled: false
Style/StringLiterals:
Enabled: false
# END BLACKLIST