Skip to content

Commit

Permalink
chore: update linter, Go, and seihon
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Dec 3, 2021
1 parent 04e5350 commit 28f8337
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 58 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.15, 1.16, 1.x ]
go-version: [ 1.17, 1.x ]
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
name: Main Process
runs-on: ubuntu-latest
env:
GO_VERSION: 1.16
GOLANGCI_LINT_VERSION: v1.41.1
SEIHON_VERSION: v0.8.3
GO_VERSION: 1.17
GOLANGCI_LINT_VERSION: v1.43.0
SEIHON_VERSION: v0.8.5
CGO_ENABLED: 0

steps:
Expand Down
53 changes: 0 additions & 53 deletions .golangci.toml

This file was deleted.

46 changes: 46 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
run:
deadline: 2m
skip-files: []
linters-settings:
govet:
check-shadowing: true
gocyclo:
min-complexity: 12
goconst:
min-len: 3
min-occurrences: 3
misspell:
locale: US

linters:
enable-all: true
disable:
- golint # deprecated
- scopelint # deprecated
- interfacer # deprecated
- maligned # deprecated
- lll
- gosec
- dupl
- prealloc
- gochecknoglobals
- gochecknoinits
- gomnd
- wsl
- nlreturn
- testpackage
- paralleltest
- tparallel
- goerr113
- wrapcheck
- exhaustive
- exhaustivestruct
- forbidigo
- varnamelen
- nilnil

issues:
exclude-use-default: false
max-per-linter: 0
max-same-issues: 0
exclude: []
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/traefik/whoami

go 1.13
go 1.17

require github.com/gorilla/websocket v1.4.2

0 comments on commit 28f8337

Please sign in to comment.