Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add golangci-lint #114

Open
wants to merge 1 commit into
base: v1
Choose a base branch
from
Open

add golangci-lint #114

wants to merge 1 commit into from

Conversation

lwsanty
Copy link

@lwsanty lwsanty commented Oct 18, 2019

add linter command

logic:

  • download binary if it's not downloaded yet
  • if .golangci.yml is present run linter with respect to this config file
  • if .golangci.yml is absent - use additional options from LINTER_NON_CONFIG_OPTIONS variable(see examples)

Basically, this update will be useful to those who want to setup linter both with the config or just to include a couple of options and ease the life to those who don't wanna deal with the hook checks for multiple repos.

Signed-off-by: lwsanty lwsanty@gmail.com

add linter command

logic:
- download binary if it's not downloaded yet
- if .golangci.yml is present run linter with respect to this config file
- if .golangci.yml is absent - use additional options from LINTER_NON_CONFIG_OPTIONS variable(see [examples](https://github.com/golangci/golangci-lint#comparison-with-gometalinter))

Basically, this update will be useful to those who want to setup linter both with the config or just to include a couple of options and ease the life to those who don't wanna deal with the hook checks for multiple repos.

Signed-off-by: lwsanty <lwsanty@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant