-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
135 lines (109 loc) · 3.23 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
require:
- rubocop-rspec
inherit_gem:
rspec-sleeping_king_studios: config/rubocop-rspec.yml
AllCops:
TargetRubyVersion: 3.1
NewCops: enable
Include:
- Gemfile
- rspec-sleeping_king_studios.gemspec
- lib/rspec/sleeping_king_studios.rb
- lib/rspec/sleeping_king_studios/concerns.rb
- lib/rspec/sleeping_king_studios/concerns/example_constants.rb
- lib/rspec/sleeping_king_studios/concerns/memoized_helpers.rb
- lib/rspec/sleeping_king_studios/configuration.rb
- lib/rspec/sleeping_king_studios/deferred.rb
- lib/rspec/sleeping_king_studios/deferred/**/*
- lib/rspec/sleeping_king_studios/sandbox.rb
- lib/rspec/sleeping_king_studios/version.rb
- spec/rspec/configuration_spec.rb
- spec/integration/concerns/**/*
- spec/integration/deferred/**/*
- spec/rspec/sleeping_king_studios_spec.rb
- spec/rspec/sleeping_king_studios/concerns/example_constants_spec.rb
- spec/rspec/sleeping_king_studios/concerns/memoized_helpers_spec.rb
- spec/rspec/sleeping_king_studios/configuration_spec.rb
- spec/rspec/sleeping_king_studios/deferred/**/*
- lib/rspec/sleeping_king_studios/sandbox_spec.rb
- lib/rspec/sleeping_king_studios/sandbox/**/*
- spec/rspec/sleeping_king_studios/support/shared_examples/deferred_call_examples.rb
- spec/spec_helper.rb
- spec/support/integration/**/*.rb
- spec/support/mock_example_group.rb
- '*.thor'
Exclude:
- 'tmp/**/*'
- 'vendor/**/*'
RSpec:
Include:
- '**/*_examples.rb'
- '**/*_contract.rb'
- '**/*_spec.rb'
- '**/*_spec.fixture.rb'
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
Layout/HashAlignment:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
Layout/LineContinuationLeadingSpace:
Enabled: false
Layout/LineLength:
AllowedPatterns:
- '\A\s*#'
Max: 80
Layout/ParameterAlignment:
EnforcedStyle: with_fixed_indentation
IndentationWidth: ~
Metrics/BlockLength:
Exclude:
- '*.gemspec'
- 'spec/**/*.rb'
Metrics/ModuleLength:
Exclude:
- 'spec/**/*.rb'
Naming/FileName:
Exclude:
- Gemfile
Naming/RescuedExceptionsVariableName:
PreferredName: exception
RSpec/BeNil:
Enabled: false
RSpec/Eq:
Enabled: false
RSpec/ExampleLength:
Max: 10
RSpec/ExampleWording:
Enabled: false
RSpec/HookArgument:
EnforcedStyle: example
RSpec/NamedSubject:
Exclude:
- '**/*_examples.rb'
RSpec/MultipleMemoizedHelpers:
Max: 10
RSpec/NestedGroups:
Max: 5
RSpec/RepeatedDescription:
# Does not recognize :wrap_context nodes.
Enabled: false
RSpec/RepeatedExample:
# Does not recognize :wrap_context nodes.
Enabled: false
RSpec/SpecFilePathFormat:
Exclude:
- spec/integration/**/*
RSpec/SpecFilePathSuffix:
Exclude:
- '**/*spec.fixture.rb'
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/NestedParenthesizedCalls:
# This cop is excessively strict, especially in cases where the nested method
# call has only one argument, e.g. outer_method(inner_method arg). Adding the
# inner parentheses reduces readability.
Enabled: false