forked from metricfu/metrics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroodi.yml
28 lines (27 loc) · 902 Bytes
/
roodi.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
#
# This file is part of the metrics repository. Copyright (C) 2013 and above Shogun <[email protected]>.
# Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
#
AssignmentInConditionalCheck:
CaseMissingElseCheck:
ClassLineCountCheck:
line_count: 300
ClassNameCheck:
pattern: !ruby/regexp /^[A-Z][a-zA-Z0-9]*$/
ClassVariableCheck:
CyclomaticComplexityBlockCheck:
complexity: 5
CyclomaticComplexityMethodCheck:
complexity: 10
EmptyRescueBodyCheck:
ForLoopCheck:
MethodLineCountCheck:
line_count: 25
MethodNameCheck:
pattern: !ruby/regexp /^[_a-z<>=\[|+-\/\*`]+[_a-z0-9_<>=~@\[\]]*[=!\?]?$/
ModuleLineCountCheck:
line_count: 300
ModuleNameCheck:
pattern: !ruby/regexp /^[A-Z][a-zA-Z0-9]*$/
ParameterNumberCheck:
parameter_count: 5