Skip to content

Commit e6804ae

Browse files
committed
Rename "ae-inconsistent-release-tags" to "ae-different-release-tags", to avoid confusion with the new "ae-incompatible-release-tags". The "inconsistency" here is really just whether the tags are the same or not.
1 parent afbca95 commit e6804ae

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const enum ExtractorMessageId {
2020
/**
2121
* This symbol has another declaration with a different release tag.
2222
*/
23-
InconsistentReleaseTags = 'ae-inconsistent-release-tags',
23+
DifferentReleaseTags = 'ae-different-release-tags',
2424

2525
/**
2626
* The doc comment should not contain more than one release tag.
@@ -40,7 +40,8 @@ export const enum ExtractorMessageId {
4040

4141
export const allExtractorMessageIds: Set<string> = new Set<string>([
4242
'ae-extra-release-tag',
43-
'ae-inconsistent-release-tags',
43+
'ae-different-release-tags',
4444
'ae-missing-release-tag',
45-
'ae-misplaced-package-tag'
45+
'ae-misplaced-package-tag',
46+
'ae-forgotten-export'
4647
]);

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ export class Collector {
493493
if (effectiveReleaseTag !== ReleaseTag.None && effectiveReleaseTag !== declaredReleaseTag) {
494494
if (!astSymbol.isExternal) { // for now, don't report errors for external code
495495
this.messageRouter.addAnalyzerIssue(
496-
ExtractorMessageId.InconsistentReleaseTags,
496+
ExtractorMessageId.DifferentReleaseTags,
497497
'This symbol has another declaration with a different release tag',
498498
astDeclaration
499499
);
@@ -553,34 +553,34 @@ export class Collector {
553553
const modifierTagSet: tsdoc.StandardModifierTagSet = parserContext.docComment.modifierTagSet;
554554

555555
let declaredReleaseTag: ReleaseTag = ReleaseTag.None;
556-
let inconsistentReleaseTags: boolean = false;
556+
let extraReleaseTags: boolean = false;
557557

558558
if (modifierTagSet.isPublic()) {
559559
declaredReleaseTag = ReleaseTag.Public;
560560
}
561561
if (modifierTagSet.isBeta()) {
562562
if (declaredReleaseTag !== ReleaseTag.None) {
563-
inconsistentReleaseTags = true;
563+
extraReleaseTags = true;
564564
} else {
565565
declaredReleaseTag = ReleaseTag.Beta;
566566
}
567567
}
568568
if (modifierTagSet.isAlpha()) {
569569
if (declaredReleaseTag !== ReleaseTag.None) {
570-
inconsistentReleaseTags = true;
570+
extraReleaseTags = true;
571571
} else {
572572
declaredReleaseTag = ReleaseTag.Alpha;
573573
}
574574
}
575575
if (modifierTagSet.isInternal()) {
576576
if (declaredReleaseTag !== ReleaseTag.None) {
577-
inconsistentReleaseTags = true;
577+
extraReleaseTags = true;
578578
} else {
579579
declaredReleaseTag = ReleaseTag.Internal;
580580
}
581581
}
582582

583-
if (inconsistentReleaseTags) {
583+
if (extraReleaseTags) {
584584
if (!astDeclaration.astSymbol.isExternal) { // for now, don't report errors for external code
585585
this.messageRouter.addAnalyzerIssue(
586586
ExtractorMessageId.ExtraReleaseTag,

0 commit comments

Comments
 (0)