You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fix extra "test" added in diagnostic warning for curating modules
- Use SourceLocations test bundles instead of creating one
- Change test article descriptions to add more context/information
- Verify that relation is created between root and module in ancestor test
- Change `hasTechnologyRoot` to not rely on subtle behavior
lethasTechnologyRoot=isTechnologyRoot(nodeReference) || context.pathsTo(nodeReference).contains { path in
246
+
guardletroot= path.first else{returnfalse}
247
+
returnisTechnologyRoot(root)
248
248
}
249
249
250
250
if !hasTechnologyRoot {
251
-
problems.append(Problem(diagnostic:Diagnostic(source:source(), severity:.warning, range:range(), identifier:"org.swift.docc.ModuleCuration", summary:"Linking to \((link.destination ??"").singleQuoted) from a Topics group in \(nodeReference.absoluteString.singleQuoted) isn't allowed", explanation:"The former is a module test, and modules only exist at the root"), possibleSolutions:[]))
251
+
problems.append(Problem(diagnostic:Diagnostic(source:source(), severity:.warning, range:range(), identifier:"org.swift.docc.ModuleCuration", summary:"Linking to \((link.destination ??"").singleQuoted) from a Topics group in \(nodeReference.absoluteString.singleQuoted) isn't allowed", explanation:"The former is a module, and modules only exist at the root"), possibleSolutions:[]))
0 commit comments