-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy path.hound.yml
87 lines (67 loc) · 1.67 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
AllCops:
Exclude:
- lib/tasks/cucumber.rake
- features/step_definitions/email_steps.rb
- 'db/**/*'
DisplayCopNames: true
# C: Missing top-level module documentation comment.
Style/Documentation:
Enabled: false
# C: Prefer inject over reduce.
Style/CollectionMethods:
PreferredMethods:
reduce: 'inject'
# don't enforce single- or double-quotes
Style/StringLiterals:
Enabled: false
# library method, leave the violation
Style/PerlBackrefs:
Exclude:
- features/support/paths.rb
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
# This never works for validations
Style/AlignHash:
EnforcedLastArgumentHashStyle: ignore_implicit
# all the cuke syntax fails
Lint/AmbiguousRegexpLiteral:
Exclude:
- 'features/step_definitions/*'
# generated file, ignore
Style/RegexpLiteral:
Exclude:
- 'Guardfile'
# 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
# I like extra spacing.
Style/ExtraSpacing:
Enabled: false
# stop nesting so hard.
Metrics/BlockNesting:
Max: 2
# short methods, man...
Metrics/MethodLength:
Max: 7
Metrics/LineLength:
Max: 90
# fewer parameters
Metrics/ParameterLists:
Max: 3
Style/PredicateName:
Exclude:
- app/models/user.rb
- app/models/guest.rb
RSpec/ExampleLength:
Max: 7