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

Improve json linter log readability #39597

Merged
merged 2 commits into from
Apr 16, 2020

Conversation

nphyx
Copy link
Contributor

@nphyx nphyx commented Apr 15, 2020

Summary

SUMMARY: Build "makes json linter feedback more readable"

Purpose of change

Personal peeve: "Unformatted" always sounds to me like "this file is not formatted correctly". Also inconsistency in positioning of the filename made it harder to scan the log for problems.

Describe the solution

  • changed "Unformatted" to "Well formatted"
  • put both "Well formatted" and "needs linting" at the beginning of the line
  • colorized both messages

Screenshot:
Screenshot from 2020-04-15 15-24-56

Describe alternatives you've considered

Dealing with it.

Testing

Messed up the formatting in a file & ran make style-json

Additional context

This may be a shitty/clumsy/non-cross-platform way to do this (I don't know if the isatty check works in windows/macos/whatever, or at all). If there's a better way let me know and I'll fix it.

@kevingranade kevingranade merged commit d67db55 into CleverRaven:master Apr 16, 2020
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.

2 participants