Skip to content

Commit

Permalink
chore: update Go and linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Jan 11, 2023
1 parent 3d2aa28 commit e1a8b8f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go-cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
go-version: [ 1.18, 1.19, 1.x ]
go-version: [ 1.19, 1.x ]
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
name: Main Process
runs-on: ubuntu-latest
env:
GO_VERSION: 1.18
GOLANGCI_LINT_VERSION: v1.48.0
GO_VERSION: 1.19
GOLANGCI_LINT_VERSION: v1.50.1
CGO_ENABLED: 0

steps:
Expand Down
15 changes: 9 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ linters-settings:
gofumpt:
extra-rules: true
depguard:
list-type: blacklist
list-type: denylist
include-go-root: false
packages:
- github.com/sirupsen/logrus
Expand All @@ -46,14 +46,16 @@ linters-settings:
linters:
enable-all: true
disable:
- golint # deprecated
- maligned # deprecated
- interfacer # deprecated
- scopelint # deprecated
- deadcode # deprecated
- exhaustivestruct # deprecated
- golint # deprecated
- ifshort # deprecated
- interfacer # deprecated
- maligned # deprecated
- nosnakecase # deprecated
- scopelint # deprecated
- structcheck # deprecated
- varcheck # deprecated
- sqlclosecheck # not relevant (SQL)
- rowserrcheck # not relevant (SQL)
- execinquery # not relevant (SQL)
Expand Down Expand Up @@ -82,4 +84,5 @@ issues:
exclude-use-default: false
max-per-linter: 0
max-same-issues: 0
exclude: []
exclude:
- 'package-comments: should have a package comment'
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/ldez/tagliatelle

go 1.18
go 1.19

require (
github.com/ettle/strcase v0.1.1
Expand Down

0 comments on commit e1a8b8f

Please sign in to comment.