Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Code Inspection: minor fixes & more unit tests #7650

Merged
merged 1 commit into from
May 9, 2014

Conversation

peterflynn
Copy link
Member

  • Fix bug: if one linter returns errors and another returns errors:[], the no-errors linter is shown in the panel as an empty heading. (Bug doesn't happen if it returned null instead; but both are valid ways of indicating
    zero errors).
  • Improve docs on register() - more concise, more detail on how to indicate zero errors
  • Add unit tests for the bug fixed above plus several more async linting cases that were fixed late in PR Fix #5137 async linting #6530
  • Fix mislabeled existing unit test for reject()ing async linters
  • Fix stray whitespace that snuck into merge c3411bb

- Fix bug: if one linter returns errors and another returns errors:[], the
no-errors linter is shown in the panel as an empty heading. (Bug doesn't
happen if it returned null instead; but both are valid ways of indicating
zero errors).
- Improve docs on register() - more concise, more detail on how to indicate
zero errors
- Add unit tests for the bug fixed above plus several more async linting
cases that were fixed late in PR #6530
- Fix mislabeled existing unit test for reject()ing async linters
- Fix stray whitespace that snuck into merge c3411bb
@njx
Copy link
Contributor

njx commented Apr 28, 2014

@dangoor

@@ -383,7 +383,7 @@ define(function (require, exports, module) {
aborted = true;
}

if (inspectionResult.result.errors) {
if (inspectionResult.result.errors.length) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any chance inspectionResult.result.errors could be undefined/null?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ahh, I see. The doc string specifically states that errors must be non-null. OK.

@dangoor
Copy link
Contributor

dangoor commented May 9, 2014

Changes look good. Merging.

dangoor added a commit that referenced this pull request May 9, 2014
Code Inspection: minor fixes & more unit tests
@dangoor dangoor merged commit 143aac5 into master May 9, 2014
@dangoor dangoor deleted the pflynn/lint-tests-fixes branch May 9, 2014 14:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants