Skip to content

Commit

Permalink
Use Go 1.17.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbub committed Aug 31, 2021
1 parent cff2fe7 commit c90f3a6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 39 deletions.
4 changes: 2 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ clone:

steps:
- name: build
image: golang:1.16
image: golang:1.17
commands:
- go test -v ./...

- name: lint
image: golangci/golangci-lint:v1.27.0
image: golangci/golangci-lint:v1.42.0
commands:
- golangci-lint run -v
48 changes: 12 additions & 36 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,15 @@
run:
timeout: 1m
linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
- errcheck
- funlen
- gochecknoinits
- goconst
- gocognit
- gocritic
- gocyclo
- gofmt
- goimports
- golint
- gosec
- gosimple
- govet
- ineffassign
- interfacer
- lll
- maligned
- misspell
- nakedret
- prealloc
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace
enable-all: true
disable:
- testpackage
- paralleltest
- gomnd
- gochecknoglobals
- nlreturn
- exhaustivestruct
- scopelint
- wsl
- gci
- gofumpt
8 changes: 7 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
module github.com/jbub/banking

go 1.16
go 1.17

require github.com/stretchr/testify v1.7.0

require (
github.com/davecgh/go-spew v1.1.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
)

0 comments on commit c90f3a6

Please sign in to comment.