Skip to content

Enhance policy devel lint error output with rule ids and documentation links #2377

@kaysavps

Description

@kaysavps

Currently, when running the Rego linter, errors are reported in a generic way (e.g., “Messy incremental rule” or “Prefer some .. in for iteration”), but it’s not clear which specific rule triggered the warning or where to find more information.

Current output example:

----------+
| # | ISSUE |
+---+-----------------------------------------------------------------------------------------------------+
| 1 | cyclonedx.rego:32: Messy incremental rule |
| 4 | cyclonedx.rego:221: Prefer some .. in for iteration |
+---+-----------------------------------------------------------------------------------------------------+

Proposed improvement:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions