1Test::NoTabs(3) User Contributed Perl Documentation Test::NoTabs(3)
2
3
4
6 Test::NoTabs - Check the presence of tabs in your project
7
9 "Test::NoTabs" lets you check the presence of tabs in your perl code.
10 It report its results in standard "Test::Simple" fashion:
11
12 use Test::NoTabs tests => 1;
13 notabs_ok( 'lib/Module.pm', 'Module is tab free');
14
15 Module authors can include the following in a t/notabs.t and have
16 "Test::NoTabs" automatically find and check all perl files in a module
17 distribution:
18
19 use Test::NoTabs;
20 all_perl_files_ok();
21
22 or
23
24 use Test::NoTabs;
25 all_perl_files_ok( @mydirs );
26
28 This module scans your project/distribution for any perl files
29 (scripts, modules, etc) for the presence of tabs.
30
32 A list of functions that can be exported. You can delete this section
33 if you don't export anything, such as for a purely object-oriented
34 module.
35
37 all_perl_files_ok( [ @directories ] )
38 Applies "notabs_ok()" to all perl files found in @directories (and sub
39 directories). If no <@directories> is given, the starting point is one
40 level above the current running script, that should cover all the files
41 of a typical CPAN distribution. A perl file is *.pl or *.pm or *.t or a
42 file starting with "#!...perl"
43
44 If the test plan is defined:
45
46 use Test::NoTabs tests => 3;
47 all_perl_files_ok();
48
49 the total number of files tested must be specified.
50
51 notabs_ok( $file [, $text] )
52 Run a tab check on $file. For a module, the path (lib/My/Module.pm) or
53 the name (My::Module) can be both used.
54
56 Nick Gerakines, "<nick at socklabs.com>"
57
59 Please report any bugs or feature requests to "bug-test-notabs at
60 rt.cpan.org", or through the web interface at
61 http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-NoTabs
62 <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-NoTabs>. I will
63 be notified, and then you'll automatically be notified of progress on
64 your bug as I make changes.
65
67 You can find documentation for this module with the perldoc command.
68
69 perldoc Test::NoTabs
70
71 You can also look for information at:
72
73 · AnnoCPAN: Annotated CPAN documentation
74
75 http://annocpan.org/dist/Test-NoTabs
76 <http://annocpan.org/dist/Test-NoTabs>
77
78 · CPAN Ratings
79
80 http://cpanratings.perl.org/d/Test-NoTabs
81 <http://cpanratings.perl.org/d/Test-NoTabs>
82
83 · RT: CPAN's request tracker
84
85 http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-NoTabs
86 <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-NoTabs>
87
88 · Search CPAN
89
90 http://search.cpan.org/dist/Test-NoTabs
91 <http://search.cpan.org/dist/Test-NoTabs>
92
94 Inspired by some code written by Paul Lindner.
95
96 Test::Strict was used as an example when creating this module and
97 distribution.
98
99 Rick Myers and Emanuele Zeppieri also provided valuable feedback.
100
101 Patch to fix warnings provided by Florian Ragwitz (rafl)
102
103 Currently maintained by Tomas Doran (t0m) "bobtfish@bobtfish.net"
104
106 Test::More, Test::Pod. Test::Distribution, <Test:NoWarnings>
107
109 Copyright 2006 Nick Gerakines, all rights reserved.
110
111 This program is free software; you can redistribute it and/or modify it
112 under the same terms as Perl itself.
113
114
115
116perl v5.12.1 2010-02-10 Test::NoTabs(3)