Skip to content

manifest-superfluous-key (ODC8116)

Preview (since 0.16.2.2) · Related issues · View source

Derived from the odoo linter.

Fix is sometimes available.

This rule is unstable and in preview. The --preview flag is required for use.

What it does

Checks for manifest keys explicitly set to their own default value.

Why is this bad?

Setting a key to the value it would already have by default is redundant.

Example

{
    "installable": True,
    "depends": [],
}

Use instead:

{}

Options

Names the keys Odoo defaults to True, so that stating them is what counts as superfluous.