| 1 | package Test::SpellCheck::Plugin::PerlWords; | ||||||||||
| 2 | |||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 2 | ▶ | use 5.026; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 2 | ▶ | use experimental qw( signatures ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 2 | ▶ | use File::ShareDir::Dist qw( dist_share ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 2 | ▶ | use Path::Tiny qw( path ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 2 | ▶ | use Text::HumanComputerWords 0.02; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 2 | ▶ | use List::Util 1.29 qw( pairmap ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | # ABSTRACT: Test::SpellCheck plugin that adds Perl jargon words | ||||||||||
| 13 | 2 | our $VERSION = '0.02'; # VERSION | |||||||||
| 14 | |||||||||||
| 15 | |||||||||||
| 16 | 8 | ▶ | sub new ($class) | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 17 | { | ||||||||||
| 18 | 8 | bless { | |||||||||
| 19 | root => path(dist_share('Test-SpellCheck')) | ||||||||||
| 20 | }, $class; | ||||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | 1 | ▶ | sub dictionary ($self) | ||||||||
|
Subroutine
dictionary: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 24 | { | ||||||||||
| 25 | return ( | ||||||||||
| 26 | 1 | map { $_->stringify } $self->{root}->child('perl.dic'), | |||||||||
| 27 | ); | ||||||||||
| 28 | } | ||||||||||
| 29 | |||||||||||
| 30 | 2 | ▶ | sub splitter ($self) | ||||||||
|
Subroutine
splitter: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 31 | { | ||||||||||
| 32 | 2 | ▶ | pairmap { $a eq 'path_name' ? ('skip', $b) : ($a,$b) } Text::HumanComputerWords->default_perl; | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
| |||||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | 2 | 1; | |||||||||
| 36 | |||||||||||
| 37 | __END__ | ||||||||||