You've already forked testing-go-code-with-postgres
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:
committed by
github-actions[bot]
parent
2e8f4ee018
commit
c3496db60e
6
.github/workflows/go.yml
vendored
6
.github/workflows/go.yml
vendored
@ -69,8 +69,8 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: 1.22.0
|
go-version: 1.24.1
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v6
|
uses: golangci/golangci-lint-action@v7
|
||||||
with:
|
with:
|
||||||
version: v1.55.2
|
version: v2.0.2
|
||||||
|
@ -1,30 +1,49 @@
|
|||||||
---
|
---
|
||||||
|
version: "2"
|
||||||
linters:
|
linters:
|
||||||
disable-all: true
|
default: none
|
||||||
enable:
|
enable:
|
||||||
- errcheck
|
- errcheck
|
||||||
- godot
|
- godot
|
||||||
- gofumpt
|
|
||||||
- goimports
|
|
||||||
- gosimple
|
|
||||||
- govet
|
- govet
|
||||||
- ineffassign
|
- ineffassign
|
||||||
- misspell
|
- misspell
|
||||||
- staticcheck
|
- staticcheck
|
||||||
- testifylint
|
- testifylint
|
||||||
- testpackage
|
- testpackage
|
||||||
- typecheck
|
|
||||||
- unused
|
- unused
|
||||||
- whitespace
|
- whitespace
|
||||||
- wsl
|
- wsl
|
||||||
|
settings:
|
||||||
linters-settings:
|
unused:
|
||||||
goimports:
|
field-writes-are-uses: false
|
||||||
local-prefixes: github.com/xorcare/testing-go-code-with-postgres
|
post-statements-are-reads: true
|
||||||
gofumpt:
|
exported-fields-are-used: false
|
||||||
module-path: github.com/xorcare/testing-go-code-with-postgres
|
local-variables-are-used: false
|
||||||
unused:
|
exclusions:
|
||||||
field-writes-are-uses: false
|
generated: lax
|
||||||
post-statements-are-reads: true
|
presets:
|
||||||
exported-fields-are-used: false
|
- comments
|
||||||
local-variables-are-used: false
|
- 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$
|
||||||
|
2
Makefile
2
Makefile
@ -33,7 +33,7 @@ lint: tools ## Check the project with lint.
|
|||||||
|
|
||||||
.PHONY: tools
|
.PHONY: tools
|
||||||
tools: ## Install all needed tools, e.g.
|
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
|
.PHONY: help
|
||||||
help: ## Show help for each of the Makefile targets.
|
help: ## Show help for each of the Makefile targets.
|
||||||
|
@ -204,6 +204,7 @@ func TestNewWithTransactionalCleanup(t *testing.T) {
|
|||||||
|
|
||||||
// Arrange
|
// Arrange
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
const sqlStr = `CREATE TABLE "no_conflict" (id integer PRIMARY KEY)`
|
const sqlStr = `CREATE TABLE "no_conflict" (id integer PRIMARY KEY)`
|
||||||
|
|
||||||
t.Run("Arrange", func(t *testing.T) {
|
t.Run("Arrange", func(t *testing.T) {
|
||||||
|
Reference in New Issue
Block a user