On Sep 3, 2006, at 6:45 PM, Andy Lester wrote:
On Sep 3, 2006, at 8:42 PM, Matisse Enzer wrote:The module is (very tentively) named Perl::Code::Analyze and uses Adam Kennedy's PPI module for the real work.Excellent! Although I'm wondering if it could get folded into Perl::Critic some how...
I suppose it could, as part of (additional?) policies on "complexity".I do have uses for it outside of "criticism" though - being able to get day-to-day metrics in a large codebase, showing files, packages, subs, sizes of subroutines and other blocks, etc.
For example, I'd like something that says "95% of your subs are under 756 lines,
but 5% are over 2023 lines."
Maybe like this? I dunno yet...
subs foreach while
min. size: 1 3 9
avg. size: 345 27 34
max. size: 2765 713 123
95% < 756 401 87
90% < 423 217 87
75% < 221 198 87
50% < 115 93 76
25% < 96 93 10
10% < 80 45 10
5% < 47 4 10
-------------------------------------------------------
Matisse Enzer <[EMAIL PROTECTED]>
http://www.matisse.net/ - http://www.eigenstate.net/
smime.p7s
Description: S/MIME cryptographic signature
