diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index d6a72e55b..2297b0b3c 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -37,7 +37,8 @@ jobs: - uses: actions/checkout@v2 - name: golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v3 + continue-on-error: true with: # The suppression of the rule `errcheck` may be removed after adding # errors check in all methods calling EncodeXxx inside. @@ -47,8 +48,17 @@ jobs: # The `//nolint` workaround was not the acceptable way of warnings suppression, # cause those comments get rendered in documentation by godoc. # See https://github.com/tarantool/go-tarantool/pull/160#discussion_r858608221 + # + # The first run is for GitHub Actions error format. args: -E goimports -D errcheck + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + # The second run is for human-readable error format with a file name + # and a line number. + args: --out-${NO_FUTURE}format colored-line-number -E goimports -D errcheck + codespell: runs-on: ubuntu-latest if: | diff --git a/connector.go b/connector.go index d93c69ec8..f789ba326 100644 --- a/connector.go +++ b/connector.go @@ -11,7 +11,7 @@ type Connector interface { Select(space, index interface{}, offset, limit, iterator uint32, key interface{}) (resp *Response, err error) Insert(space interface{}, tuple interface{}) (resp *Response, err error) Replace(space interface{}, tuple interface{}) (resp *Response, err error) - Delete(space, index interface{}, key interface{}) (resp *Response, err error) + Delete(space, index interface{}, key interface{}) (resp *Response, err error) Update(space, index interface{}, key, ops interface{}) (resp *Response, err error) Upsert(space interface{}, tuple, ops interface{}) (resp *Response, err error) Call(functionName string, args interface{}) (resp *Response, err error)