Skip to content

Commit 8225ec9

Browse files
elucidsoftclaude
andcommitted
fix(lint): relax RuboCop-RSpec rules for integration-style specs
- Disable RSpec/SpecFilePathFormat (gem uses cloudlayerio not cloud_layerio) - Increase RSpec/ExampleLength max to 20 (stub request + assert pairs need room) - Increase RSpec/MultipleExpectations max to 8 (request/response verification) - Exclude spec/ from Style/BlockDelimiters, Layout/Multi*, Style/RegexpLiteral Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 16c7091 commit 8225ec9

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.rubocop.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,34 @@ Naming/AccessorMethodName:
4141
Naming/PredicateMethod:
4242
Exclude:
4343
- "lib/cloudlayerio/api/**/*"
44+
45+
# RuboCop-RSpec cops: relax for integration-style specs with multiple
46+
# assertions per example (testing request/response pairs requires >1 expect)
47+
RSpec/ExampleLength:
48+
Max: 20
49+
50+
RSpec/MultipleExpectations:
51+
Max: 8
52+
53+
# cloudlayerio uses lowercase gem name, not cloud_layerio (namespaced separately)
54+
RSpec/SpecFilePathFormat:
55+
Enabled: false
56+
57+
# Allow {..} blocks for multi-line stubs in specs
58+
Style/BlockDelimiters:
59+
Exclude:
60+
- "spec/**/*"
61+
62+
# Layout cops: allow chained stub_request calls without strict alignment
63+
Layout/MultilineMethodCallIndentation:
64+
Exclude:
65+
- "spec/**/*"
66+
67+
Layout/ParameterAlignment:
68+
Exclude:
69+
- "spec/**/*"
70+
71+
# Allow /regexp/ in specs (easier to read than %r{})
72+
Style/RegexpLiteral:
73+
Exclude:
74+
- "spec/**/*"

0 commit comments

Comments
 (0)