manifest-superfluous-key (C8116)#
A manifest key is set to its default value.
What it does#
Reports manifest keys whose value is the default anyway: a falsy value such as
False, "" or [], or a truthy value for keys that default to True
(active). "installable": True is left alone by default: OCA writes it in
every manifest, and its migration tools flip it. "installable": False is
never reported: it keeps a module that is not migrated yet from being
installed.
Why is this bad?#
Default values add noise and make real differences between modules harder to spot.
Example#
{
"active": True,
"application": False,
}
Use instead: remove both keys.
Configuration#
[tool.odoo-lint.rules.manifest-superfluous-key]
# Keys whose default value is True (default: ["active"])
keys-values-true = ["active", "installable"]
Fix safety#
Safe: the key is removed when its entry has its lines to itself.