-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
112 lines (84 loc) · 2.02 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
require:
- rubocop-rspec
inherit_gem:
rspec-sleeping_king_studios: config/rubocop-rspec.yml
AllCops:
TargetRubyVersion: 3.1
NewCops: enable
Include:
- 'lib/**/*.rb'
- 'spec/**/*.rb'
Exclude:
- 'tmp/**/*'
- 'vendor/**/*'
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
IndentationWidth: ~
Layout/HashAlignment:
EnforcedColonStyle: table
EnforcedHashRocketStyle: table
Layout/LineLength:
AllowedPatterns:
- '\A\s*#'
Max: 80
Layout/ParameterAlignment:
EnforcedStyle: with_fixed_indentation
IndentationWidth: ~
Metrics/BlockLength:
Exclude:
- 'spec/**/*_examples.rb'
- 'spec/**/*_spec.rb'
Metrics/ModuleLength:
Exclude:
- 'spec/**/*_examples.rb'
Naming/MethodParameterName:
AllowedNames:
- 'as'
Naming/RescuedExceptionsVariableName:
PreferredName: exception
RSpec/BeNil:
Enabled: false
RSpec/Eq:
Enabled: false
RSpec/ExampleLength:
Max: 10
RSpec/ExampleWithoutDescription:
EnforcedStyle: single_line_only
RSpec/ExampleWording:
Enabled: false
RSpec/ExpectInLet:
# This is used extensively for generating expectations.
Enabled: false
RSpec/HookArgument:
EnforcedStyle: example
RSpec/LeadingSubject:
Enabled: false
RSpec/MultipleMemoizedHelpers:
Enabled: false
RSpec/NestedGroups:
Max: 5
RSpec/SpecFilePathFormat:
Exclude:
- spec/integration/**/*
Style/AccessorGrouping:
EnforcedStyle: separated
Style/ClassAndModuleChildren:
# Checks the style of children definitions at classes and modules.
#
# Our preferred style is compact-plus-one, which does not match any of the
# existing styles, so we disable this cop.
Enabled: false
Style/DoubleNegation:
Enabled: false
Style/NestedParenthesizedCalls:
Exclude:
- 'spec/**/*_examples.rb'
- 'spec/**/*_spec.rb'
Style/RedundantLineContinuation:
# Broken for line continuation followed by start of do; end block.
Enabled: false
Style/SingleLineBlockParams:
# Prefer descriptive block param names.
Enabled: false
Style/TrailingUnderscoreVariable:
Enabled: false