Skip to content
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

fix(cli/lint): don't use gray in diagnostics output for visibility #11702

Merged
merged 2 commits into from
Aug 14, 2021

Conversation

magurotuna
Copy link
Member

This commit changes output color of the linter to not use gray for visibility on dark backgrounds.

Fixes denoland/deno_lint#788

@@ -308,9 +307,9 @@ pub fn format_diagnostic(
message_line,
Copy link
Member

Choose a reason for hiding this comment

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

While you looking into it, could you rewrite this conditional? Lots of duplication and not very readable.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, how about this? 99a83ff

Copy link
Member

Choose a reason for hiding this comment

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

That works, thanks!

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM

@bartlomieju bartlomieju merged commit a1c5fef into denoland:main Aug 14, 2021
@magurotuna magurotuna deleted the dont-use-gray-in-linter branch September 11, 2021 02:13
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.

Deno lint error messages are not easily visible in github actions
2 participants