Skip to content

Commit 763e186

Browse files
committed
resolve #98, remove unhelpful diagnostic
1 parent b1b16fe commit 763e186

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

Sources/SymbolGraphLinker/StaticLinker.swift

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -578,19 +578,6 @@ extension StaticLinker
578578
fallthrough
579579
}
580580

581-
diagnostic:
582-
if case nil = supplement.parsed.metadata.merge
583-
{
584-
guard
585-
case nil = supplement.parsed.overview, supplement.parsed.details.isEmpty
586-
else
587-
{
588-
self.tables.diagnostics[supplement.source] =
589-
SupplementError.implicitConcatenation
590-
break diagnostic
591-
}
592-
}
593-
594581
let body:MarkdownDocumentation = comment.parse(
595582
using: self.doccommentParser,
596583
with: &self.tables.diagnostics)

Sources/SymbolGraphLinker/Supplements/StaticLinker.SupplementError.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ extension StaticLinker
55
{
66
enum SupplementError:Error, Equatable, Sendable
77
{
8-
case implicitConcatenation
98
case multiple
109
case untitled
1110
}
@@ -19,12 +18,6 @@ extension StaticLinker.SupplementError:Diagnostic
1918
{
2019
switch self
2120
{
22-
case .implicitConcatenation:
23-
output[.warning] = """
24-
markdown supplement extends a symbol that already has a documentation comment, \
25-
and no merge behavior was specified
26-
"""
27-
2821
case .multiple:
2922
output[.warning] = """
3023
markdown supplement extends a symbol that already has a supplement

0 commit comments

Comments
 (0)