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

Output code warnings in yellow instead of red #3402

Merged
merged 2 commits into from
Oct 27, 2017
Merged

Conversation

jez9999
Copy link
Contributor

@jez9999 jez9999 commented Oct 26, 2017

Addresses issue #3401.

@@ -67,7 +67,7 @@ export class Formatter extends AbstractFormatter {
}

let failureString = failure.getFailure();
failureString = chalk.red(failureString);
failureString = failure.getRuleSeverity() === "warning" ? chalk.yellow(failureString) : chalk.red(failureString);
Copy link
Contributor

Choose a reason for hiding this comment

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

can you please add a test for this in test/formatters/codeFrameFormatterTests.ts?

@jez9999
Copy link
Contributor Author

jez9999 commented Oct 26, 2017

Added test.

@ajafff ajafff merged commit 965ecb5 into palantir:master Oct 27, 2017
@ajafff
Copy link
Contributor

ajafff commented Oct 27, 2017

thanks @jez9999

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants