1Perl::Critic::Policy::CUosdeerLPaCeyoronlut:tr::iC:brRuiettqeiudci:rP:eePTroilldiyDcCoyoc:du:emC(eo3nd)teaLtaiyoonut::RequireTidyCode(3)
2
3
4

NAME

6       Perl::Critic::Policy::CodeLayout::RequireTidyCode - Must run code
7       through perltidy.
8

AFFILIATION

10       This Policy is part of the core Perl::Critic distribution.
11

DESCRIPTION

13       Conway does make specific recommendations for whitespace and curly-
14       braces in your code, but the most important thing is to adopt a
15       consistent layout, regardless of the specifics.  And the easiest way to
16       do that is to use Perl::Tidy.  This policy will complain if you're code
17       hasn't been run through Perl::Tidy.
18

CONFIGURATION

20       This policy can be configured to tell Perl::Tidy to use a particular
21       perltidyrc file or no configuration at all.  By default, Perl::Tidy is
22       told to look in its default location for configuration.  Perl::Critic
23       can be told to tell Perl::Tidy to use a specific configuration file by
24       putting an entry in a .perlcriticrc file like this:
25
26           [CodeLayout::RequireTidyCode]
27           perltidyrc = /usr/share/perltidy.conf
28
29       As a special case, setting "perltidyrc" to the empty string tells
30       Perl::Tidy not to load any configuration file at all and just use
31       Perl::Tidy's own default style.
32
33           [CodeLayout::RequireTidyCode]
34           perltidyrc =
35

PREREQUISITES

37       Perl::Tidy is not included in the Perl::Critic distribution.  The
38       latest version of Perl::Tidy can be downloaded from CPAN.  If
39       Perl::Tidy is not installed, this policy will disable itself.
40

SEE ALSO

42       Perl::Tidy
43

AUTHOR

45       Jeffrey Ryan Thalhammer <thaljef@cpan.org>
46
48       Copyright (c) 2005-2009 Jeffrey Ryan Thalhammer.  All rights reserved.
49
50       This program is free software; you can redistribute it and/or modify it
51       under the same terms as Perl itself.  The full text of this license can
52       be found in the LICENSE file included with this module.
53
54
55
56perl v5.12.1              Perl::Cr2i0t1i0c-:0:9P-o0l8icy::CodeLayout::RequireTidyCode(3)
Impressum