Debian Codegraph @

bin/scan_mojibake

raw
1 #!/usr/bin/perl
2 # ABSTRACT: scan Perl source and report bad character encoding
3 # PODNAME: scan_mojibake
4
5
6 use strict;
7 use warnings qw(all);
8
9 our $VERSION = '1.3'; # VERSION
10
11 use Pod::Usage;
12 use Test::Mojibake;
13
14 pod2usage(
15 -exitval => 0,
16 -verbose => 99,
17 ) unless @ARGV;
18
19 all_files_encoding_ok(@ARGV);
20
21 __END__
22
23 =pod
24
25 =encoding UTF-8
26
27 =head1 NAME
28
29 scan_mojibake - scan Perl source and report bad character encoding
30
31 =head1 VERSION
32
33 version 1.3
34
35 =head1 SYNOPSIS
36
37 scan_mojibake [FILES|DIRS]
38
39 =head1 DESCRIPTION
40
41 Standalone CLI wrapper for the L<Test::Mojibake> module.
42
43 Does exactly the same as:
44
45 perl -MTest::Mojibake -e 'all_files_encoding_ok(@ARGV)' bin/ lib/ t/*.t
46
47 =head1 EXAMPLE
48
49 $ scan_mojibake bin/ lib/ t/*.t
50 1..14
51 ok 1 - Mojibake test for bin/scan_mojibake
52 ok 2 - Mojibake test for lib/Test/Mojibake.pm
53 ok 3 - Mojibake test for t/00-load.t
54 ok 4 - Mojibake test for t/01-bad-check.t
55 ok 5 - Mojibake test for t/01-self-check.t
56 ok 6 - Mojibake test for t/01-test-check.t
57 ok 7 - Mojibake test for t/02-bad-source.t
58 ok 8 - Mojibake test for t/02-good-source.t
59 ok 9 - Mojibake test for t/03-bad-pod.t
60 ok 10 - Mojibake test for t/03-good-pod.t
61 ok 11 - Mojibake test for t/04-bom.t
62 ok 12 - Mojibake test for t/05-encode.t
63 ok 13 - Mojibake test for t/06-pp-vs-xs.t
64 ok 14 - Mojibake test for t/07-broken-utf8.t
65
66 =head1 SEE ALSO
67
68 =over 4
69
70 =item *
71
72 L<Test::Mojibake>
73
74 =back
75
76 =head1 AUTHOR
77
78 Stanislaw Pusep <[email protected]>
79
80 =head1 COPYRIGHT AND LICENSE
81
82 This software is copyright (c) 2017 by Stanislaw Pusep.
83
84 This is free software; you can redistribute it and/or modify it under
85 the same terms as the Perl 5 programming language system itself.
86
87 =cut