Skip to content

Audit API Extractor error strings - #239

Merged
Pete Gonzalez (octogonz) merged 6 commits into
masterfrom
pgonzal/ae-error-strings
Jun 19, 2017
Merged

Pete Gonzalez (octogonz) merged 6 commits into
masterfrom
pgonzal/ae-error-strings

Conversation

@octogonz

Copy link
Copy Markdown
Collaborator

I reviewed all the reportWarning() and reportError() calls, and cleaned up the error messages.


if (!apiReferenceExpr.match(ApiDefinitionReference._exportRegEx)) {
throw reportError(`Api reference expression contains invalid characters: ${apiReferenceExpr}`);
throw reportError(`API item reference contains invalid characters: "${apiReferenceExpr}"`);

@chackman Chris Hackmann (chackman) Jun 17, 2017 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API item reference [](start = 25, length = 18)

Please start with "The API item reference" #Closed

// Make sure only a single url is given
if (urlContent.length > 1 && urlContent[1] !== '' ) {
documentation.reportError('Invalid @link parameter, url must be a single string.');
documentation.reportError('The {@link} tag contains additional spaces after the URL;'

@chackman Chris Hackmann (chackman) Jun 17, 2017 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

URL [](start = 88, length = 3)

Be consistent about capitalization - use 'URL' or 'url'. See the other messages in parseLinkTag, etc. #Closed

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made it URL everywhere


In reply to: 122554191 [](ancestors = 122554191)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!


In reply to: 122771613 [](ancestors = 122771613,122554191)


if (releaseTagCount > 1) {
this.reportError('More than one release tag was specified');
this.reportError('More than one one release tag (@alpha, @beta, etc) was specified');

@chackman Chris Hackmann (chackman) Jun 17, 2017 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one one [](start = 34, length = 7)

There's more than one "one" in this message ;-) #Closed

@@ -195,7 +197,8 @@ export default class DocElementParser {
if (linkDocElement && pipeSplitContent.length > 1) {
const displayTextParts: string[] = pipeSplitContent[1].match(this._wordRegEx);
if (displayTextParts && displayTextParts[0].length !== pipeSplitContent[1].length) {

@octogonz Pete Gonzalez (octogonz) Jun 17, 2017 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dagaeta Not sure what this code was actually trying to validate #Resolved

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We discussed it. I will address it in a separate PR


In reply to: 122555107 [](ancestors = 122555107)

@chackman

Copy link
Copy Markdown
Member

:shipit:

@octogonz

Pete Gonzalez (octogonz) commented Jun 19, 2017 •

Copy link
Copy Markdown
Collaborator Author

:shipit:

Approved with PullApprove Approved with PullApprove

@octogonz
Pete Gonzalez (octogonz) merged commit 930b3cc into master Jun 19, 2017
@octogonz
Pete Gonzalez (octogonz) deleted the pgonzal/ae-error-strings branch July 3, 2017 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants