Skip to content

Commit

Permalink
golangci: bump version add and remove linter items
Browse files Browse the repository at this point in the history
  • Loading branch information
shazbert committed Apr 6, 2022
1 parent 3189466 commit 3c98bff
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ before_test:

test_script:
# test back-end
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.42.1
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.45.2
- '%GOPATH%\bin\golangci-lint.exe run --verbose'
- ps: >-
if($env:APPVEYOR_SCHEDULED_BUILD -eq 'true') {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.42.1
version: v1.45.2
15 changes: 13 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,19 @@ linters:

# disabled by default linters
- asciicheck
# - bidichk
- bodyclose
# - containedctx
# - contextcheck
# - cyclop
- decorder
- depguard
- dogsled
# - dupl
- durationcheck
# - errchkjson
- errname
# - errorlint
- errorlint
# - exhaustive
# - exhaustivestruct
- exportloopref
Expand All @@ -58,16 +63,20 @@ linters:
- gomodguard
- goprintffuncname
- gosec
# - grouper
- ifshort
# - importas
# - interfacer // deprecated by its owner
# - ireturn
# - lll
# - maintidx
- makezero
# - maligned
# - maligned // [deprecated]
- misspell
- nakedret
# - nestif
- nilerr
# - nilnil
# - nlreturn
- noctx
- nolintlint
Expand All @@ -81,11 +90,13 @@ linters:
# - sqlclosecheck
- stylecheck
# - tagliatelle
# - tenv
# - testpackage
- thelper
- tparallel
- unconvert
- unparam
# - varnamelen
- wastedassign
- whitespace
# - wrapcheck
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
LDFLAGS = -ldflags "-w -s"
GCTPKG = github.com/thrasher-corp/gocryptotrader
LINTPKG = github.com/golangci/golangci-lint/cmd/golangci-lint@v1.42.1
LINTPKG = github.com/golangci/golangci-lint/cmd/golangci-lint@v1.45.2
LINTBIN = $(GOPATH)/bin/golangci-lint
GCTLISTENPORT=9050
GCTPROFILERLISTENPORT=8085
Expand Down

0 comments on commit 3c98bff

Please sign in to comment.