Provided by: license-reconcile_0.17_all bug


       Debian::LicenseReconcile::LicenseCheck - wrapper around licensecheck


       Version 0.17


           use Debian::LicenseReconcile::LicenseCheck;

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


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


       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".

       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".

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


       Nicholas Bamber, "<nicholas at>"


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

       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 for more information.