NAME
Claude::Agent::Code::Review::Perlcritic - Perl::Critic integration for deterministic code review
SYNOPSIS
use Claude::Agent::Code::Review::Perlcritic;
use Claude::Agent::Code::Review::Options;
my $options = Claude::Agent::Code::Review::Options->new(
perlcritic => 1,
perlcritic_severity => 3,
);
my @issues = Claude::Agent::Code::Review::Perlcritic->analyze(
paths => ['lib/'],
options => $options,
);
DESCRIPTION
Provides deterministic static analysis using Perl::Critic. Unlike AI-powered review, perlcritic produces consistent results for the same code and configuration.
METHODS
analyze
my @issues = Claude::Agent::Code::Review::Perlcritic->analyze(
paths => \@paths,
options => $options,
);
Runs perlcritic on the specified paths and returns an array of Claude::Agent::Code::Review::Issue objects.
is_available
if (Claude::Agent::Code::Review::Perlcritic->is_available) {
# perlcritic is installed
}
Returns true if Perl::Critic module is installed and available.
AUTHOR
LNATION, <email at lnation.org>
LICENSE
This software is Copyright (c) 2026 by LNATION.
This is free software, licensed under The Artistic License 2.0 (GPL Compatible).