Skip to content

Commit 282ba27

Browse files
committed
github-ci: enable the goimports linter
goimports[1] helps to sort imports in the same order. In addition to fixing imports, it also formats the code in the same style as gofmt. goimports linter for golangci-lint[2] provides checks for this formatter. 1. https://pkg.go.dev/golang.org/x/tools/cmd/goimports 2. https://golangci-lint.run/usage/linters/
1 parent a0685c4 commit 282ba27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/check.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ 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 gofmt -D errcheck
50+
args: -E goimports -D errcheck

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ To check if the current changes will pass the linter in CI, install
4242
golnagci-lint from [sources](https://golangci-lint.run/usage/install/)
4343
and run it with next flags:
4444
```bash
45-
golangci-lint run -E gofmt -D errcheck
45+
golangci-lint run -E goimports -D errcheck
4646
```
4747

4848
## Benchmarking

0 commit comments

Comments
 (0)