(tsconfigPath: string, seen: Set<string>, fileNames: Set<string>)
| 1509 | diagnostics.push(diagnostic("empty-tag", "@see must include a value")) |
| 1510 | } |
| 1511 | } |
| 1512 | const deprecated = values.get("deprecated")?.[0] ?? null |
| 1513 | if (deprecated === "") diagnostics.push(diagnostic("empty-tag", "@deprecated must include a message")) |
| 1514 | const since = values.get("since")?.[0] ?? null |
| 1515 | if ((scope === "declaration" || scope === "namespace" || scope === "namespace-declaration") && since === null) { |
| 1516 | diagnostics.push( |
| 1517 | diagnostic( |
| 1518 | "missing-tag", |
| 1519 | scope === "declaration" ? "Public JSDoc must include @since" : "Namespace JSDoc must include @since" |
| 1520 | ) |
| 1521 | ) |
| 1522 | } |
| 1523 | if (scope === "module" && since === null) { |
| 1524 | diagnostics.push(diagnostic("missing-tag", "Module JSDoc must include @since")) |
| 1525 | } |
no test coverage detected
searching dependent graphs…