Skip to content

Commit 8a8b557

Browse files
committed
ci: improve golangci-lint output
After the patch golangci-lint prints a file and a line number [1]. 1. golangci/golangci-lint-action#119 Closes #231
1 parent a1f28a6 commit 8a8b557

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/check.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- uses: actions/checkout@v2
3838

3939
- name: golangci-lint
40-
uses: golangci/golangci-lint-action@v2
40+
uses: golangci/golangci-lint-action@v3
4141
with:
4242
# The suppression of the rule `errcheck` may be removed after adding
4343
# errors check in all methods calling EncodeXxx inside.
@@ -47,7 +47,7 @@ jobs:
4747
# The `//nolint` workaround was not the acceptable way of warnings suppression,
4848
# cause those comments get rendered in documentation by godoc.
4949
# See https://github.com/tarantool/go-tarantool/pull/160#discussion_r858608221
50-
args: -E goimports -D errcheck
50+
args: --out-${NO_FUTURE}format colored-line-number -E goimports -D errcheck
5151

5252
codespell:
5353
runs-on: ubuntu-latest

connector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type Connector interface {
1111
Select(space, index interface{}, offset, limit, iterator uint32, key interface{}) (resp *Response, err error)
1212
Insert(space interface{}, tuple interface{}) (resp *Response, err error)
1313
Replace(space interface{}, tuple interface{}) (resp *Response, err error)
14-
Delete(space, index interface{}, key interface{}) (resp *Response, err error)
14+
Delete(space, index interface{}, key interface{}) (resp *Response, err error)
1515
Update(space, index interface{}, key, ops interface{}) (resp *Response, err error)
1616
Upsert(space interface{}, tuple, ops interface{}) (resp *Response, err error)
1717
Call(functionName string, args interface{}) (resp *Response, err error)

0 commit comments

Comments
 (0)