| 1 |
use strict; |
| 2 |
use warnings; |
| 3 |
use Test::More; |
| 4 |
BEGIN { |
| 5 |
plan skip_all => 'test requires Test::Spelling' |
| 6 |
unless eval q{ use Test::Spelling; 1 }; |
| 7 |
plan skip_all => 'test requires YAML' |
| 8 |
unless eval q{ use YAML; 1; }; |
| 9 |
}; |
| 10 |
use Test::Spelling; |
| 11 |
use YAML qw( LoadFile ); |
| 12 |
use FindBin; |
| 13 |
use File::Spec; |
| 14 |
|
| 15 |
my $config_filename = File::Spec->catfile( |
| 16 |
$FindBin::Bin, File::Spec->updir, File::Spec->updir, 'author.yml' |
| 17 |
); |
| 18 |
|
| 19 |
my $config; |
| 20 |
$config = LoadFile($config_filename) |
| 21 |
if -r $config_filename; |
| 22 |
|
| 23 |
plan skip_all => 'disabled' if $config->{pod_spelling_system}->{skip}; |
| 24 |
|
| 25 |
chdir(File::Spec->catdir($FindBin::Bin, File::Spec->updir, File::Spec->updir)); |
| 26 |
|
| 27 |
add_stopwords($config->{pod_spelling_system}->{stopwords}->@*); |
| 28 |
add_stopwords(qw( |
| 29 |
Plicease |
| 30 |
stdout |
| 31 |
stderr |
| 32 |
stdin |
| 33 |
subref |
| 34 |
loopback |
| 35 |
username |
| 36 |
os |
| 37 |
Ollis |
| 38 |
Mojolicious |
| 39 |
plicease |
| 40 |
CPAN |
| 41 |
reinstall |
| 42 |
TODO |
| 43 |
filename |
| 44 |
filenames |
| 45 |
login |
| 46 |
callback |
| 47 |
callbacks |
| 48 |
standalone |
| 49 |
VMS |
| 50 |
hostname |
| 51 |
hostnames |
| 52 |
TCP |
| 53 |
UDP |
| 54 |
IP |
| 55 |
API |
| 56 |
MSWin32 |
| 57 |
OpenBSD |
| 58 |
FreeBSD |
| 59 |
NetBSD |
| 60 |
unencrypted |
| 61 |
WebSocket |
| 62 |
WebSockets |
| 63 |
timestamp |
| 64 |
timestamps |
| 65 |
poney |
| 66 |
BackPAN |
| 67 |
portably |
| 68 |
RedHat |
| 69 |
AIX |
| 70 |
BSD |
| 71 |
XS |
| 72 |
FFI |
| 73 |
perlish |
| 74 |
optimizations |
| 75 |
subdirectory |
| 76 |
RESTful |
| 77 |
SQLite |
| 78 |
JavaScript |
| 79 |
dir |
| 80 |
plugins |
| 81 |
munge |
| 82 |
jQuery |
| 83 |
namespace |
| 84 |
PDF |
| 85 |
PDFs |
| 86 |
usernames |
| 87 |
DBI |
| 88 |
pluggable |
| 89 |
APIs |
| 90 |
SSL |
| 91 |
JSON |
| 92 |
YAML |
| 93 |
uncommented |
| 94 |
Solaris |
| 95 |
OpenVMS |
| 96 |
URI |
| 97 |
URL |
| 98 |
CGI |
| 99 |
)); |
| 100 |
all_pod_files_spelling_ok; |
| 101 |
|
| 102 |
|