-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.hound.yml
108 lines (83 loc) · 2.32 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
AllCops:
EnabledByDefault: true
Exclude:
- testable.gemspec
- spec/**/*
- examples/**/*
# For now, it is permissible to disable and enable Rubocop checks.
Style/DisableCopsWithinSourceCodeDirective:
Enabled: false
# Do not require parentheses with methods that take arguments.
Style/MethodCallWithArgsParentheses:
Enabled: false
# Do not enforce copyright messaging.
Style/Copyright:
Enabled: false
# Removing need for frozen string literal comment.
Style/FrozenStringLiteralComment:
Enabled: false
# Removing the preference for string single quotes.
Style/StringLiterals:
Enabled: false
# Missing top-level module documentation comment.
Style/Documentation:
Enabled: false
# Prefer reduce over inject.
Style/CollectionMethods:
PreferredMethods:
reduce: 'inject'
# Use each_with_object instead of inject.
Style/EachWithObject:
Enabled: false
# Prefer fail over raise.
Style/SignalException:
Enabled: false
# This never works for validations.
Layout/HashAlignment:
EnforcedLastArgumentHashStyle: ignore_implicit
# Align multi-line params with previous line.
Layout/ParameterAlignment:
EnforcedStyle: with_fixed_indentation
# Indent `when` clause one step from `case`.
Layout/CaseIndentation:
IndentOneStep: true
# Don't force bad var names for reduce/inject loops.
Style/SingleLineBlockParams:
Enabled: false
# For method chains, keep the dot with the method name.
Layout/DotPosition:
EnforcedStyle: leading
# Stop nesting so hard.
Metrics/BlockNesting:
Max: 2
# Encourage short methods.
Metrics/MethodLength:
Max: 15
# Encourage short (as possible) modules.
Metrics/ModuleLength:
Max: 105
# Encourage fewer parameters.
Metrics/ParameterLists:
Max: 4
# Remove execute permissions check.
Lint/ScriptPermission:
Enabled: false
# Not requiring fully qualified constants.
Lint/ConstantResolution:
Enabled: false
# Do not require gem descriptions
Bundler/GemComment:
Enabled: false
# Testable Exceptions
# Allow methods with has_ for predicates.
Naming/PredicateName:
AllowedMethods:
- has_correct_title?
- has_correct_url?
# Sometimes this seems like a better way to do things.
Style/DoubleNegation:
Enabled: false
# This is entirely for the addition of the match? method to String
# and that's only needed if you are using an outdated Ruby.
Style/MultilineIfModifier:
Enabled: False