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

FeatureComplete/Check: improve usability/readability of reporting in CLI #95

Merged
merged 2 commits into from
May 27, 2022

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented May 27, 2022

FeatureComplete/Check: improve individual error/warning display

  • Align the various parts of the error/warning messages for improved readability.
  • Make the "horizontal rule" above the summary match the length of the first two "columns".
  • Don't have a period . after the file name as it may confuse CLI interfaces which allow for clicking through to the file.

Tested via the (adjusted) existing unit tests.

FeatureComplete/Check: improve error/warning summary display

Improve error/warning summary:

  • Display the correct singular "error"/"warning" vs plural "errors"/"warnings" depending on the number of errors/warnings found.
  • Only mention "warnings" when not in quiet mode. I.e. when warnings are actually a possibility.
  • Colorize the "# errors" and "# warnings" part of the summary message.
  • Minor punctuation fix for the summary.

Tested via the (adjusted) existing unit tests + added specific tests for the coloring of the summary to the ColorTest file.

jrfnl added 2 commits May 28, 2022 00:37
* Align the various parts of the error/warning messages for improved readability.
* Make the "horizontal rule" above the summary match the length of the first two "columns".
* Don't have a period `.` after the file name as it may confuse CLI interfaces which allow for clicking through to the file.

Tested via the (adjusted) existing unit tests.
Improve error/warning summary:
* Display the correct singular "error"/"warning" vs plural "errors"/"warnings" depending on the number of errors/warnings found.
* Only mention "warnings" when not in quiet mode. I.e. when warnings are actually a possibility.
* Colorize the "# errors" and "# warnings" part of the summary message.
* Minor punctuation fix for the summary.

Tested via the (adjusted) existing unit tests + added specific tests for the coloring of the summary to the `ColorTest` file.
@jrfnl jrfnl added this to the 2.0.0 milestone May 27, 2022
@jrfnl jrfnl merged commit 4d9a222 into develop May 27, 2022
@jrfnl jrfnl deleted the feature-complete/check-improve-reporting-in-cli branch May 27, 2022 22:42
@jrfnl jrfnl modified the milestones: 1.2.0, 2.0.0 Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant