1Perl::Critic::Command(3U)ser Contributed Perl DocumentatiPoenrl::Critic::Command(3)
2
3
4
6 Perl::Critic::Command - Guts of perlcritic.
7
9 use Perl::Critic::Command qw< run >;
10
11 local @ARGV = qw< --statistics-only lib bin >;
12 run();
13
15 This is the implementation of the perlcritic command. You can use this
16 to run the command without going through a command interpreter.
17
19 This is considered to be a public class. However, its interface is
20 experimental, and will likely change.
21
23 "run()"
24 Does the equivalent of the perlcritic command. Unfortunately, at
25 present, this doesn't take any parameters but uses @ARGV to get its
26 input instead. Count on this changing; don't count on the current
27 interface.
28
30 Make "run()" take parameters. The equivalent of @ARGV should be passed
31 as a reference.
32
33 Turn this into an object.
34
36 Jeffrey Ryan Thalhammer <jeff@imaginative-software.com>
37
39 Copyright (c) 2005-2011 Imaginative Software Systems. All rights
40 reserved.
41
42 This program is free software; you can redistribute it and/or modify it
43 under the same terms as Perl itself. The full text of this license can
44 be found in the LICENSE file included with this module.
45
46
47
48perl v5.32.1 2021-03-24 Perl::Critic::Command(3)