From 6108cd8601fb74ea8a25b43e439cdc3c2de01bed Mon Sep 17 00:00:00 2001 From: aaron-congo Date: Mon, 4 Mar 2024 17:41:49 -0800 Subject: [PATCH] Check lint error output --- .github/workflows/go.yml | 3 --- go/Makefile | 4 +--- go/api/config.go | 3 +-- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0b24deb219..3241606e37 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -68,9 +68,6 @@ jobs: working-directory: ./go run: make build - - name: Setup upterm session - uses: lhotari/action-upterm@v1 - - name: Run linters working-directory: ./go run: make lint-ci diff --git a/go/Makefile b/go/Makefile index 1ec0145dfd..cc03565a08 100644 --- a/go/Makefile +++ b/go/Makefile @@ -46,9 +46,7 @@ lint: gofumpt -d . golines --dry-run --shorten-comments -m 127 . -lint-ci: - go vet ./... - staticcheck ./... +lint-ci: lint if [ "$$(gofumpt -l . | wc -l)" -gt 0 ]; then exit 1; fi if [ "$$(golines -l --shorten-comments -m 127 . | wc -l)" -gt 0 ]; then exit 1; fi diff --git a/go/api/config.go b/go/api/config.go index 9d2417b429..82d6000104 100644 --- a/go/api/config.go +++ b/go/api/config.go @@ -240,8 +240,7 @@ type RedisClusterClientConfiguration struct { baseClientConfiguration } -// NewRedisClusterClientConfiguration returns a [RedisClusterClientConfiguration] with default configuration settings. For -// further configuration, use the [RedisClientConfiguration] With* methods. +// NewRedisClusterClientConfiguration returns a [RedisClusterClientConfiguration] with default configuration settings. For further configuration, use the [RedisClientConfiguration] With* methods. func NewRedisClusterClientConfiguration() *RedisClusterClientConfiguration { return &RedisClusterClientConfiguration{ baseClientConfiguration: baseClientConfiguration{},