1
0
mirror of https://github.com/xorcare/testing-go-code-with-postgres.git synced 2025-06-30 23:23:40 +02:00

Bump golangci/golangci-lint-action from 6 to 7

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6 to 7.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v6...v7)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
Vasiliy Vasilyuk
2025-04-05 11:40:03 +03:00
committed by github-actions[bot]
parent 2e8f4ee018
commit c3496db60e
4 changed files with 40 additions and 20 deletions

View File

@ -69,8 +69,8 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22.0
go-version: 1.24.1
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
uses: golangci/golangci-lint-action@v7
with:
version: v1.55.2
version: v2.0.2

View File

@ -1,30 +1,49 @@
---
version: "2"
linters:
disable-all: true
default: none
enable:
- errcheck
- godot
- gofumpt
- goimports
- gosimple
- govet
- ineffassign
- misspell
- staticcheck
- testifylint
- testpackage
- typecheck
- unused
- whitespace
- wsl
linters-settings:
goimports:
local-prefixes: github.com/xorcare/testing-go-code-with-postgres
gofumpt:
module-path: github.com/xorcare/testing-go-code-with-postgres
unused:
field-writes-are-uses: false
post-statements-are-reads: true
exported-fields-are-used: false
local-variables-are-used: false
settings:
unused:
field-writes-are-uses: false
post-statements-are-reads: true
exported-fields-are-used: false
local-variables-are-used: false
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofumpt
- goimports
settings:
gofumpt:
module-path: github.com/xorcare/testing-go-code-with-postgres
goimports:
local-prefixes:
- github.com/xorcare/testing-go-code-with-postgres
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$

View File

@ -33,7 +33,7 @@ lint: tools ## Check the project with lint.
.PHONY: tools
tools: ## Install all needed tools, e.g.
@go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.2
@go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.0.2
.PHONY: help
help: ## Show help for each of the Makefile targets.

View File

@ -204,6 +204,7 @@ func TestNewWithTransactionalCleanup(t *testing.T) {
// Arrange
ctx := context.Background()
const sqlStr = `CREATE TABLE "no_conflict" (id integer PRIMARY KEY)`
t.Run("Arrange", func(t *testing.T) {