Skip to content

Baseline mechanism that counts violations per file rather than rely on line number #3032

@steve-the-edwards

Description

@steve-the-edwards

Expected Behavior

When using baseline files, it would be great to be able to record the count of violations per file rather than the line number of each violation in the baseline. Or to record both the original line number and the counts and use the counts in the mechanism to check against baseline.

Current Behavior

Currently the baseline files specify the violations with a line number. This means that if an unrelated change is made to the file, all the baselines must be re-generated, and that creates a lot of unwanted friction.

Additional information

  • Current version of ktlint: 1.6.0

Metadata

Metadata

Assignees

No one assigned

    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