Test::NoTabs(3)
π Test::NoTabs
Okay bestie, so this is Test::NoTabs(3) β a Perl manpage, and honestly? It's giving "tiny module, huge main character energy." Let's get into it. π
β¨ NAME β¨
Test::NoTabs β literally just checks whether there are tabs lurking in your project. That's it. That's the whole gig. π΅οΈββοΈ
πΈ VERSION πΈ
version 2.02 β yes queen, we're on 2.02. π
π¦ SYNOPSIS π¦
So Test::NoTabs lets you check the presence of tabs in your perl code. It reports its results in standard Test::Simple fashion, which is the whole vibe:
use Test::NoTabs tests => 1;
notabs_ok( 'lib/Module.pm', 'Module is tab free');
Module authors can include the following in a t/notabs.t and have Test::NoTabs automatically find and check all perl files in a module distribution β like, it does the legwork for you, no cap:
use Test::NoTabs;
all_perl_files_ok();
or
use Test::NoTabs;
all_perl_files_ok( @mydirs );
π DESCRIPTION π
This module scans your project/distribution for any perl files (scripts, modules, etc) for the presence of tabs. Like a little tab detector. Iconic behaviour, honestly. π
π FUNCTIONS π
π§ all_perl_files_ok( [ @directories ] )
Applies notabs_ok() to all perl files found in @directories (and sub directories). Slay, it recurses. π
If no <@directories> is given, the starting point is one level above the current running script β that should cover all the files of a typical CPAN distribution. Very thoughtful of it tbh.
A perl file is *.pl or *.pm or *.t or a file starting with "#!...perl" β those are the ones it's checking, iykyk. π―
If the test plan is defined:
use Test::NoTabs tests => 3;
all_perl_files_ok();
the total number of files tested must be specified. Like, you gotta count them, bestie, no skipping that part. π
π notabs_ok( $file [, $text] )
Run a tab check on $file. For a module, the path (lib/My/Module.pm) or the name (My::Module) can be both used. Either one works, we love flexibility. β¨
π«Ά ACKNOWLEDGEMENTS π«Ά
- Inspired by some code written by Paul Lindner. π«
Test::Strictwas used as an example when creating this module and distribution. Respect the blueprint. π- Rick Myers and Emanuele Zeppieri also provided valuable feedback. 10/10 contributors. π
- Patch to fix warnings provided by Florian Ragwitz (rafl) β thank you for the fix, king. π₯
- Currently maintained by Tomas Doran (t0m)
"bobtfish@bobtfish.net"β the current main character of this repo. π
π SEE ALSO π
Test::More, Test::Pod. Test::Distribution, Test::NoWarnings β go read those too, they're the friend group. π
π©· SUPPORT π©·
Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=Test-NoTabs> (or bug-Test-NoTabs@rt.cpan.org <mailto:bug-Test-NoTabs@rt.cpan.org>). Found a bug? Tell them, don't just suffer in silence. π
There is also a mailing list available for users of this distribution, at <http://lists.perl.org/list/perl-qa.html>. Join the list, it's a whole community vibe. π
There is also an irc channel available for users of this distribution, at "#perl" on "irc.perl.org" <irc://irc.perl.org/#perl-qa>. Come hang out in #perl! πΈ
π AUTHORS π
- Nick Gerakines <nick@socklabs.com>
- Tomas Doran (t0m) <bobtfish@bobtfish.net>
β CONTRIBUTORS β
- Karen Etheridge <ether@cpan.org>
- Nick Gerakines <nick@gerakines.net>
- Prakash Kailasa <pk-github@kailasa.net>
- Justin Cook <jscook@users.noreply.github.com>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2006 by Nick Gerakines. π
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Free as in, go wild, just keep the same terms. π¦
and that's the whole page, bestie β no tabs were harmed in the making of this documentation πβ¨
Signing off from the footer with love: this was perl v5.42.0, dated 2018-04-22, and the page is Test::NoTabs(3) β periodt. π
π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Test-NoTabs 2.02-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms