license-allowed (ODC8105)
Preview (since 0.16.2.2) · Related issues · View source
Derived from the odoo linter.
This rule is unstable and in preview. The --preview flag is required for use.
What it does
Checks that the license key in an Odoo module's __manifest__.py is one of the
commonly-accepted OSI/OCA license identifiers.
Why is this bad?
An unrecognized license string usually indicates a typo, and tooling that reads the manifest (including Odoo itself) won't recognize it.
Example
Options
The default is the list pylint-odoo accepts. A project that allows others — a proprietary
license such as OPL-1, say — names its own list through the option, which replaces the
default rather than adding to it.