-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CHANGE @W-17053004@ Polished run command output #1669
Conversation
57f700b
to
6f2a293
Compare
@@ -123,8 +114,7 @@ export class ResultsTableDisplayer extends AbstractResultsDisplayer { | |||
} | |||
}); | |||
|
|||
this.display.displayLog(getMessage(BundleName.ResultsViewer, 'summary.table.found-results', [ | |||
violations.length, this.countUniqueFiles(violations), parentFolder])); | |||
this.display.displayLog(getMessage(BundleName.ResultsViewer, 'summary.table.results-relative-to', [parentFolder])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to show this if there are no results?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't show if there are no results. The method is only called when there are results to show.
6f2a293
to
854e2aa
Compare
854e2aa
to
e50d4f9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New messages are the still-relevant ones from the now-deleted run-summary-viewer.md
.
@@ -75,6 +75,64 @@ export class RulesActionSummaryViewer extends AbstractActionSummaryViewer { | |||
this.display.displayLog(indent(getMessage(BundleName.ActionSummaryViewer, 'rules-action.rules-item', [ruleCountForEngine, engineName]))); | |||
} | |||
} | |||
} | |||
|
|||
export class RunActionSummaryViewer extends AbstractActionSummaryViewer { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code is almost identical to the code from RunSummaryViewer.ts
, but it's different to accomplish the goals of the story.
This PR does the following:
Found X violations across Y files
message to the Summary portion of the output instead of the View portion.detail
format no longer has a message.table
format just says what the paths are relative to.