From 2aaaa371be5b97e52c4c524b3b56b39f0283c755 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Mon, 22 Jan 2024 21:33:14 +0100 Subject: [PATCH] Update golangci-lint --- .github/workflows/main.yml | 2 +- .golangci.yml | 9 ++++++++- contains.go | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 947749b..019b9ff 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,4 +37,4 @@ jobs: go-version: stable - uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc with: - version: v1.54.2 + version: v1.55.2 diff --git a/.golangci.yml b/.golangci.yml index d1252b3..e24e49e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -20,6 +20,7 @@ linters: - forbidigo - forcetypeassert - gci + - ginkgolinter - gocheckcompilerdirectives - goconst - gocritic @@ -36,15 +37,18 @@ linters: - goprintffuncname - gosec - gosimple + - gosmopolitan - govet - grouper - importas + - inamedparam - ineffassign - ireturn - lll - loggercheck - maintidx - makezero + - mirror - misspell - musttag - nakedret @@ -54,14 +58,18 @@ linters: - nolintlint - nonamedreturns - nosprintfhostport + - perfsprint - prealloc - predeclared - promlinter + - protogetter - reassign - rowserrcheck + - sloglint - sqlclosecheck - staticcheck - stylecheck + - tagalign - tagliatelle - tenv - testpackage @@ -77,7 +85,6 @@ linters: - asasalint - cyclop - depguard - - exhaustivestruct - exhaustruct - funlen - gochecknoglobals diff --git a/contains.go b/contains.go index 0877ac4..998e312 100644 --- a/contains.go +++ b/contains.go @@ -11,7 +11,7 @@ import ( // A Stater implements Stat. It is assumed that the fs.FileInfos returned by // Stat are compatible with os.SameFile. type Stater interface { - Stat(string) (fs.FileInfo, error) + Stat(name string) (fs.FileInfo, error) } // Contains returns true if p is reachable by traversing through prefix. prefix