Skip to content

Linter show more than one rule#11

Merged
philsturgeon merged 2 commits intowework:masterfrom
jblazek:feat/6-show-multiple-results
Feb 26, 2018
Merged

Linter show more than one rule#11
philsturgeon merged 2 commits intowework:masterfrom
jblazek:feat/6-show-multiple-results

Conversation

@jblazek
Copy link
Copy Markdown
Contributor

@jblazek jblazek commented Feb 26, 2018

Updated to collect lint errors and return all instead of just the first one.

Stopped the should exceptions from bubbling up, these are collected along with the specific rule that failed and other relevant context info. These results get returned as a new options property lintResults.

Let me know if you wanted anything changed up. The schema validation will still only return the first error, but that could be handled in another issue following a similar pattern.

Fixes #6

Enabled output of multiple lint rule validation errors. Previously, only
the first error was displayed.
Changed test fixture to check rule names that did not pass linting
against and expected set of rule names.
Copy link
Copy Markdown
Contributor

@philsturgeon philsturgeon left a comment

Choose a reason for hiding this comment

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

You are unstoppable! Doing amazing work, thank you so much. :)

@philsturgeon philsturgeon merged commit ace9bb4 into wework:master Feb 26, 2018
@MikeRalphson
Copy link
Copy Markdown
Contributor

Excellent, and nicely implemented!

@jblazek jblazek deleted the feat/6-show-multiple-results branch February 26, 2018 13:23
@erunion
Copy link
Copy Markdown
Contributor

erunion commented Feb 26, 2018

Oh expectedRuleErrors is a great refactor!

@philsturgeon philsturgeon mentioned this pull request Feb 26, 2018
@jblazek
Copy link
Copy Markdown
Contributor Author

jblazek commented Feb 26, 2018

thanks for the feedback! I'll be installing the new version and working on getting it included in CI.

@philsturgeon
Copy link
Copy Markdown
Contributor

We need to take care of another TODO item, which is multiple output formats. We need to putut to something like JUnit so travis, circle, etc are happy showing the specific failures. https://relishapp.com/cucumber/cucumber/docs/formatters/junit-output-formatter

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