Skip to content

Provide deterministic output of linter warnings #1513

Closed
@invidian

Description

@invidian

Is your feature request related to a problem? Please describe.

Currently output from running the linter is sorted randomly:

1 ✗ (533ms) 18:02:25 invidian@dellxps15mateusz ~/repos/kinvolk/flatcar-linux-update-operator (invidian/more-cleanups)*$ golangci-lint run ./... | sha256sum
ce6aef0b8ed653437b2ea9b089508d17f5d9da4eb88e2cd609f008db1fb10d1d  -
0 ✓ (512ms) 18:04:04 invidian@dellxps15mateusz ~/repos/kinvolk/flatcar-linux-update-operator (invidian/more-cleanups)*$ golangci-lint run ./... | sha256sum
4514787c1974b1a875005d03b05538bbec563d4280208a5a1c5745bb4d997861  -
0 ✓ (590ms) 18:04:06 invidian@dellxps15mateusz ~/repos/kinvolk/flatcar-linux-update-operator (invidian/more-cleanups)*$ golangci-lint run ./... | sha256sum
92df4334649dee39870b22b683c9f8abec00307806def963c10668b5c48fb014  -

This makes it difficult to fix one issue, then re-run the linter as all warnings change the order.

Describe the solution you'd like

Output from golangci-lint run ./... should be the same on every invocation if source code does not change.

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