Skip to content

Replace deprecated golint with golang-ci lint #709

@tjons

Description

@tjons

It would be nice to be able to add project-specific linting rules to the repo, to avoid style conversations in PRs. https://pkg.go.dev/golang.org/x/lint is now deprecated and frozen, so we will need to find something else that supports defining a set of linters we would like to pass on PRs. https://github.com/golangci/golangci-lint is very popular and already adopted by the OPA core project, so I think a good starting place is to drop in their linter config and make the required changes to CI to ensure that golangci-lint replaces the existing functionality we depend on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions