forked from code-dot-org/code-dot-org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
112 lines (78 loc) · 1.88 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
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
Rails:
Enabled: true
# BEGIN CODE.ORG OVERRIDES
Rails/Delegate:
Include:
- dashboard/**/*
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/SpaceInsideBlockBraces:
EnforcedStyle: no_space
SpaceBeforeBlockParameters: false
Style/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
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/BlockLength:
Enabled: false
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/BracesAroundHashParameters:
Enabled: false
Style/ClosingParenthesisIndentation:
Enabled: false
Style/ExtraSpacing:
Enabled: false
Style/IdenticalConditionalBranches:
Enabled: false
Style/IfInsideElse:
Enabled: false
Style/LeadingCommentSpace:
Enabled: false
Style/NumericPredicate:
Enabled: false
Style/RedundantReturn:
Enabled: false
Style/StringLiterals:
Enabled: false
# END BLACKLIST