Skip to content

Commit 14fe8bd

Browse files
committed
chore: update linter
1 parent ee8d456 commit 14fe8bd

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ name: Build and test
33
on: [push, pull_request]
44

55
env:
6-
GOLANGCI_LINT_VERSION: v1.49.0
6+
GOLANGCI_LINT_VERSION: v1.53.2
77

88
jobs:
99
build:
1010
runs-on: ubuntu-20.04
1111
strategy:
1212
matrix:
13-
go-version: [1.18, 1.x]
13+
go-version: [1.19, 1.x]
1414

1515
steps:
1616
- name: Set up Go ${{ matrix.go-version }}
17-
uses: actions/setup-go@v2
17+
uses: actions/setup-go@v3
1818
with:
1919
go-version: ${{ matrix.go-version }}
2020

.golangci.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,15 @@ linters-settings:
2424
gofumpt:
2525
extra-rules: false
2626
depguard:
27-
list-type: blacklist
28-
include-go-root: false
29-
packages:
30-
- github.com/sirupsen/logrus
31-
- github.com/pkg/errors
27+
rules:
28+
main:
29+
deny:
30+
- pkg: "github.com/instana/testify"
31+
desc: not allowed
32+
- pkg: "github.com/sirupsen/logrus"
33+
desc: not allowed
34+
- pkg: "github.com/pkg/errors"
35+
desc: Should be replaced by standard lib errors package
3236
gocritic:
3337
enabled-tags:
3438
- diagnostic

0 commit comments

Comments
 (0)