-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
112 lines (93 loc) · 2.15 KB
/
.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
AllCops:
TargetRubyVersion: 2.3
Exclude:
- 'bin/*'
- 'config/**/*'
- 'config.ru'
- 'db/**/*'
- 'deploy/*'
- 'vendor/**/*'
- 'spec/dummy/**/*'
Rails:
Enabled: true
# Don't be picky about parameter alignment
#
Layout/AlignParameters:
Enabled: false
# Don't be picky about paren alignment
#
Layout/ClosingParenthesisIndentation:
Enabled: false
# It's ok to have an empty line at the top of a class, module, or block
#
Layout/EmptyLinesAroundClassBody:
Enabled: false
Layout/EmptyLinesAroundModuleBody:
Enabled: false
Layout/EmptyLinesAroundBlockBody:
Enabled: false
# Don't try to align parens in a multiline method call
#
Layout/MultilineMethodCallBraceLayout:
Enabled: false
# Don't enforce block length in specs or other files where blocks tend to be long
#
Metrics/BlockLength:
Exclude:
- 'Rakefile'
- '**/*.rake'
- 'spec/**/*.rb'
# Enable 20 lines in a method instead of the default 10
#
Metrics/MethodLength:
Enabled: true
Max: 20
# Enable a little more complexity than the standard 15
#
Metrics/AbcSize:
Max: 23
# Don't complain about long classes just yet
#
Metrics/ClassLength:
Enabled: false
# The standard 80 character length can be difficult in Ruby at times
#
Metrics/LineLength:
Max: 120
# Allow using Foo::Bar style class declaration style
#
Style/ClassAndModuleChildren:
Enabled: false
# I agree that documentation is good, but it should not be required in all cases
#
Style/Documentation:
Enabled: false
# Dont require empty methods are on a single line
#
Style/EmptyMethod:
Enabled: false
# While this is intended to aid upgrading, adding frozen_string_literal: true to the top of
# every file is awful
#
Style/FrozenStringLiteralComment:
Enabled: false
# Don't enforce a guard clause on short methods
#
Style/GuardClause:
MinBodyLength: 3
# I like using parens because it makes the intention clear that you are calling a method
#
Style/MethodCallWithoutArgsParentheses:
Enabled: false
# Explicit returns are fine
#
Style/RedundantReturn:
Enabled: false
# Allow normal arrays of symbols
#
Style/SymbolArray:
Enabled: false
# Allow normal word arrays
#
Style/WordArray:
Enabled: false