NAME

Koha::QA::PodChecker - Centralized POD checking

SYNOPSIS

use Koha::QA::PodChecker;

# With a file
my $checker = Koha::QA::PodChecker->new({file => $file});

# Or with content directly
my $checker = Koha::QA::PodChecker->new({content => $content});

my $is_valid = $checker->check;
my @errors = $checker->errors;

DESCRIPTION

This module provides centralized POD checking using Pod::Checker.

METHODS

new

my $checker = Koha::QA::PodChecker->new({file => $file});

Creates a new PodChecker instance.

check

my $is_valid = $checker->check;

Checks a Perl file for POD errors and warnings using Pod::Checker.

errors

my @errors = $checker->errors;

Returns array of error hashrefs, each with: - error: the error type (pod_checker_error, pod_checker_warning)

AUTHORS

Jonathan Druart <jonathan.druart@bugs.koha-community.org>

COPYRIGHT

Copyright 2026 Koha Development Team

LICENSE

This file is part of Koha.

Koha is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.