This repository has been archived by the owner on Nov 10, 2020. It is now read-only.
/
.hound.yml
117 lines (87 loc) · 1.7 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
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
AllCops:
Include:
- '../**/*.rake'
- 'Gemfile'
- 'Guardfile'
- 'Rakefile'
Exclude:
- !ruby/regexp /spec\/setup/
# Avoid parameter lists longer than five parameters.
ParameterLists:
Max: 4
CountKeywordArgs: true
# Avoid more than `Max` levels of nesting.
BlockNesting:
Max: 3
# Align with the style guide.
CollectionMethods:
PreferredMethods:
collect: 'map'
inject: 'reduce'
find: 'detect'
find_all: 'select'
HashSyntax:
Enabled: true
StringLiterals:
Enabled: true
Void:
Enabled: true
MethodLength:
Enabled: false
LineLength:
Enabled: false
DotPosition:
EnforcedStyle: 'leading'
SpaceInsideHashLiteralBraces:
Enabled: true
AlignParameters:
Enabled: true
# I don't agree with this
Blocks:
Enabled: false
NumericLiterals:
Enabled: true
SpaceInsideBrackets:
Enabled: true
WordArray:
Enabled: true
Lambda:
Enabled: true
RegexpLiteral:
Enabled: true
# Don't agree
ConstantName:
Enabled: false
TrivialAccessors:
Enabled: true
ExactNameMatch: true
Alias:
Enabled: true
Loop:
Enabled: false
# Do not agree at all
AndOr:
Enabled: false
# This is done by YARD Stick
Documentation:
Enabled: false
# Braces can be really, really useful for clarity
BracesAroundHashParameters:
Enabled: false
# I prefer raise over fail
SignalException:
EnforcedStyle: only_raise
ClassLength:
CountComments: false
Max: 140
# The suggested style does not match the common ruby way of aligning the content of a hash
IndentHash:
Enabled: false
# This cop seems to not work correctly. Also we don't agree with it.
FileName:
Enabled: false
# Double negations are extremely useful
DoubleNegation:
Enabled: false
Output:
Enabled: false