Skip to content

Commit 90bccd8

Browse files
committed
PR feedback
1 parent ca7a2f7 commit 90bccd8

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export class ExtractorMessage {
108108
* src/folder/File.ts:123:4 - (ae-extra-release-tag) The doc comment should not contain more than one release tag.
109109
* ```
110110
*/
111-
public formatMessageAndLocation(workingPackageFolderPath: string): string {
111+
public formatMessageWithLocation(workingPackageFolderPath: string): string {
112112
let result: string = '';
113113

114114
if (this.sourceFilePath) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,10 +322,10 @@ export class MessageRouter {
322322
const reportingRule: IReportingRule = this._getRuleForMessage(message);
323323
switch (reportingRule.logLevel) {
324324
case ExtractorMessageLogLevel.Error:
325-
logger.logError('Error: ' + message.formatMessageAndLocation(workingPackageFolderPath));
325+
logger.logError('Error: ' + message.formatMessageWithLocation(workingPackageFolderPath));
326326
break;
327327
case ExtractorMessageLogLevel.Warning:
328-
logger.logWarning('Warning: ' + message.formatMessageAndLocation(workingPackageFolderPath));
328+
logger.logWarning('Warning: ' + message.formatMessageWithLocation(workingPackageFolderPath));
329329
break;
330330
}
331331
}

‎apps/api-extractor/src/generators/ReviewFileGenerator.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export class ReviewFileGenerator {
8181
ReviewFileGenerator._writeLineAsComments(output, 'Warnings were encountered during analysis:');
8282
ReviewFileGenerator._writeLineAsComments(output, '');
8383
for (const unassociatedMessage of unassociatedMessages) {
84-
ReviewFileGenerator._writeLineAsComments(output, unassociatedMessage.formatMessageAndLocation(
84+
ReviewFileGenerator._writeLineAsComments(output, unassociatedMessage.formatMessageWithLocation(
8585
collector.workingPackage.packageFolder
8686
));
8787
}

0 commit comments

Comments
 (0)