Debian::LicenseReconcile::Filter::Rules(3pm)

Debian::LicenseReconcile::Filter::Rules3pm

Applies licensecheck to get data

Usage

    use Debian::LicenseReconcile::Filter::Rules;
    my $filter = Debian::LicenseReconcile::Filter::Rules->new(
        directory=>'.',
        files_remaining=>[....],
        config=>[....],
    );
    my @info = $filter->get_info();

Version

Version 0.16

Subroutines/methods

get_info

Returns a list of hash references describing copyright and license information that should be checked against the copyright target. The results returned are those obtained by applying the rules in the config file in sequence. Each rule might have the fields as discussed in Debian::LicenseReconcile::Filter.

In addition the following fields are supported:

License (optional) - Specifies the exact license value. If not set the license will be obtained from licensecheck.
Copyright (optional) - Specifies the exact copyright value. If not set the copyright will be obtained from licensecheck.
CopyrightExtract (optional) - Gives a regular expression that is used to get copyright data from the file contents. Each captured value will be a line assumed to contain a sequence of years and the copyright holder. The regular expression will be enclosed in "m{....}xms". Also it supports an additional shorthand "\Y" which represents a year followed by various separators.
CopyrightClean (optional) - Gives a regular expression that is replaced in the copyright string by a single space.

Releases

3 releases since Debian 8 (Jessie); the text changed 2 times.

  1. 8
  2. 9
  3. 10

Author

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

From license-reconcile 0.16 in Debian 10 (Buster). Parsed by carta from the page's man source.