Skip to content

Commit 606c82f

Browse files
authored
[1.2.0] Add Sorbet signature support and unify external type providers (#13)
1 parent d541654 commit 606c82f

33 files changed

+2257
-788
lines changed

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ AllCops:
1414

1515
Style/DoubleNegation:
1616
Enabled: false
17+
18+
Style/RedundantFetchBlock:
19+
Enabled: false

.rubocop_todo.yml

Lines changed: 20 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2026-03-20 20:43:43 UTC using RuboCop version 1.84.0.
3+
# on 2026-03-23 22:08:56 UTC using RuboCop version 1.84.0.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
@@ -13,36 +13,36 @@ Gemspec/DevelopmentDependencies:
1313
Exclude:
1414
- 'docscribe.gemspec'
1515

16-
# Offense count: 34
16+
# Offense count: 36
1717
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
1818
Metrics/AbcSize:
19-
Max: 113
19+
Max: 97
2020

2121
# Offense count: 4
2222
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
2323
# AllowedMethods: refine
2424
Metrics/BlockLength:
25-
Max: 85
25+
Max: 91
2626

2727
# Offense count: 1
2828
# Configuration parameters: CountBlocks, CountModifierForms.
2929
Metrics/BlockNesting:
3030
Max: 4
3131

32-
# Offense count: 3
32+
# Offense count: 4
3333
# Configuration parameters: CountComments, CountAsOne.
3434
Metrics/ClassLength:
35-
Max: 307
35+
Max: 413
3636

37-
# Offense count: 29
37+
# Offense count: 30
3838
# Configuration parameters: AllowedMethods, AllowedPatterns.
3939
Metrics/CyclomaticComplexity:
4040
Max: 41
4141

42-
# Offense count: 55
42+
# Offense count: 63
4343
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
4444
Metrics/MethodLength:
45-
Max: 122
45+
Max: 105
4646

4747
# Offense count: 6
4848
# Configuration parameters: CountComments, CountAsOne.
@@ -52,14 +52,14 @@ Metrics/ModuleLength:
5252
# Offense count: 8
5353
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
5454
Metrics/ParameterLists:
55-
Max: 9
55+
Max: 8
5656

5757
# Offense count: 23
5858
# Configuration parameters: AllowedMethods, AllowedPatterns.
5959
Metrics/PerceivedComplexity:
60-
Max: 45
60+
Max: 37
6161

62-
# Offense count: 9
62+
# Offense count: 8
6363
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
6464
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
6565
Naming/MethodParameterName:
@@ -77,46 +77,24 @@ Naming/PredicateMethod:
7777
Exclude:
7878
- 'lib/docscribe/inline_rewriter/collector.rb'
7979

80-
# Offense count: 54
80+
# Offense count: 58
8181
# Configuration parameters: IgnoredMetadata.
8282
RSpec/DescribeClass:
8383
Enabled: false
8484

85-
# Offense count: 113
85+
# Offense count: 128
8686
# Configuration parameters: CountAsOne.
8787
RSpec/ExampleLength:
88-
Max: 32
88+
Max: 34
8989

90-
# Offense count: 98
90+
# Offense count: 114
9191
RSpec/MultipleExpectations:
92-
Max: 6
93-
94-
# Offense count: 1
95-
# This cop supports unsafe autocorrection (--autocorrect-all).
96-
# Configuration parameters: AllowedRecursion, SkipCyclicSiblingEdges.
97-
SortedMethodsByCall/Waterfall:
98-
Exclude:
99-
- 'lib/docscribe/parsing.rb'
92+
Max: 7
10093

101-
# Offense count: 13
94+
# Offense count: 20
10295
# Configuration parameters: AllowedConstants.
10396
Style/Documentation:
104-
Exclude:
105-
- 'spec/**/*'
106-
- 'test/**/*'
107-
- 'lib/docscribe/cli.rb'
108-
- 'lib/docscribe/cli/config_builder.rb'
109-
- 'lib/docscribe/cli/init.rb'
110-
- 'lib/docscribe/cli/options.rb'
111-
- 'lib/docscribe/cli/run.rb'
112-
- 'lib/docscribe/config.rb'
113-
- 'lib/docscribe/config/emit.rb'
114-
- 'lib/docscribe/config/filtering.rb'
115-
- 'lib/docscribe/config/loader.rb'
116-
- 'lib/docscribe/config/rbs.rb'
117-
- 'lib/docscribe/config/sorting.rb'
118-
- 'lib/docscribe/config/template.rb'
119-
- 'lib/docscribe/config/utils.rb'
97+
Enabled: false
12098

12199
# Offense count: 3
122100
# This cop supports safe autocorrection (--autocorrect).
@@ -137,4 +115,4 @@ Style/SafeNavigationChainLength:
137115
# Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
138116
# URISchemes: http, https
139117
Layout/LineLength:
140-
Max: 147
118+
Max: 206

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,4 @@ CHECKSUMS
114114
yard (0.9.38) sha256=721fb82afb10532aa49860655f6cc2eaa7130889df291b052e1e6b268283010f
115115

116116
BUNDLED WITH
117-
4.0.5
117+
4.0.9

0 commit comments

Comments
 (0)