-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.rubocop.houndci.yml
169 lines (120 loc) · 2.76 KB
/
.rubocop.houndci.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# This yaml describes our current checks.
# Any checks marked "# TODO: RWC" are "re-enable when corrected.RWC" are "re-enable when corrected.
# We will add the following back in later, but they cause
# a completely outsized amount of cop failures for the number of files:
# - db/seedfiles
# - lib/tasks
AllCops:
Exclude:
- './project_gems/effective_datatables-2.6.14/effective_datatables-2.6.14.gemspec'
- './node_modules/**/*'
- './db/seedfiles/**/*'
- './lib/tasks/**/*'
- './components/benefit_markets/db/seedfiles/**/*'
- './components/benefit_sponsors/db/seedfiles/**/*'
- './components/old_sponsored_benefits/**/*'
- './eyes/enroll.eye.rb'
Rails:
Enabled: true
Rails/ActiveRecordAliases:
Enabled: false
Rails/FilePath:
Enabled: false
Rails/FindBy:
Enabled: false
Rails/DynamicFindBy:
Enabled: false
# Re-enable for upgrade of rails
Rails/ActionFilter:
Enabled: false
Rails/HasManyOrHasOneDependent:
Enabled: false
Rails/Output:
Enabled: false
# Re-enable for upgrade of rails
Rails/Validation:
Enabled: false
# TODO: RWC
Rails:
Enabled: false
Layout/CommentIndentation:
Enabled: false
Layout/EmptyLines:
Enabled: false
Layout/EmptyLinesAroundBlockBody:
Enabled: false
Layout/LeadingCommentSpace:
Enabled: false
Layout/ExtraSpacing:
Enabled: false
Layout/EmptyLinesAroundClassBody:
Enabled: false
Layout/IndentArray:
Enabled: false
# Re-enable once other problems are solved
Layout/SpaceAfterComma:
Enabled: false
Layout/SpaceBeforeBlockBraces:
Enabled: false
Layout/SpaceInsideHashLiteralBraces:
Enabled: false
Layout/SpaceInsideBlockBraces:
Enabled: false
Layout/TrailingBlankLines:
Enabled: false
Layout/IndentationWidth:
Enabled: true
Layout/Tab:
Enabled: true
Layout/TrailingWhitespace:
Enabled: true
Metrics/AbcSize:
Max: 50
Metrics/ClassLength:
Max: 300
Metrics/CyclomaticComplexity:
Max: 8
Metrics/BlockLength:
Enabled: false
Metrics/LineLength:
Max: 250
Metrics/MethodLength:
Max: 50
Metrics/PerceivedComplexity:
Max: 15
Naming/PredicateName:
Enabled: false
Naming/VariableNumber:
Enabled: false
Style/AndOr:
Enabled: true
Style/BlockComments:
Enabled: false
Style/BracesAroundHashParameters:
Enabled: false
# We will want to turn this back on or customize it more fully
Style/Documentation:
Enabled: false
Style/EachWithObject:
Enabled: false
Style/ExpandPathArguments:
Enabled: false
Style/HashSyntax:
Enabled: false
Style/NumericPredicate:
Enabled: false
Style/StringLiterals:
Enabled: false
Style/SymbolArray:
Enabled: false
Style/WordArray:
Enabled: false
Bundler/OrderedGems:
Enabled: false
Gemspec/OrderedDependencies:
Enabled: false
# Deprecated
# Style/TrailingBlankLines:
# Enabled: false
# AllCops:
# RunRailsCops: true