Skip to content

Commit

Permalink
Merge pull request #230 from maratori/dependabot/docker/golangci/gola…
Browse files Browse the repository at this point in the history
…ngci-lint-v1.60.2

Bump golangci/golangci-lint from v1.60.1 to v1.60.2
  • Loading branch information
maratori authored Aug 21, 2024
2 parents e0096c1 + 717c791 commit c738300
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
go-version: "1.23.0" # update together with Dockerfile.dev
- uses: golangci/golangci-lint-action@v6
with:
version: "v1.60.1" # update together with Dockerfile.dev
version: "v1.60.2" # update together with Dockerfile.dev

check-tidy:
name: go mod tidy
Expand Down
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,13 @@ linters:
- bidichk # checks for dangerous unicode character sequences
- bodyclose # checks whether HTTP response body is closed successfully
- canonicalheader # checks whether net/http.Header uses canonical header
- copyloopvar # detects places where loop variables are copied
- copyloopvar # detects places where loop variables are copied (Go 1.22+)
- cyclop # checks function and package cyclomatic complexity
- dupl # tool for code clone detection
- durationcheck # checks for two durations multiplied together
- errname # checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error
- errorlint # finds code that will cause problems with the error wrapping scheme introduced in Go 1.13
- exhaustive # checks exhaustiveness of enum switch statements
- exportloopref # checks for pointers to enclosing loop variables
- fatcontext # detects nested contexts in loops
- forbidigo # forbids identifiers
- funlen # tool for detection of long functions
Expand Down Expand Up @@ -306,6 +305,7 @@ linters:
#- err113 # [too strict] checks the errors handling expressions
#- errchkjson # [don't see profit + I'm against of omitting errors like in the first example https://github.com/breml/errchkjson] checks types passed to the json encoding functions. Reports unsupported types and optionally reports occasions, where the check for the returned error can be omitted
#- execinquery # [deprecated] checks query string in Query function which reads your Go src files and warning it finds
#- exportloopref # [not necessary from Go 1.22] checks for pointers to enclosing loop variables
#- forcetypeassert # [replaced by errcheck] finds forced type assertions
#- gofmt # [replaced by goimports] checks whether code was gofmt-ed
#- gofumpt # [replaced by goimports, gofumports is not available yet] checks whether code was gofumpt-ed
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
FROM golang:1.23.0 AS go

# update together with .github/workflows/ci.yml
FROM golangci/golangci-lint:v1.60.1 AS linter
FROM golangci/golangci-lint:v1.60.2 AS linter

FROM go AS dev
ENV INSIDE_DEV_CONTAINER 1
Expand Down

0 comments on commit c738300

Please sign in to comment.