Skip to content

Commit 6157035

Browse files
committed
Update golangci-lint to 1.55.2, update depguard config
1 parent 9f03b5b commit 6157035

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: golangci-lint
3939
uses: golangci/golangci-lint-action@v3
4040
with:
41-
version: v1.52.2
41+
version: v1.55.2
4242
- name: go mod tidy
4343
run: go mod tidy
4444
- name: check for any changes

.golangci.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,18 @@ linters-settings:
99
disable:
1010
- fieldalignment
1111
depguard:
12-
list-type: blacklist
13-
include-go-root: true
14-
include-go-std-lib: true
12+
rules:
13+
main:
14+
allow:
15+
- $gostd
16+
- github.com/denisenkom/go-mssqldb
17+
- github.com/go-sql-driver/mysql
18+
- github.com/go-gorp/gorp/v3
19+
- github.com/lib/pq
20+
- github.com/mattn/go-sqlite3
21+
- github.com/mitchellh/cli
22+
- github.com/olekukonko/tablewriter
23+
- github.com/rubenv/sql-migrate
1524
exhaustive:
1625
default-signifies-exhaustive: true
1726
nolintlint:

0 commit comments

Comments
 (0)