Skip to content

Commit

Permalink
Bump golangci/golangci-lint from v1.58.2 to v1.59.0 (#74)
Browse files Browse the repository at this point in the history
* Bump golangci/golangci-lint from v1.58.2 to v1.59.0

Bumps golangci/golangci-lint from v1.58.2 to v1.59.0.

---
updated-dependencies:
- dependency-name: golangci/golangci-lint
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update ci.yml

* Update config

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marat Reymers <[email protected]>
Co-authored-by: Marat Reymers <[email protected]>
  • Loading branch information
3 people authored Jun 2, 2024
1 parent 15ea039 commit 1db1aa8
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
go-version: "1.22.3" # update together with dev.dockerfile
- uses: golangci/golangci-lint-action@v6
with:
version: "v1.58.2" # update together with dev.dockerfile
version: "v1.59.0" # update together with dev.dockerfile

check-tidy:
name: go mod tidy
Expand Down
22 changes: 20 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ linters-settings:
reason: "satori's package is not maintained"
- github.com/gofrs/uuid:
recommendations:
- github.com/google/uuid
reason: "gofrs' package is not go module"
- github.com/gofrs/uuid/v5
reason: "gofrs' package was not go module before v5"

govet:
# Enable all analyzers.
Expand Down Expand Up @@ -177,6 +177,24 @@ linters-settings:
packages:
- github.com/jmoiron/sqlx

sloglint:
# Enforce not using global loggers.
# Values:
# - "": disabled
# - "all": report all global loggers
# - "default": report only the default slog logger
# https://github.com/go-simpler/sloglint?tab=readme-ov-file#no-global
# Default: ""
no-global: "all"
# Enforce using methods that accept a context.
# Values:
# - "": disabled
# - "all": report all contextless calls
# - "scope": report only if a context exists in the scope of the outermost function
# https://github.com/go-simpler/sloglint?tab=readme-ov-file#context-only
# Default: ""
context: "scope"

tenv:
# The option `all` will run against whole test files (`_test.go`) regardless of method/function signatures.
# Otherwise, only methods that take `*testing.T`, `*testing.B`, and `testing.TB` as arguments are checked.
Expand Down
2 changes: 1 addition & 1 deletion dev.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
FROM golang:1.22.3 AS go

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

FROM go AS dev
ENV INSIDE_DEV_CONTAINER 1
Expand Down

0 comments on commit 1db1aa8

Please sign in to comment.