Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Perl/Critic/Policy/InputOutput/ProhibitExplicitStdin.pm |
Statements | Executed 20 statements in 472µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 26µs | 26µs | BEGIN@10 | Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::
1 | 1 | 1 | 12µs | 665µs | BEGIN@16 | Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::
1 | 1 | 1 | 12µs | 92µs | BEGIN@17 | Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::
1 | 1 | 1 | 11µs | 18µs | BEGIN@12 | Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::
1 | 1 | 1 | 11µs | 45µs | BEGIN@13 | Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::
1 | 1 | 1 | 11µs | 223µs | BEGIN@14 | Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::
1 | 1 | 1 | 10µs | 29µs | BEGIN@11 | Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::
1 | 1 | 1 | 9µs | 11µs | default_severity | Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::
1 | 1 | 1 | 2µs | 2µs | supported_parameters | Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::
0 | 0 | 0 | 0s | 0s | applies_to | Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::
0 | 0 | 0 | 0s | 0s | default_themes | Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::
0 | 0 | 0 | 0s | 0s | violates | Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | ############################################################################## | ||||
2 | # $URL$ | ||||
3 | # $Date$ | ||||
4 | # $Author$ | ||||
5 | # $Revision$ | ||||
6 | ############################################################################## | ||||
7 | |||||
8 | package Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin; | ||||
9 | |||||
10 | 2 | 63µs | 1 | 26µs | # spent 26µs within Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@10 which was called:
# once (26µs+0s) by Module::Pluggable::Object::_require at line 10 # spent 26µs making 1 call to Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@10 |
11 | 2 | 32µs | 2 | 48µs | # spent 29µs (10+19) within Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@11 which was called:
# once (10µs+19µs) by Module::Pluggable::Object::_require at line 11 # spent 29µs making 1 call to Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@11
# spent 19µs making 1 call to strict::import |
12 | 2 | 30µs | 2 | 24µs | # spent 18µs (11+6) within Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@12 which was called:
# once (11µs+6µs) by Module::Pluggable::Object::_require at line 12 # spent 18µs making 1 call to Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@12
# spent 6µs making 1 call to warnings::import |
13 | 2 | 35µs | 2 | 79µs | # spent 45µs (11+34) within Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@13 which was called:
# once (11µs+34µs) by Module::Pluggable::Object::_require at line 13 # spent 45µs making 1 call to Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@13
# spent 34µs making 1 call to Exporter::import |
14 | 2 | 40µs | 2 | 435µs | # spent 223µs (11+212) within Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@14 which was called:
# once (11µs+212µs) by Module::Pluggable::Object::_require at line 14 # spent 223µs making 1 call to Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@14
# spent 212µs making 1 call to Exporter::Tiny::import |
15 | |||||
16 | 2 | 38µs | 2 | 1.32ms | # spent 665µs (12+653) within Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@16 which was called:
# once (12µs+653µs) by Module::Pluggable::Object::_require at line 16 # spent 665µs making 1 call to Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@16
# spent 653µs making 1 call to Exporter::import |
17 | 2 | 215µs | 2 | 171µs | # spent 92µs (12+80) within Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@17 which was called:
# once (12µs+80µs) by Module::Pluggable::Object::_require at line 17 # spent 92µs making 1 call to Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@17
# spent 80µs making 1 call to base::import |
18 | |||||
19 | 1 | 900ns | our $VERSION = '1.121'; | ||
20 | |||||
21 | #----------------------------------------------------------------------------- | ||||
22 | |||||
23 | 1 | 3µs | 1 | 54µs | Readonly::Scalar my $DESC => q{Use "<>" or "<ARGV>" or a prompting module instead of "<STDIN>"}; # spent 54µs making 1 call to Readonly::Scalar |
24 | 1 | 3µs | 1 | 75µs | Readonly::Scalar my $EXPL => [216,220,221]; # spent 75µs making 1 call to Readonly::Scalar |
25 | |||||
26 | #----------------------------------------------------------------------------- | ||||
27 | |||||
28 | 1 | 4µs | # spent 2µs within Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::supported_parameters which was called:
# once (2µs+0s) by Perl::Critic::Policy::new at line 88 of Perl/Critic/Policy.pm | ||
29 | 1 | 2µs | # spent 11µs (9+2) within Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::default_severity which was called:
# once (9µs+2µs) by Perl::Critic::Policy::get_severity at line 331 of Perl/Critic/Policy.pm | ||
30 | sub default_themes { return qw( core pbp maintenance ) } | ||||
31 | sub applies_to { return 'PPI::Token::QuoteLike::Readline' } | ||||
32 | |||||
33 | #----------------------------------------------------------------------------- | ||||
34 | |||||
35 | sub violates { | ||||
36 | my ( $self, $elem, undef ) = @_; | ||||
37 | |||||
38 | return if $elem ne '<STDIN>'; | ||||
39 | return $self->violation( $DESC, $EXPL, $elem ); | ||||
40 | } | ||||
41 | |||||
42 | |||||
43 | 1 | 5µs | 1; | ||
44 | |||||
45 | __END__ |