Perl::...Command(3pm)
π
Perl::Critic::Command(3pm) β guts of perlcritic
okay so this is a User Contributed Perl Documentation page, the module is literally called Perl::Critic::Command, and bestie, it is the guts of perlcritic. that's the whole vibe. π«Ά
β¨ NAME β¨
Perl::Critic::Command β Guts of perlcritic. slay, that's it, that's the name. π
πΈ SYNOPSIS πΈ
like, here's how you'd actually use it:
use Perl::Critic::Command qw< run >;
local @ARGV = qw< --statistics-only lib bin >;
run();
see how we localized @ARGV first? main character energy. π
π¦ DESCRIPTION π¦
okay so real talk: this module is the implementation of the perlcritic command. the whole point is you can use it to run the command without going through a command interpreter. no shell, no middleman, just vibes and Perl. β¨
π₯ INTERFACE SUPPORT π₯
this is considered to be a public class. π
but lowkey its interface is experimental, and it will likely change. so likeβ¦ don't get attached? ngl it's giving "we're still figuring out our aesthetic". π
π IMPORTABLE SUBROUTINES π
run()
does the equivalent of the perlcritic command. π
but bestie, unfortunately, at present, this doesn't take any parameters β it uses @ARGV to get its input instead. so it's reading your global args like it owns the place. π
count on this changing; don't count on the current interface. fr fr. π«Ά
π TO DO π
the glow-up list, we love a roadmap:
- make
run()take parameters. the equivalent of@ARGVshould be passed as a reference. π― - turn this into an object. periodt. π§
β AUTHOR β
Jeffrey Ryan Thalhammer <jeff@imaginative-software.com> β icon. π
π COPYRIGHT π
Copyright (c) 2005-2023 Imaginative Software Systems. All rights reserved.
this program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. the full text of this license can be found in the LICENSE file included with this module. π
π cute little sign-off: this page came to you courtesy of perl v5.42.0, dated 2024-10-23, and it's the Perl::...Command(3pm) page. go forth and lint, bestie. π¦β¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Perl-Critic 1.156.0-bp160.1.1 Β· 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