Repository navigation
Audit API Extractor error strings - #239
Merged
Merged
Conversation
Pete Gonzalez (octogonz)
requested review from
Dan Gaeta (dgaeta) and
Ian Clanton-Thuon (iclanton)
June 16, 2017 23:47
|
|
||
| if (!apiReferenceExpr.match(ApiDefinitionReference._exportRegEx)) { | ||
| throw reportError(`Api reference expression contains invalid characters: ${apiReferenceExpr}`); | ||
| throw reportError(`API item reference contains invalid characters: "${apiReferenceExpr}"`); |
Member
There was a problem hiding this comment.
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;' |
Member
There was a problem hiding this comment.
URL [](start = 88, length = 3)
Be consistent about capitalization - use 'URL' or 'url'. See the other messages in parseLinkTag, etc. #Closed
Collaborator
Author
There was a problem hiding this comment.
There was a problem hiding this comment.
|
|
||
| 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'); |
Member
There was a problem hiding this comment.
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) { | |||
Member
|
|
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I reviewed all the
reportWarning()andreportError()calls, and cleaned up the error messages.