1Perl::Critic::Policy::CUosdeerPLeaCryolon:ut:trC:ir:biPutrtioechd:i:bPPieotrlHliacrDydo:Tc:auCbmosed(ne3tL)aatyioount::ProhibitHardTabs(3)
2
3
4
6 Perl::Critic::Policy::CodeLayout::ProhibitHardTabs
7
9 Putting hard tabs in your source code (or POD) is one of the worst
10 things you can do to your co-workers and colleagues, especially if
11 those tabs are anywhere other than a leading position. Because various
12 applications and devices represent tabs differently, they can cause you
13 code to look vastly different to other people. Any decent editor can
14 be configured to expand tabs into spaces. Perl::Tidy also does this
15 for you.
16
17 This Policy catches all tabs in your source code, including POD,
18 quotes, and HEREDOCS. The contents of the "__DATA__" section are not
19 examined.
20
22 Tabs in a leading position are allowed, but if you want to forbid all
23 tabs everywhere, put this to your .perlcriticrc file:
24
25 [CodeLayout::ProhibitHardTabs]
26 allow_leading_tabs = 0
27
29 Beware that Perl::Critic may report the location of the string that
30 contains the tab, not the actual location of the tab, so you may need
31 to do some hunting. I'll try and fix this in the future.
32
34 Jeffrey Ryan Thalhammer <thaljef@cpan.org>
35
37 Copyright (c) 2005-2007 Jeffrey Ryan Thalhammer. All rights reserved.
38
39 This program is free software; you can redistribute it and/or modify it
40 under the same terms as Perl itself. The full text of this license can
41 be found in the LICENSE file included with this module.
42
43
44
45perl v5.8.8 Perl::Cri2t0i0c7:-:0P3o-l2i0cy::CodeLayout::ProhibitHardTabs(3)