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

Makes the Danger title come first, not last, in the std out #569

Merged
merged 2 commits into from
Apr 25, 2018
Merged

Conversation

orta
Copy link
Member

@orta orta commented Apr 20, 2018

screen shot 2018-04-20 at 9 33 34 am

felt backwards

@sunshinejr
Copy link
Member

sunshinejr commented Apr 20, 2018

Hmm, theoretically yes, but right now when you have a long build log it is a lot easier (at least for me) to find the summary - it's near end so you can quickly see the results.

Edit: maybe a title before the log & summary at the end would be a good alternative?

@orta
Copy link
Member Author

orta commented Apr 20, 2018

I agree, was thinking about this afterward, probably worth doing a check how many lines of text are in the violations, and if it's over ~10 have the message at the bottom

@sunshinejr
Copy link
Member

Yeah, I like it more 👍


const allMessages = [...fails, ...warnings, ...messages, ...markdowns].map(m => m.message)
const oneMessage = allMessages.join("\n")
const longMessage = oneMessage.split("\n").length > 30
Copy link
Member Author

Choose a reason for hiding this comment

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

My laptop full screen is 40 lines, so this is 3/4 of that

Copy link
Member

Choose a reason for hiding this comment

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

cool 👍

@orta orta merged commit 67ed2ba into master Apr 25, 2018
@orta orta deleted the std_order branch April 25, 2018 11:28
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