1Perl::Critic::Policy::CUosdeerLPaCeyoronlut:tr::iC:brRuiettqeiudci:rP:eePTroilldiyDcCoyoc:du:emC(eo3nd)teaLtaiyoonut::RequireTidyCode(3)
2
3
4
6 Perl::Critic::Policy::CodeLayout::RequireTidyCode - Must run code
7 through perltidy.
8
10 This Policy is part of the core Perl::Critic distribution.
11
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
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
37 Perl::Tidy
38
40 Jeffrey Ryan Thalhammer <jeff@imaginative-software.com>
41
43 Copyright (c) 2005-2011 Imaginative Software Systems. All rights
44 reserved.
45
46 This program is free software; you can redistribute it and/or modify it
47 under the same terms as Perl itself. The full text of this license can
48 be found in the LICENSE file included with this module.
49
50
51
52perl v5.28.1 Perl::Cr2i0t1i9c-:0:2P-o0l2icy::CodeLayout::RequireTidyCode(3)