Tags:
create new tag
, view all tags

Perl-Metrics

Great thanks again Hal - I didn't realise it would be so quick!

It looks like perl-metrics will be great for TWiki (http://twiki.org). We'd use TWiki's web environment to allow perl-metrics to be called from within a webpage.

So, one would write in a page the tag %PERLMETRICS{lib/My.pm}% - the output would be the result of running your script, presented in a web page in a name-value tagged table. This output could then be cross-tabulated against other modules as TWiki has the ability to cross-reference table sets. We can then get a measure of relative badness for all the modules in a perl application.

Our first target would be TWiki itself! (Functionally very rich it has some overly complex code).

Example output

From http://www.dunhackin.org/~eisen/perl-metrics/

===> perl-metrics.pl <===

code_with_comment                 2
subroutine_lines                115
blank_lines                      52
subroutines                       6
comment_lines                    37
pure_code                       106
total_lines                     197
DANGER -->  82 non-subroutine lines
code-to-comment ratio           2.7
avg lines per subroutine       16.7
longest subroutine: count_things (53 lines)

Email trail

On Fri, 15 Oct 2004 11:29:02 -0700, Hal Eisen wrote: > You are most welcome. The new version (0.04) is now up and available at
> http://www.dunhackin.org/~eisen/perl-metrics/
>
> Scroll on down to the bottom for the download section.
>
>
>
> Hal
>
> On Fri, 2004-10-15 at 10:48, Martin a t Cleaver.org wrote:
> > smile Thanks Hal!
> >
> > I really look forward to using it - I thought you would just point me
> > at something else big grin
> >
> > If you could send me an email when you are done I'd much appreciate it.
> >
> > Regards,
> > Martin
> >
> >
> > On Fri, 15 Oct 2004 10:37:54 -0700, Hal Eisen wrote:
> > > smile Thanks for your interest. I've been slacking. I'll fix it today.
> > >
> > > Hal
> > >
> > > On Fri, 2004-10-15 at 08:08, Martin a t Cleaver.org wrote:
> > > > Hi Eisen,
> > > > I'm looking for a perl metrics program, and came across this:
> > > > http://perlmonks.thepen.com/170245.html - do you know of anything that
> > > > works with Perl 5.6 onwards?
> > > >
> > > > Thanks,
> > > > Martin
> > > --
> > > http://www.builtonlinux.com - Built On Linux (IT Consulting)
> > > http://www.dunhackin.org/cgi-bin/blog.cgi
> > >
> > >
> > >
> --
> http://www.builtonlinux.com - Built On Linux (IT Consulting)
> http://www.dunhackin.org/cgi-bin/blog.cgi
>
>
>

-- Martin a t Cleaver.org (please don't reply to a t gmail)-- MartinCleaver - 15 Oct 2004

Topic revision: r2 - 2004-10-27 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.