Skip to content

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>
@lwsanty lwsanty requested a review from smola October 18, 2019 12:15
@lwsanty lwsanty self-assigned this Oct 18, 2019
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.

1 participant