Skip to content

Instantly share code, notes, and snippets.

@dann
Created December 24, 2011 05:05
Show Gist options
  • Save dann/1516379 to your computer and use it in GitHub Desktop.
Save dann/1516379 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 | 113 | 6 | 1 |
| lib/Perl/Metrics/Lite/Analysis/Util.pm | 73 | 6 | 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 | 123 | 12 | 1 |
'---------------------------------------------------------------+-----+------+----------'
#======================================#
# Subroutine Metrics #
#======================================#
Path: lib/Perl/Metrics/Lite/FileFinder.pm
.---------------------------------------------.
| method | loc | mccabe_complexity |
+-------------------+-----+-------------------+
| new | 5 | 1 |
| find_files | 10 | 4 |
| list_perl_files | 13 | 3 |
| should_be_skipped | 5 | 2 |
| is_perl_file | 11 | 6 |
| _has_perl_shebang | 12 | 6 |
'-------------------+-----+-------------------'
Path: lib/Perl/Metrics/Lite/Analysis/Sub/Plugin/Lines.pm
.-----------------------------------.
| method | loc | mccabe_complexity |
+---------+-----+-------------------+
| init | 2 | 1 |
| measure | 6 | 1 |
'---------+-----+-------------------'
Path: lib/Perl/Metrics/Lite/Analysis/Sub/Plugin/LineNumber.pm
.-----------------------------------.
| method | loc | mccabe_complexity |
+---------+-----+-------------------+
| init | 1 | 1 |
| measure | 4 | 1 |
'---------+-----+-------------------'
Path: lib/Perl/Metrics/Lite/Analysis.pm
.--------------------------------------.
| method | loc | mccabe_complexity |
+------------+-----+-------------------+
| new | 14 | 3 |
| files | 4 | 1 |
| data | 4 | 1 |
| file_count | 4 | 1 |
| file_stats | 4 | 1 |
| main_stats | 4 | 1 |
| subs | 4 | 1 |
| sub_stats | 9 | 4 |
| sub_count | 4 | 1 |
| _init | 24 | 2 |
'------------+-----+-------------------'
Path: lib/Perl/Metrics/Lite/Analysis/File/Plugin/NumberOfMethods.pm
.-----------------------------------.
| method | loc | mccabe_complexity |
+---------+-----+-------------------+
| init | 1 | 1 |
| measure | 7 | 2 |
'---------+-----+-------------------'
Path: lib/Perl/Metrics/Lite.pm
.-----------------------------------------.
| method | loc | mccabe_complexity |
+---------------+-----+-------------------+
| new | 10 | 2 |
| analyze_files | 21 | 6 |
| report | 5 | 1 |
'---------------+-----+-------------------'
Path: lib/Perl/Metrics/Lite/Analysis/File/Plugin/Lines.pm
.-----------------------------------.
| method | loc | mccabe_complexity |
+---------+-----+-------------------+
| init | 1 | 1 |
| measure | 5 | 1 |
'---------+-----+-------------------'
Path: lib/Perl/Metrics/Lite/Analysis/File/Plugin/Packages.pm
.-----------------------------------.
| method | loc | mccabe_complexity |
+---------+-----+-------------------+
| init | 1 | 1 |
| measure | 14 | 4 |
'---------+-----+-------------------'
Path: lib/Perl/Metrics/Lite/Analysis/Util.pm
.------------------------------------------------.
| method | loc | mccabe_complexity |
+----------------------+-----+-------------------+
| get_node_length | 11 | 7 |
| _normailze_string | 8 | 4 |
| _count_lines | 12 | 5 |
| get_packages | 14 | 4 |
| prune_non_code_lines | 10 | 3 |
| is_ref | 8 | 5 |
'----------------------+-----+-------------------'
Path: lib/Perl/Metrics/Lite/Report/CheckStyle.pm
.--------------------------------------------------------------.
| method | loc | mccabe_complexity |
+------------------------------------+-----+-------------------+
| new | 15 | 3 |
| report | 6 | 1 |
| create_checkstyle_xml | 11 | 2 |
| file_xml_fragment | 18 | 4 |
| sub_lines_xml_fragment | 18 | 1 |
| sub_mccabe_complexity_xml_fragment | 18 | 1 |
'------------------------------------+-----+-------------------'
Path: lib/Perl/Metrics/Lite/Analysis/Sub/Plugin/MccabeComplexity.pm
.---------------------------------------------------.
| method | loc | mccabe_complexity |
+-------------------------+-----+-------------------+
| init | 11 | 3 |
| measure | 13 | 4 |
| _countup_logic_keywords | 7 | 5 |
| _counup_logic_operators | 10 | 3 |
| hashify | 4 | 2 |
| is_hash_key | 16 | 5 |
'-------------------------+-----+-------------------'
Path: lib/Perl/Metrics/Lite/Report/Text.pm
.--------------------------------------------------------------.
| method | loc | mccabe_complexity |
+------------------------------------+-----+-------------------+
| new | 20 | 4 |
| report | 7 | 1 |
| report_file_stats | 19 | 3 |
| _print_file_stats_report_header | 5 | 1 |
| report_sub_stats | 8 | 2 |
| _print_sub_stats_report_header | 5 | 1 |
| _report_sub_metrics | 7 | 2 |
| _print_table | 5 | 1 |
| _create_ascii_table_for_submetrics | 16 | 6 |
| is_sub_metric_ok | 8 | 5 |
| _create_row | 8 | 1 |
| _create_table | 7 | 2 |
'------------------------------------+-----+-------------------'
Path: lib/Perl/Metrics/Lite/Analysis/DocumentFactory.pm
.------------------------------------------------------.
| method | loc | mccabe_complexity |
+----------------------------+-----+-------------------+
| create_normalized_document | 20 | 8 |
| _create_ppi_document | 12 | 3 |
| _make_pruned_document | 7 | 1 |
'----------------------------+-----+-------------------'
Path: lib/Perl/Metrics/Lite/Analysis/File.pm
.------------------------------------------------.
| method | loc | mccabe_complexity |
+----------------------+-----+-------------------+
| new | 7 | 1 |
| _init | 22 | 3 |
| all_counts | 11 | 1 |
| analyze_file | 9 | 3 |
| measure_file_metrics | 13 | 6 |
| metric_name | 7 | 2 |
| _decamelize | 11 | 2 |
| path | 4 | 1 |
| main_stats | 4 | 1 |
| subs | 4 | 1 |
| packages | 4 | 1 |
| lines | 4 | 1 |
| analyze_subs | 15 | 4 |
| measure_sub_metrics | 13 | 6 |
| add_basic_sub_info | 5 | 1 |
'----------------------+-----+-------------------'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment