Pod/Weaver/PluginBundle/SHANTANU.pm

filter: Statementstmt 84.0% 42 / 50 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 86.6% 13 / 15 Podpod 100% 1 / 1 totaltotal 84.8% 56 / 66 CC 2 SCAR 5.2
CC
2
Cov
84%
mvp_bundle_config
6.0
_exp
2.0
BEGIN
1.0
CRAP 1.7
« Badge/Depot/Plugin/Shantanutravis.pm ↑ Summary Dist/Zilla/Plugin/AutoMetaResourcesPrefixed.pm »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package Pod::Weaver::PluginBundle::SHANTANU;
5  
6 1 our $VERSION = '0.43'; # VERSION
7  
8 1 ▶use Pod::Weaver 3.101638;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use Pod::Weaver::Config::Assembler;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 # Dependencies
12 1 ▶use Pod::Weaver::Plugin::WikiDoc ();
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use Pod::Elemental::Transformer::List 0.101620 ();
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use Pod::Weaver::Section::Badges 0.0402 ();
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶use Badge::Depot::Plugin::Perl;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶use Badge::Depot::Plugin::Kwalitee;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 1 ▶use Badge::Depot::Plugin::Cpantesters;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶use Badge::Depot::Plugin::Gratipay;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 1 ▶use Pod::Weaver::Section::Support 1.001 ();
Subroutine BEGIN: called CC=1 SCAR=0.0
20 1 ▶use Pod::Weaver::Section::Contributors 0.001 ();
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 0 ▶sub _exp { Pod::Weaver::Config::Assembler->expand_package( $_[0] ) }
Subroutine _exp: not called CC=1 SCAR=6.9
23  
24 1 my $repo_intro = <<'END';
25 This is open source software. The code repository is available for
26 public review and contribution under the terms of the license.
27 END
28  
29 1 my $bugtracker_content = <<'END';
30 Please report any bugs or feature requests through github at
31 {WEB}.
32 You will be notified automatically of any progress on your issue.
33 END
34  
35  
36 0 ▶sub mvp_bundle_config {
Subroutine mvp_bundle_config: not called CC=2 SCAR=17.9
Pod documented
37 0 my @plugins;
38 0 push @plugins, (
39 [ '@SHANTANU/WikiDoc', _exp('-WikiDoc'), {} ],
40 [ '@SHANTANU/CorePrep', _exp('@CorePrep'), {} ],
41 [ '@SHANTANU/Name', _exp('Name'), {} ],
42 [ '@SHANTANU/Version', _exp('Version'), {} ],
43 [ '@SHANTANU/Prelude', _exp('Region'), { region_name => 'prelude' } ],
44 [ '@SHANTANU/Synopsis', _exp('Generic'), { header => 'SYNOPSIS' } ],
45 [
46 '@SHANTANU/Description', _exp('Generic'),
47 { header => 'DESCRIPTION' }
48 ],
49 [ '@SHANTANU/Overview', _exp('Generic'), { header => 'OVERVIEW' } ],
50  
51 [ '@SHANTANU/Stability', _exp('Generic'), { header => 'STABILITY' } ],
52 );
53 0 for my $plugin (
54 [ 'Usage', _exp('Collect'), { command => 'usage' } ],
55 [ 'Functions', _exp('Collect'), { command => 'func' } ],
56 [ 'Attributes', _exp('Collect'), { command => 'attr' } ],
57 [ 'Constructors', _exp('Collect'), { command => 'construct' } ],
58 [ 'Methods', _exp('Collect'), { command => 'method' } ],
59 [ 'Registers', _exp('Collect'), { command => 'register' } ],
60 [ 'Constants', _exp('Collect'), { command => 'constant' } ],
61 )
62 {
63 0 $plugin->[2]{header} = uc $plugin->[0];
64 0 push @plugins, $plugin;
65 }
66  
67 0 push @plugins,
68 (
69 [ '@SHANTANU/Leftovers', _exp('Leftovers'), {} ],
70 [ '@SHANTANU/postlude', _exp('Region'), { region_name => 'postlude' } ],
71 [
72 '@SHANTANU/Badges',
73 _exp('Badges'),
74 {
75 formats => 'html',
76 badge => [
77 'Perl', 'Shantanutravis',
78 'Cpantesters', 'Kwalitee',
79 'Gratipay'
80 ],
81 -perl_version => '5.10+',
82 -shantanutravis_user => 'shantanubhadoria',
83 -travis_branch => 'build/master',
84 -gratipay_user => 'shantanubhadoria',
85 }
86 ],
87 [
88 '@SHANTANU/Support',
89 _exp('Support'),
90 {
91 perldoc => 0,
92 websites => 'none',
93 bugs => 'metadata',
94 bugs_content => $bugtracker_content,
95 repository_link => 'both',
96 repository_content => $repo_intro
97 }
98 ],
99 [ '@SHANTANU/Authors', _exp('Authors'), {} ],
100 [ '@SHANTANU/Contributors', _exp('Contributors'), {} ],
101 [ '@SHANTANU/Legal', _exp('Legal'), {} ],
102 [ '@SHANTANU/List', _exp('-Transformer'), { 'transformer' => 'List' } ],
103 );
104  
105 0 return @plugins;
106 }
107  
108 __END__
« Badge/Depot/Plugin/Shantanutravis.pm ↑ Summary Dist/Zilla/Plugin/AutoMetaResourcesPrefixed.pm »