Provided by: license-reconcile_0.14_all bug

NAME

       Debian::LicenseReconcile::LicenseCheck - wrapper around licensecheck

VERSION

       Version 0.14

SYNOPSIS

           use Debian::LicenseReconcile::LicenseCheck;

           my $filter = Debian::LicenseReconcile::LicenseCheck->new(directory=>'.');
           my @info = $filter->get_info();

DESCRIPTION

       This module is designed to provide an interface to the licensecheck program suitable for
       use in Debian::LicenseReconcile::Filter objects.

SUBROUTINES/METHODS

   new
       The constructor takes the base directory as an argument. Any other arguments are
       interpreted as key/value pairs mapping the license statements generated by licensecheck
       onto those used in "debian/copyright".

   get_info
       Returns a list of hash references describing copyright and license information that should
       be checked against the copyright target. If no additional argument is passed, the results
       returned from this filter are those that are obtained from "licensecheck --no-conf
       --recursive --copyright DIR".  The optional file argument must be relative to the
       directory given to the constructor. If the file is a directory then the "--recursive"
       option is used.

       Optionally this method may take an additional regular expression format string argument.
       If present this regular expression will be used to extract copyright data from the file
       contents in preference to what licensecheck returns. If the regular expression fails to
       match, licensecheck data will be used instead. The regular expression should have a
       capture for each line. A capture may span lines and the regular expression will be
       enclosed in "m{...}xms".

   raw_license
       Given a file this method returns the license data produced from "licensecheck --no-conf
       FILE".

AUTHOR

       Nicholas Bamber, "<nicholas at periapt.co.uk>"

LICENSE AND COPYRIGHT

       Copyright 2012, 2015, Nicholas Bamber "<nicholas at periapt.co.uk>".

       This program is free software; you can redistribute it and/or modify it under the terms of
       either: the GNU General Public License as published by the Free Software Foundation; or
       the Artistic License.

       See http://dev.perl.org/licenses/ for more information.