Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Add Golangci-lint and fix errors #640

Merged
merged 5 commits into from
Jul 20, 2020

Conversation

darkowlzz
Copy link
Contributor

Adds golangci-lint github action.

@darkowlzz darkowlzz added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Jul 12, 2020
cmd/ignited/cmd/gitops.go Outdated Show resolved Hide resolved
pkg/source/docker.go Outdated Show resolved Hide resolved
Golangci-lint run fails due to errors in pkg/dm even if pkg/dm is
added in skip-dirs. The skip is a lint skip, the go code must be valid.
Due to the size of the repo, lint run fails after a minute, the
default timeout. Pass --timeout argument to increase the run timeout.
Copy link
Contributor

@luxas luxas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
one minor nit only

pkg/dmlegacy/image_format.go Outdated Show resolved Hide resolved
Copy link
Contributor

@twelho twelho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 some more fixes and cleanups coming in a follow-up PR.

@stealthybox stealthybox merged commit afdf7a4 into weaveworks:master Jul 20, 2020
@darkowlzz darkowlzz deleted the golangci-lint branch July 20, 2020 15:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants