Skip to content

Commit

Permalink
Update golangci-lint to version 1.25.0
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Apr 26, 2020
1 parent 0796dd8 commit f10697b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Install tools
if: matrix.os == 'ubuntu-latest'
run: |
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.24.0
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.25.0
cd $(mktemp -d)
go mod init tmp
go get mvdan.cc/gofumpt/gofumports
Expand Down
8 changes: 8 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ linters:
- gomnd
- lll
- maligned
- nestif
- testpackage
- wsl

issues:
Expand All @@ -23,6 +25,12 @@ issues:
- linters:
- gochecknoinits
path: cmd/
- linters:
- gosec
path: internal/generate-assets/
- linters:
- gosec
path: internal/generate-helps/
- linters:
- scopelint
path: "_test\\.go"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ generate:

.PHONY: install-tools
install-tools:
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- v1.24.0
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- v1.25.0
( cd $$(mktemp -d) && go mod init tmp && go get mvdan.cc/gofumpt/gofumports )

.PHONY: lint
Expand Down
1 change: 1 addition & 0 deletions cmd/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func (c *Config) runImportCmd(cmd *cobra.Command, args []string) error {
if err != nil {
return err
}
//nolint:gosec
defer f.Close()
switch {
case strings.HasSuffix(arg, ".tar.gz") || strings.HasSuffix(arg, ".tgz"):
Expand Down

0 comments on commit f10697b

Please sign in to comment.