diff --git a/.github/workflows/go-cross.yml b/.github/workflows/go-cross.yml index da46bb4..8e53072 100644 --- a/.github/workflows/go-cross.yml +++ b/.github/workflows/go-cross.yml @@ -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: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dc5d2ca..4bbffa8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: diff --git a/.golangci.toml b/.golangci.toml deleted file mode 100644 index 3f14232..0000000 --- a/.golangci.toml +++ /dev/null @@ -1,53 +0,0 @@ -[run] - deadline = "2m" - skip-files = [] - -[linters-settings] - - [linters-settings.govet] - check-shadowing = true - - [linters-settings.gocyclo] - min-complexity = 12.0 - - [linters-settings.maligned] - suggest-new = true - - [linters-settings.goconst] - min-len = 3.0 - min-occurrences = 3.0 - - [linters-settings.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", - ] - -[issues] - exclude-use-default = false - max-per-linter = 0 - max-same-issues = 0 - exclude = [] diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..0dec932 --- /dev/null +++ b/.golangci.yml @@ -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: [] diff --git a/go.mod b/go.mod index 497f9b7..4a3d377 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module github.com/traefik/whoami -go 1.13 +go 1.17 require github.com/gorilla/websocket v1.4.2