-
Notifications
You must be signed in to change notification settings - Fork 84
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 formatting for steep stats
#300
Comments
Hi @rramsden, I use the following custom rake task: namespace :steep do
desc "Show the Steep coverage report"
task :stats do
sh "bundle exec steep stats --log-level=fatal | column -s, -t | sort --key=7 --sort=numeric"
end
end I think it most flexible to use existing UNIX commands. |
Hi @rramsden, I was assuming that we can use It is almost just because I don't want to implement the column printing function. Do you know any good gem to do it? |
Hey everyone!
I've been using these two: https://github.com/tj/terminal-table and https://github.com/piotrmurach/tty-table. |
@rramsden, @ybiquitous, @palkan, Finally implemented with |
@soutaro Great! I think it is what we want. Thanks to #360, the hack using
|
Just a suggestion, feel free to close this.
Would be great to format the results of
steep stats
into something more human readable.On the evilmartian blog post on RBS and Steep this was also a surprise to the author that the output was in CSV format.
Something more like the following would be great (author ended up using
awk
to format the results):Maybe something like the following:
Where
pretty
is formatted table output like above. It should also be the default formatter and multiple formats can be supported by using--format=
option.I'm happy to work on something like this if we can agree on what it would look like.
What does everyone think?
Thanks
The text was updated successfully, but these errors were encountered: