Skip to content

"missing-metadata" aggregate rule should already trigger on one file #1720

Description

@ghmer

The "missing-metadata" rule seems to be an aggregate rule that is only triggered if there is more than one policy file to lint.
As we are currently looking into onboarding applications providing their own rego policies, we'd like to trigger this rule even if there is only one policy file to lint, so that we can establish "proper annotations" right from the start.

We therefore kindly ask to either change this rule to allow for "single rego policy files", or advice on how to achieve checking for missing-metadata without having to rely on the aggregate rule.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    category/customruleIssues related to new or existing linter rules

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions