-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop-https---raw-githubusercontent-com-dvmtn-house-style-master-rubocop-yml
115 lines (90 loc) · 1.76 KB
/
.rubocop-https---raw-githubusercontent-com-dvmtn-house-style-master-rubocop-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
AllCops:
Include:
- '**/Rakefile'
- '**/config.ru'
Exclude:
- 'ansible/**/*'
- 'db/**/*'
- 'config/**/*'
- 'script/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
- 'bin/**/*'
- 'log/**/*'
- 'node_modules/**/*'
#############################################
# Layout
#
Layout/AlignHash:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
EnforcedLastArgumentHashStyle: ignore_implicit
SupportedLastArgumentHashStyles: ignore_implicit
Layout/EmptyLinesAroundClassBody:
EnforcedStyle: empty_lines
Layout/SpaceBeforeBlockBraces:
Enabled: false
#############################################
# Style
#
Style/DefWithParentheses:
Enabled: false
Style/Documentation:
Enabled: false
Style/MethodDefParentheses:
Enabled: false
Style/Encoding:
Enabled: false
Style/SingleLineBlockParams:
Enabled: false
Style/EmptyCaseCondition:
Enabled: false
Style/PercentLiteralDelimiters:
PreferredDelimiters:
'%': '""'
'%i': '[]'
'%q': "''"
'%Q': '""'
'%r': '()'
'%s': '[]'
'%w': '[]'
'%W': '[]'
'%x': '()'
Style/PredicateName:
NamePrefixBlacklist:
- is_
- has_
- have_
- the_
- a_
- should_
Style/SignalException:
EnforcedStyle: only_raise
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: comma
Style/VariableNumber:
EnforcedStyle: snake_case
Style/VariableName:
Enabled: true
Style/FileName:
Exclude:
- 'Gemfile'
- 'Guardfile'
#############################################
# Metrics
#
Metrics/LineLength:
Exclude:
- 'spec/**/*'
Max: 140
AllowURI: true
Metrics/BlockLength:
Exclude:
- 'spec/**/*_spec.rb'
#############################################
# Security
#
Security/Eval:
Enabled: true
Security/MarshalLoad:
Enabled: true