Skip to content

The compact output format should include a summary #1364

@anderseknert

Description

@anderseknert
> regal lint --format compact PowerShell/ScubaGear/Rego/TeamsConfig.rego        
+--------------------------------------------------+-------------------------------------------+
|                     Location                     |                Description                |
+--------------------------------------------------+-------------------------------------------+
| PowerShell/ScubaGear/Rego/TeamsConfig.rego:1:9   | Directory structure should mirror package |
| PowerShell/ScubaGear/Rego/TeamsConfig.rego:397:5 | Pointless reassignment of variable        |
| PowerShell/ScubaGear/Rego/TeamsConfig.rego:458:5 | Pointless reassignment of variable        |
| PowerShell/ScubaGear/Rego/TeamsConfig.rego:297:5 | Pointless reassignment of variable        |
| PowerShell/ScubaGear/Rego/TeamsConfig.rego:366:5 | Pointless reassignment of variable        |
| PowerShell/ScubaGear/Rego/TeamsConfig.rego:340:5 | Pointless reassignment of variable        |
| PowerShell/ScubaGear/Rego/TeamsConfig.rego:61:5  | Pointless reassignment of variable        |
| PowerShell/ScubaGear/Rego/TeamsConfig.rego:185:5 | Pointless reassignment of variable        |
| PowerShell/ScubaGear/Rego/TeamsConfig.rego:530:5 | Pointless reassignment of variable        |
| PowerShell/ScubaGear/Rego/TeamsConfig.rego:557:5 | Pointless reassignment of variable        |
| PowerShell/ScubaGear/Rego/TeamsConfig.rego:504:5 | Pointless reassignment of variable        |
| PowerShell/ScubaGear/Rego/TeamsConfig.rego:35:5  | Pointless reassignment of variable        |
+--------------------------------------------------+-------------------------------------------+

While the compact format should be compact, we can afford to include a one-liner summary similar to what the pretty formatter outputs.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions