Skip to content

Instantly share code, notes, and snippets.

@dann
Created December 24, 2011 04:54
Show Gist options
  • Save dann/1516349 to your computer and use it in GitHub Desktop.
Save dann/1516349 to your computer and use it in GitHub Desktop.
"measureperl lib" result for Perl::Metrics::Lite
#======================================#
# File Metrics #
#======================================#
.---------------------------------------------------------------------------------------.
| path | loc | subs | packages |
+---------------------------------------------------------------+-----+------+----------+
| lib/Perl/Metrics/Lite.pm | 46 | 3 | 1 |
| lib/Perl/Metrics/Lite/Analysis.pm | 88 | 10 | 1 |
| lib/Perl/Metrics/Lite/Analysis/DocumentFactory.pm | 47 | 3 | 1 |
| lib/Perl/Metrics/Lite/Analysis/File.pm | 155 | 15 | 1 |
| lib/Perl/Metrics/Lite/Analysis/File/Plugin/Lines.pm | 10 | 2 | 1 |
| lib/Perl/Metrics/Lite/Analysis/File/Plugin/NumberOfMethods.pm | 12 | 2 | 1 |
| lib/Perl/Metrics/Lite/Analysis/File/Plugin/Packages.pm | 19 | 2 | 1 |
| lib/Perl/Metrics/Lite/Analysis/Sub/Plugin/LineNumber.pm | 10 | 2 | 1 |
| lib/Perl/Metrics/Lite/Analysis/Sub/Plugin/Lines.pm | 13 | 2 | 1 |
| lib/Perl/Metrics/Lite/Analysis/Sub/Plugin/MccabeComplexity.pm | 102 | 4 | 1 |
| lib/Perl/Metrics/Lite/Analysis/Util.pm | 63 | 4 | 1 |
| lib/Perl/Metrics/Lite/FileFinder.pm | 72 | 6 | 1 |
| lib/Perl/Metrics/Lite/Report/CheckStyle.pm | 93 | 6 | 1 |
| lib/Perl/Metrics/Lite/Report/Text.pm | 82 | 8 | 1 |
'---------------------------------------------------------------+-----+------+----------'
#======================================#
# Subroutine Metrics #
#======================================#
Path: lib/Perl/Metrics/Lite/FileFinder.pm
.-----------------------------------------------------------.
| name | loc | line_number | mccabe_complexity |
+-------------------+-----+-------------+-------------------+
| new | 5 | 17 | 1 |
| find_files | 10 | 23 | 4 |
| list_perl_files | 13 | 34 | 3 |
| should_be_skipped | 5 | 51 | 2 |
| is_perl_file | 11 | 57 | 6 |
| _has_perl_shebang | 12 | 69 | 6 |
'-------------------+-----+-------------+-------------------'
Path: lib/Perl/Metrics/Lite/Analysis/Sub/Plugin/Lines.pm
.-------------------------------------------------.
| name | loc | line_number | mccabe_complexity |
+---------+-----+-------------+-------------------+
| init | 2 | 5 | 1 |
| measure | 6 | 8 | 1 |
'---------+-----+-------------+-------------------'
Path: lib/Perl/Metrics/Lite/Analysis/Sub/Plugin/LineNumber.pm
.-------------------------------------------------.
| name | loc | line_number | mccabe_complexity |
+---------+-----+-------------+-------------------+
| init | 1 | 5 | 1 |
| measure | 4 | 7 | 1 |
'---------+-----+-------------+-------------------'
Path: lib/Perl/Metrics/Lite/Analysis.pm
.----------------------------------------------------.
| name | loc | line_number | mccabe_complexity |
+------------+-----+-------------+-------------------+
| new | 14 | 16 | 3 |
| files | 4 | 31 | 1 |
| data | 4 | 36 | 1 |
| file_count | 4 | 41 | 1 |
| file_stats | 4 | 46 | 1 |
| main_stats | 4 | 51 | 1 |
| subs | 4 | 56 | 1 |
| sub_stats | 9 | 61 | 4 |
| sub_count | 4 | 71 | 1 |
| _init | 24 | 76 | 2 |
'------------+-----+-------------+-------------------'
Path: lib/Perl/Metrics/Lite/Analysis/File/Plugin/NumberOfMethods.pm
.-------------------------------------------------.
| name | loc | line_number | mccabe_complexity |
+---------+-----+-------------+-------------------+
| init | 1 | 5 | 1 |
| measure | 7 | 7 | 2 |
'---------+-----+-------------+-------------------'
Path: lib/Perl/Metrics/Lite.pm
.-------------------------------------------------------.
| name | loc | line_number | mccabe_complexity |
+---------------+-----+-------------+-------------------+
| new | 10 | 12 | 2 |
| analyze_files | 21 | 23 | 6 |
| report | 5 | 45 | 1 |
'---------------+-----+-------------+-------------------'
Path: lib/Perl/Metrics/Lite/Analysis/File/Plugin/Lines.pm
.-------------------------------------------------.
| name | loc | line_number | mccabe_complexity |
+---------+-----+-------------+-------------------+
| init | 1 | 5 | 1 |
| measure | 5 | 7 | 1 |
'---------+-----+-------------+-------------------'
Path: lib/Perl/Metrics/Lite/Analysis/File/Plugin/Packages.pm
.-------------------------------------------------.
| name | loc | line_number | mccabe_complexity |
+---------+-----+-------------+-------------------+
| init | 1 | 5 | 1 |
| measure | 14 | 7 | 4 |
'---------+-----+-------------+-------------------'
Path: lib/Perl/Metrics/Lite/Analysis/Util.pm
.--------------------------------------------------------------.
| name | loc | line_number | mccabe_complexity |
+----------------------+-----+-------------+-------------------+
| get_node_length | 21 | 12 | 14 |
| get_packages | 14 | 36 | 4 |
| prune_non_code_lines | 10 | 57 | 3 |
| is_ref | 8 | 69 | 5 |
'----------------------+-----+-------------+-------------------'
Path: lib/Perl/Metrics/Lite/Report/CheckStyle.pm
.----------------------------------------------------------------------------.
| name | loc | line_number | mccabe_complexity |
+------------------------------------+-----+-------------+-------------------+
| new | 15 | 8 | 3 |
| report | 6 | 25 | 1 |
| create_checkstyle_xml | 11 | 34 | 2 |
| file_xml_fragment | 18 | 47 | 4 |
| sub_lines_xml_fragment | 18 | 70 | 1 |
| sub_mccabe_complexity_xml_fragment | 18 | 89 | 1 |
'------------------------------------+-----+-------------+-------------------'
Path: lib/Perl/Metrics/Lite/Analysis/Sub/Plugin/MccabeComplexity.pm
.-----------------------------------------------------.
| name | loc | line_number | mccabe_complexity |
+-------------+-----+-------------+-------------------+
| init | 11 | 58 | 3 |
| measure | 19 | 71 | 10 |
| hashify | 4 | 95 | 2 |
| is_hash_key | 16 | 100 | 5 |
'-------------+-----+-------------+-------------------'
Path: lib/Perl/Metrics/Lite/Report/Text.pm
.-------------------------------------------------------------------------.
| name | loc | line_number | mccabe_complexity |
+---------------------------------+-----+-------------+-------------------+
| new | 6 | 6 | 1 |
| report | 7 | 13 | 1 |
| report_file_stats | 19 | 23 | 3 |
| _print_file_stats_report_header | 5 | 44 | 1 |
| report_sub_stats | 8 | 50 | 2 |
| _print_sub_stats_report_header | 5 | 59 | 1 |
| _report_sub_metrics | 19 | 65 | 3 |
| _create_table | 7 | 87 | 2 |
'---------------------------------+-----+-------------+-------------------'
Path: lib/Perl/Metrics/Lite/Analysis/DocumentFactory.pm
.--------------------------------------------------------------------.
| name | loc | line_number | mccabe_complexity |
+----------------------------+-----+-------------+-------------------+
| create_normalized_document | 20 | 10 | 8 |
| _create_ppi_document | 12 | 33 | 3 |
| _make_pruned_document | 7 | 47 | 1 |
'----------------------------+-----+-------------+-------------------'
Path: lib/Perl/Metrics/Lite/Analysis/File.pm
.--------------------------------------------------------------.
| name | loc | line_number | mccabe_complexity |
+----------------------+-----+-------------+-------------------+
| new | 7 | 28 | 1 |
| _init | 20 | 36 | 3 |
| all_counts | 11 | 63 | 1 |
| analyze_file | 12 | 75 | 3 |
| measure_file_metrics | 13 | 91 | 6 |
| metric_name | 7 | 105 | 2 |
| _decamelize | 11 | 113 | 2 |
| path | 4 | 125 | 1 |
| main_stats | 4 | 130 | 1 |
| subs | 4 | 135 | 1 |
| packages | 4 | 140 | 1 |
| lines | 4 | 145 | 1 |
| analyze_subs | 13 | 150 | 4 |
| measure_sub_metrics | 13 | 166 | 6 |
| add_basic_sub_info | 5 | 180 | 1 |
'----------------------+-----+-------------+-------------------'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment