[Proposal] New mix task `mix stats`

52 views
Skip to first unread message

Devon Estes

unread,
Jun 26, 2017, 3:09:39 PM6/26/17
to elixir-lang-core
I like seeing stats about my projects, and for the life of me I can't find any tool already out there to calculate these stats for me. Personally I'd like to see it available for _any_ mix project and not limited to just being a part of Phoenix. I couldn't find any previous discussion about this feature on GitHub or here on the mailing list, so please excuse me if this has been brought up before.

I would envision this task giving users information on the total number of lines in their mix project, total number of lines of code, total number of modules, total number of functions, average number of functions per module, and average number of lines of code per function.

Cheers,
Devon

Louis Pilfold

unread,
Jun 26, 2017, 4:43:07 PM6/26/17
to elixir-lang-core
Hey Devon

This seems like a good candidate for a library. No reason it couldn't be implemented as a normal hex package :)

Cheers,
Louis

--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/278e9042-e7fa-4ffa-a81d-be590ed5f2c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michał Muskała

unread,
Jun 27, 2017, 9:42:37 AM6/27/17
to elixir-lang-core
This is not addressing the issue itself, but I recently made a PR to the cloc project to correctly count LOCs of Elixir code https://github.com/AlDanial/cloc. The first Perl I wrote in my life 😃

Michał.
Reply all
Reply to author
Forward
0 new messages