Skip to content

Commit b767a41

Browse files
committed
Improve the message text for ae-missing-release-tag
1 parent f41319f commit b767a41

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

apps/api-extractor/src/api/ExtractorMessageId.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,37 +13,37 @@
1313
*/
1414
export const enum ExtractorMessageId {
1515
/**
16-
* The doc comment should not contain more than one release tag.
16+
* "The doc comment should not contain more than one release tag."
1717
*/
1818
ExtraReleaseTag = 'ae-extra-release-tag',
1919

2020
/**
21-
* This symbol has another declaration with a different release tag.
21+
* "This symbol has another declaration with a different release tag."
2222
*/
2323
DifferentReleaseTags = 'ae-different-release-tags',
2424

2525
/**
26-
* The symbol ___ is marked as ___, but its signature references ___ which is marked as ___.
26+
* "The symbol ___ is marked as ___, but its signature references ___ which is marked as ___."
2727
*/
2828
IncompatibleReleaseTags = 'ae-incompatible-release-tags',
2929

3030
/**
31-
* The doc comment should not contain more than one release tag.
31+
* "___ is exported by the package, but it is missing a release tag (`@alpha`, `@beta`, `@public`, or `@internal`)."
3232
*/
3333
MissingReleaseTag = 'ae-missing-release-tag',
3434

3535
/**
36-
* The `@packageDocumentation` comment must appear at the top of entry point *.d.ts file.
36+
* "The `@packageDocumentation` comment must appear at the top of entry point *.d.ts file."
3737
*/
3838
MisplacedPackageTag = 'ae-misplaced-package-tag',
3939

4040
/**
41-
* The symbol ___ needs to be exported by the entry point ___.
41+
* "The symbol ___ needs to be exported by the entry point ___."
4242
*/
4343
ForgottenExport = 'ae-forgotten-export',
4444

4545
/**
46-
* The name ___ should be prefixed with an underscore because the declaration is marked as `@internal`.
46+
* "The name ___ should be prefixed with an underscore because the declaration is marked as `@internal`."
4747
*/
4848
InternalMissingUnderscore = 'ae-internal-missing-underscore'
4949
}

apps/api-extractor/src/collector/Collector.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,8 @@ export class Collector {
523523

524524
this.messageRouter.addAnalyzerIssue(
525525
ExtractorMessageId.MissingReleaseTag,
526-
'Missing release tag',
526+
`"${entity.nameForEmit}" is exported by the package, but it is missing `
527+
+ `a release tag (@alpha, @beta, @public, or @internal)`,
527528
astSymbol
528529
);
529530
}

0 commit comments

Comments
 (0)