blib/lib/Dist/Zilla/PluginBundle/Author/LXP.pm

filter: Statementstmt 87.3% 62 / 71 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 95.0% 19 / 20 Podpod 0.0% 0 / 1 totaltotal 88.0% 81 / 92 CC 1 SCAR 0.5
CC
1
Cov
87%
configure
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
↑ Summary
1 package Dist::Zilla::PluginBundle::Author::LXP;
2 {
3 1 $Dist::Zilla::PluginBundle::Author::LXP::VERSION = '1.0.1';
4 }
5 # ABSTRACT: configure Dist::Zilla like LXP
6  
7  
8 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 with 'Dist::Zilla::Role::PluginBundle::Easy';
13  
14 1 ▶use Dist::Zilla::Plugin::CheckChangesHasContent ();
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶use Dist::Zilla::Plugin::Git (); # for ::Check, ::Commit, ::Tag, ::Push
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶use Dist::Zilla::Plugin::InstallGuide ();
Subroutine BEGIN: called CC=1 SCAR=0.0
17 1 ▶use Dist::Zilla::Plugin::MetaProvides::Package ();
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶use Dist::Zilla::Plugin::MinimumPerl ();
Subroutine BEGIN: called CC=1 SCAR=0.0
19 1 ▶use Dist::Zilla::Plugin::NoTabsTests ();
Subroutine BEGIN: called CC=1 SCAR=0.0
20 1 ▶use Dist::Zilla::Plugin::PodWeaver ();
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 ▶use Dist::Zilla::Plugin::PrereqsClean ();
Subroutine BEGIN: called CC=1 SCAR=0.0
22 1 ▶use Dist::Zilla::Plugin::ReadmeAnyFromPod ();
Subroutine BEGIN: called CC=1 SCAR=0.0
23 1 ▶use Dist::Zilla::Plugin::Test::Compile ();
Subroutine BEGIN: called CC=1 SCAR=0.0
24 1 ▶use Dist::Zilla::Plugin::Test::EOL ();
Subroutine BEGIN: called CC=1 SCAR=0.0
25 1 ▶use Dist::Zilla::Plugin::Test::Kwalitee ();
Subroutine BEGIN: called CC=1 SCAR=0.0
26 1 ▶use Dist::Zilla::Plugin::Test::PodSpelling ();
Subroutine BEGIN: called CC=1 SCAR=0.0
27 1 ▶use Dist::Zilla::Plugin::Test::Version ();
Subroutine BEGIN: called CC=1 SCAR=0.0
28 1 ▶use Pod::Weaver::PluginBundle::Author::LXP ();
Subroutine BEGIN: called CC=1 SCAR=0.0
29  
30 0 ▶sub configure {
Subroutine configure: not called CC=1 SCAR=6.9
Pod undocumented
31 0 my $self = shift;
32  
33 # PHASE: metadata
34 0 $self->add_plugins(
35 [ 'MetaNoIndex' => { directory => 't' } ],
36 [ 'MetaProvides::Package' => { meta_noindex => 1 } ],
37 );
38  
39 # PHASE: gather files
40 0 $self->add_plugins(
41 'GatherDir',
42 'License',
43 'MetaJSON',
44 'MetaYAML',
45 'Manifest',
46 'Test::Compile',
47 'Test::Version',
48 'PodCoverageTests',
49 'PodSyntaxTests',
50 [ 'Test::PodSpelling' => { stopwords => 'semver' } ],
51 'MetaTests',
52 'Test::EOL',
53 'NoTabsTests',
54 'Test::Kwalitee',
55 );
56  
57 # PHASE: prune files
58 0 $self->add_plugins('PruneCruft');
59  
60 # See also: ReadmeAnyFromPod configurations below, apparently.
61  
62 # PHASE: munge files
63 0 $self->add_plugins(
64 'PkgVersion',
65 [ 'PodWeaver' => { config_plugin => '@Author::LXP' } ],
66 [ 'NextRelease' => {
67 format => '%-7v %{yyyy-MM-dd}d',
68 time_zone => 'UTC',
69 } ],
70 'ExtraTests',
71 );
72  
73 # PHASE: "register prerequisites"
74  
75 # See also: PodCoverageTests configuration above.
76 # See also: PodSyntaxTests configuration above.
77 # See also: MetaTests configuration above.
78  
79 0 $self->add_plugins(
80 'AutoPrereqs',
81 'MinimumPerl',
82 'PrereqsClean',
83 );
84  
85 # See also: MakeMaker configuration below.
86  
87 # PHASE: "install tool"
88 0 $self->add_plugins(
89 'ReadmeAnyFromPod',
90 [ 'ReadmeAnyFromPod' => 'PodRoot' ],
91 'MakeMaker',
92 'InstallGuide',
93 );
94  
95 # PHASE: before release
96 0 $self->add_plugins(
97 'CheckChangesHasContent',
98 [ 'Git::Check' => {
99 allow_dirty => [qw{ Changes dist.ini README.pod }],
100 } ],
101 'TestRelease',
102 'ConfirmRelease',
103 'UploadToCPAN',
104 );
105  
106 # PHASE: releaser
107 # See also: UploadToCPAN configuration above.
108  
109 # PHASE: after release
110 # See also: NextRelease configuration above.
111  
112 0 $self->add_plugins(
113 [ 'Git::Commit' => {
114 allow_dirty => [qw{ Changes dist.ini README.pod }],
115 time_zone => 'UTC',
116 } ],
117 [ 'Git::Tag' => { tag_message => '' } ],
118 'Git::Push',
119 );
120  
121 # PHASE: test runner
122 # See also: MakeMaker configuration above.
123  
124 # PHASE: build runner
125 # See also: MakeMaker configuration above.
126 }
127  
128 1 __PACKAGE__->meta->make_immutable;
129 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
130 1 1;
131  
132 __END__
↑ Summary