09 Mar 2019 10:58:22 UTC
- Distribution: Code-Statistics
- Module version: 1.190680
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (2)
- Testers (262 / 0 / 0)
- KwaliteeBus factor: 1
- 96.93% Coverage
- License: unrestricted
- Perl: v5.6.3
- Activity24 month
- Download (24.52KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- SEE ALSO
- COPYRIGHT AND LICENSE
Code::Statistics - collects and reports statistics on perl code
On a terminal:
# collect statistics on the current directory and sub-directories, # then store results in codestat.out as json codestat collect # compile a report from codestat.out and print to the terminal codestat report
This is a framework to collect various metrics on a codebase and report them in a summarized manner. It is meant to be as extensible as possible.
The current collection workflows are as follow:
All files in the search path are collected.
Target constructs as defined by modules living under Code::Statistics::Target:: are collected for all files.
Metrics as defined by modules living under Code::Statistics::Metric:: are collected for all targets.
All data is dumped as json to
Data from the local
Data is grouped by target and for each target type the following is printed:
Averages of all non-location metrics.
Tables with the top ten and bottom ten for each significant metric.
This module acts mostly as a dispatcher and collects configuration data, then forwards it to actual action modules. These are the methods it currently provides.
Dispatches configuration to the statistics collector module.
Dispatches configuration to the statistics reporter module.
Possibly elevate metrics to objects to allow parametrized metrics during collection. Not sure if i want this or whether making more generic metrics is a better idea. http://gist.github.com/549132
Christian Walde <firstname.lastname@example.org>
Christian Walde has dedicated the work to the Commons by waiving all of his or her rights to the work worldwide under copyright law and all related or neighboring legal rights he or she had in the work, to the extent allowable by law.
Works under CC0 do not require attribution. When citing the work, you should not imply endorsement by the author.
Module Install Instructions
To install Code::Statistics, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Code::Statistics
For more information on module installation, please visit the detailed CPAN module installation guide.