forked from ya-luotao/e2b-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.rubocop.yml
More file actions
70 lines (62 loc) · 1.79 KB
/
Copy path.rubocop.yml
File metadata and controls
70 lines (62 loc) · 1.79 KB
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
inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 3.1
NewCops: enable
SuggestExtensions: false
Exclude:
- 'pkg/**/*'
- 'examples/**/*'
- 'vendor/**/*'
- '.github/**/*'
plugins:
- rubocop-rspec
# SDK code carries long YARD comments, many-keyword signatures, and nested modules.
# The Metrics department's defaults produce noise without actionable signal here.
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Metrics/ParameterLists:
Enabled: false
# Each E2B service / model class is documented at the module level; per-class YARD
# repetition is unhelpful.
Style/Documentation:
Enabled: false
# Match the existing codebase, which is consistently double-quoted (incl. gemspec).
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes
# Dev deps are declared in the gemspec by design for gem distribution.
Gemspec/DevelopmentDependencies:
EnforcedStyle: gemspec
# RSpec cops that fire on legitimate testing patterns in this suite (long examples
# with intentional multi-expectation flows around stubbed Faraday transports).
RSpec/ExampleLength:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/MessageSpies:
Enabled: false
RSpec/StubbedMock:
Enabled: false
RSpec/AnyInstance:
Enabled: false
RSpec/SubjectStub:
Enabled: false
RSpec/NestedGroups:
Max: 5
RSpec/SpecFilePathFormat:
Enabled: false
# Layout/LineLength is set in .rubocop_todo.yml to the current ceiling so the codebase
# is green out of the gate. Tighten it (and shorten the offenders) over time.