4
.github/workflows/pr.yml
vendored
4
.github/workflows/pr.yml
vendored
@@ -13,14 +13,14 @@ jobs:
|
|||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '1.21'
|
go-version: '1.24'
|
||||||
- name: Run vet
|
- name: Run vet
|
||||||
run: |
|
run: |
|
||||||
go vet .
|
go vet .
|
||||||
- name: Run golangci-lint
|
- name: Run golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v6
|
uses: golangci/golangci-lint-action@v6
|
||||||
with:
|
with:
|
||||||
version: v1.63.4
|
version: v1.64.5
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: go test -race -covermode=atomic -coverprofile=coverage.out -v .
|
run: go test -race -covermode=atomic -coverprofile=coverage.out -v .
|
||||||
- name: Upload coverage reports to Codecov
|
- name: Upload coverage reports to Codecov
|
||||||
|
|||||||
@@ -139,11 +139,6 @@ linters-settings:
|
|||||||
# Default: false
|
# Default: false
|
||||||
all: true
|
all: true
|
||||||
|
|
||||||
varcheck:
|
|
||||||
# Check usage of exported fields and variables.
|
|
||||||
# Default: false
|
|
||||||
exported-fields: false # default false # TODO: enable after fixing false positives
|
|
||||||
|
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
disable-all: true
|
disable-all: true
|
||||||
@@ -167,9 +162,7 @@ linters:
|
|||||||
- durationcheck # check for two durations multiplied together
|
- durationcheck # check for two durations multiplied together
|
||||||
- errname # Checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error.
|
- errname # Checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error.
|
||||||
- errorlint # errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13.
|
- errorlint # errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13.
|
||||||
# Removed execinquery (deprecated). execinquery is a linter about query string checker in Query function which reads your Go src files and warning it finds
|
|
||||||
- exhaustive # check exhaustiveness of enum switch statements
|
- exhaustive # check exhaustiveness of enum switch statements
|
||||||
- exportloopref # checks for pointers to enclosing loop variables
|
|
||||||
- forbidigo # Forbids identifiers
|
- forbidigo # Forbids identifiers
|
||||||
- funlen # Tool for detection of long functions
|
- funlen # Tool for detection of long functions
|
||||||
# - gochecknoglobals # check that no global variables exist
|
# - gochecknoglobals # check that no global variables exist
|
||||||
@@ -201,7 +194,6 @@ linters:
|
|||||||
- rowserrcheck # checks whether Err of rows is checked successfully
|
- rowserrcheck # checks whether Err of rows is checked successfully
|
||||||
- sqlclosecheck # Checks that sql.Rows and sql.Stmt are closed.
|
- sqlclosecheck # Checks that sql.Rows and sql.Stmt are closed.
|
||||||
- stylecheck # Stylecheck is a replacement for golint
|
- stylecheck # Stylecheck is a replacement for golint
|
||||||
- tenv # tenv is analyzer that detects using os.Setenv instead of t.Setenv since Go1.17
|
|
||||||
- testpackage # linter that makes you use a separate _test package
|
- testpackage # linter that makes you use a separate _test package
|
||||||
- tparallel # tparallel detects inappropriate usage of t.Parallel() method in your Go test codes
|
- tparallel # tparallel detects inappropriate usage of t.Parallel() method in your Go test codes
|
||||||
- unconvert # Remove unnecessary type conversions
|
- unconvert # Remove unnecessary type conversions
|
||||||
@@ -239,12 +231,6 @@ linters:
|
|||||||
#- tagliatelle # Checks the struct tags.
|
#- tagliatelle # Checks the struct tags.
|
||||||
#- thelper # thelper detects golang test helpers without t.Helper() call and checks the consistency of test helpers
|
#- thelper # thelper detects golang test helpers without t.Helper() call and checks the consistency of test helpers
|
||||||
#- wsl # [too strict and mostly code is not more readable] Whitespace Linter - Forces you to use empty lines!
|
#- wsl # [too strict and mostly code is not more readable] Whitespace Linter - Forces you to use empty lines!
|
||||||
## deprecated
|
|
||||||
#- exhaustivestruct # [deprecated, replaced by exhaustruct] Checks if all struct's fields are initialized
|
|
||||||
#- golint # [deprecated, replaced by revive] Golint differs from gofmt. Gofmt reformats Go source code, whereas golint prints out style mistakes
|
|
||||||
#- interfacer # [deprecated] Linter that suggests narrower interface types
|
|
||||||
#- maligned # [deprecated, replaced by govet fieldalignment] Tool to detect Go structs that would take less memory if their fields were sorted
|
|
||||||
#- scopelint # [deprecated, replaced by exportloopref] Scopelint checks for unpinned variables in go programs
|
|
||||||
|
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
|
|||||||
Reference in New Issue
Block a user