Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
164 changes: 5 additions & 159 deletions cli/.golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,170 +1,16 @@
run:
go: '1.25'
go: "1.25"
timeout: 5m
skip-dirs:
- vendor
- tests

linters:
disable-all: true
enable:
- asasalint
- bidichk
- bodyclose
- contextcheck
- copyloopvar
- cyclop
- decorder
- dogsled
- dupl
- dupword
- errcheck
- errchkjson
- errname
- errorlint
- exhaustive
- exhaustruct
- forbidigo
- forcetypeassert
- funlen
- gcheckcompilerdirectives
- gciimports
- gochecknoglobals
- gochecknoinits
- gocognac
- goconst
- gocritic
- gocyclo
- godot
- godox
- gofmt
- gofumpt
- goheader
- goimports
- golint
- gomodguard
- goprintffuncname
- gosec
- gosimple
- gosmopolitan
- govet
- gozxyglobs
- grouper
- importas
- inamedparam
- ineffassign
- interfacebloat
- intrange
- ireturn
- isnil
- lll
- loggercheck
- looppointer
- maintidx
- makezero
- mirror
- misspell
- mnd
- mockery
- mnd
- musttag
- nakedret
- nestif
- nilerr
- nilnil
- noctx
- nolintlint
- nonamedreturns
- nosprintfhostport
- prealloc
- predeclared
- promlinter
- protogetter
- reassign
- revive
- ructx
- sloglint
- slurp
- spancheck
- sqlc
- errcheck
- staticcheck
- stdlibuintptr
- stylecheck
- tagliatelle
- tenv
- testableexamples
- testifylint
- testpackage
- thelper
- tparallel
- typecheck
- unconvert
- undeclaredname
- unparam
- ineffassign
- unused
- usestdlibvars
- varnamelen
- wastedassign
- whitespace
- wrapcheck
- wsl
- zerologlint
disable:
- goerr113 # Too strict for CLI error messages
- wsl # Whitespace rules too nitpicky
- nlreturn # Conflicts with code organization

fast: false
- gofmt

issues:
exclude-use-default: false
exclude:
- "G101" # Audit findings for: password_name
- "G601" # Implicit memory aliasing in for loop
exclude-dirs:
- vendor
- node_modules
- .git

linters-settings:
cyclop:
max-complexity: 10

funlen:
lines: 60
statements: 40

gocognac:
max-complexity: 10

gocyclo:
min-complexity: 10

golangci-lint-version: 1.59.0

govet:
check-shadowing: true

lll:
line-length: 120

tagliatelle:
case: snake

varnamelen:
max-distance: 5
min-name-length: 2

ireturn:
allow:
- anon
- error
- empty
- stdlib
- gopkg.in/yaml.v2

sloglint:
no-mixed-args: true

testifylint:
require-error-is-type: true
require-error-is-comparison: true
4 changes: 3 additions & 1 deletion cli/internal/cli/telemetry_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ func queryTelemetry(ctx context.Context, cfg supabaseConfig, req telemetryQueryR
if err != nil {
return telemetryQueryResponse{}, fmt.Errorf("supabase request failed: %w", err)
}
defer httpResp.Body.Close()
defer func() {
_ = httpResp.Body.Close()
}()

body, err := io.ReadAll(httpResp.Body)
if err != nil {
Expand Down
Loading