-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
97 lines (76 loc) · 2.49 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
AllCops:
# Include common Ruby source files.
Exclude:
- 'bin/**/*'
- 'config/**/*'
- 'db/**/*'
- 'lib/**/*'
- 'public/**/*'
- 'vendor/**/*'
Rails:
Enabled: true
Metrics/ClassLength:
CountComments: false
Max: 1000
Metrics/MethodLength:
CountComments: false
Max: 100
Metrics/LineLength:
Max: 160
Metrics/ParameterLists:
Max: 9
Rails/HttpPositionalArguments:
Enabled: false
Rails/ApplicationRecord:
Enabled: false
# This cop looks for use of the same name as outer local variables for block arguments or block local variables.
Lint/ShadowingOuterLocalVariable:
Enabled: false
# This cop checks for redundant uses of self.
# If we enable this cop, many necessary selves will be deleted.
Style/RedundantSelf:
Enabled: false
Style/RedundantBegin:
Enabled: false
# Adopt a consistent multi-line method chaining style.
# There are two popular styles in the Ruby community, both of which are considered good.
Layout/DotPosition:
Enabled: false
# Single quotes being faster is hardly measurable and only affects parse time.
# Enforcing double quotes reduces the times where you need to change them
# when introducing an interpolation. Use single quotes only if their semantics
# are needed.
Style/StringLiterals:
Enabled: false
Style/HashSyntax:
EnforcedStyle: ruby19_no_mixed_keys
# A specialized exception class will take one or more arguments and construct the message from it.
# So both variants make sense.
Style/RaiseArgs:
Enabled: false
# This cop checks the indentation of the right hand side operand in binary operations that span more than one line.
Layout/MultilineOperationIndentation:
Enabled: false
Layout/SpaceInsideBlockBraces:
# The space here provides no real gain in readability while consuming
# horizontal space that could be used for a better parameter name.
# Also {| differentiates better from a hash than { | does.
SpaceBeforeBlockParameters: false
# This cop checks for uses of rescue in its modifier form.
Style/RescueModifier:
Enabled: false
# No trailing space differentiates better from the block:
# foo} means hash, foo } means block.
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
# The and and or keywords are banned. It's just not worth it. Always use && and || instead
Style/AndOr:
Enabled: false
# Enforcing the names of variables? To single letter ones? Just no.
Style/SingleLineBlockParams:
Enabled: false
Style/Documentation:
Enabled: false
# Style preference
Style/MethodDefParentheses:
Enabled: false