---
name: "Module::CPANTS::Kwalitee::License"
section: "3pm"
platform: "linux"
package: "libmodule-cpants-analyse-perl"
version: "1.02-1+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Module::CPANTS::Kwalitee::License"
---

# Module::CPANTS::Kwalitee::License(3pm)

Checks if there is a license

## NAME

Module::CPANTS::Kwalitee::License - Checks if there is a license

## SYNOPSIS

Checks if the distribution specifies a license.

## DESCRIPTION

### Methods

*order*

Defines the order in which Kwalitee tests should be run.

Returns `100`.

*analyse*

`"MCK::License"` checks if there's a `"license"` field `"META.yml"`. Additionally, it looks for a file called LICENSE and a POD section named LICENSE

*kwalitee\_indicators*

Returns the Kwalitee Indicators data structure.

- •

  meta\_yml\_has\_license

- •

  has\_known\_license\_in\_source\_file

- •

  has\_license\_in\_source\_file

- •

  has\_human\_readable\_license

- •

  has\_separate\_license\_file

### License information

Places where the license information is taken from:

Has a LICENSE file   file\_license 1\|0

Content of LICENSE file matches License X from Software::License

License in META.yml

License in META.yml matches one of the known licenses

License in source files recognized by Software::LicenseUtils For each file keep where is was it recognized.

Has license or copyright entry in pod (that might not be recognized by Software::LicenseUtils)

\# has\_license

## SEE ALSO

Module::CPANTS::Analyse

## AUTHOR

Thomas Klausner \<https://metacpan.org/author/domm\> and Gábor Szabó \<https://metacpan.org/author/szabgab\>

## COPYRIGHT AND LICENSE

Copyright © 2003–2009 Thomas Klausner \<https://metacpan.org/author/domm\>

Copyright © 2006–2008 Gábor Szabó \<https://metacpan.org/author/szabgab\>

You may use and distribute this module according to the same terms that Perl is distributed under.
