forked from jmmastey/level_up_exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.hound.yml
65 lines (50 loc) · 1.3 KB
/
.hound.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
AllCops:
Exclude:
- triangle_facts/*.rb
- supportive/supportive.rb
# C: Missing top-level module documentation comment.
Style/Documentation:
Enabled: false
# C: Prefer reduce over inject.
Style/CollectionMethods:
PreferredMethods:
reduce: 'inject'
# C: Use each_with_object instead of inject.
Style/EachWithObject:
Enabled: false
# C: Removing the preference for string single quotes
Style/StringLiterals:
Enabled: false
#C: Prefer fail over raise
Style/SignalException:
Enabled: false
Style/TrailingComma:
EnforcedStyleForMultiline: comma
# This never works for validations
Style/AlignHash:
EnforcedLastArgumentHashStyle: ignore_implicit
# align multi-line params with previous line
Style/AlignParameters:
EnforcedStyle: with_fixed_indentation
# indent `when` clause one step from `case`
Style/CaseIndentation:
IndentOneStep: true
# don't force crappy var names for reduce/inject loops...
Style/SingleLineBlockParams:
Enabled: false
# for method chains, keep the dot with the method name
Style/DotPosition:
EnforcedStyle: leading
# stop nesting so hard.
Metrics/BlockNesting:
Max: 2
# short methods, man...
Metrics/MethodLength:
Max: 7
# fewer parameters
Metrics/ParameterLists:
Max: 3
# skip for this exercise
Style/AsciiComments:
Exclude:
- scheduler/schedule.rb