| 1 | 4 | ▶ | use 5.008; # utf8 | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 4 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 4 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 4 | ▶ | use utf8; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | package Path::IsDev::Heuristic::Makefile; | ||||||||||
| 7 | |||||||||||
| 8 | 4 | our $VERSION = '1.001003'; | |||||||||
| 9 | |||||||||||
| 10 | |||||||||||
| 11 | |||||||||||
| 12 | |||||||||||
| 13 | |||||||||||
| 14 | |||||||||||
| 15 | |||||||||||
| 16 | |||||||||||
| 17 | |||||||||||
| 18 | |||||||||||
| 19 | |||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | |||||||||||
| 23 | |||||||||||
| 24 | |||||||||||
| 25 | # ABSTRACT: Determine if a path contains a Makefile | ||||||||||
| 26 | |||||||||||
| 27 | 4 | our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY | |||||||||
| 28 | |||||||||||
| 29 | 4 | ▶ | use Role::Tiny::With qw( with ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 30 | 4 | with 'Path::IsDev::Role::Heuristic', 'Path::IsDev::Role::Matcher::Child::Exists::Any::File'; | |||||||||
| 31 | |||||||||||
| 32 | |||||||||||
| 33 | |||||||||||
| 34 | |||||||||||
| 35 | |||||||||||
| 36 | |||||||||||
| 37 | |||||||||||
| 38 | |||||||||||
| 39 | |||||||||||
| 40 | |||||||||||
| 41 | |||||||||||
| 42 | 3 | ▶ | sub files { | ||||||||
|
Subroutine
files: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 43 | 3 | return qw( GNUmakefile makefile Makefile ); | |||||||||
| 44 | } | ||||||||||
| 45 | |||||||||||
| 46 | |||||||||||
| 47 | |||||||||||
| 48 | |||||||||||
| 49 | |||||||||||
| 50 | |||||||||||
| 51 | |||||||||||
| 52 | 3 | ▶ | sub matches { | ||||||||
|
Subroutine
matches: called CC=2 SCAR=8.4
Pod
documented
| |||||||||||
| 53 | 3 | my ( $self, $result_object ) = @_; | |||||||||
| 54 | 3 | ▶ | if ( $self->child_exists_any_file( $result_object, $self->files ) ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 55 | 0 | $result_object->result(1); | |||||||||
| 56 | 0 | return 1; | |||||||||
| 57 | } | ||||||||||
| 58 | 3 | return; | |||||||||
| 59 | } | ||||||||||
| 60 | |||||||||||
| 61 | 4 | 1; | |||||||||
| 62 | |||||||||||
| 63 | __END__ | ||||||||||