Skip to content

Commit

Permalink
build: Fix lint check
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
  • Loading branch information
terrytangyuan committed May 13, 2024
1 parent cf2bd78 commit 89cbdb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ linters:
- rowserrcheck
- sqlclosecheck
- staticcheck
- typecheck
# Temporarily disabled due to flakiness
# - typecheck
- unparam
- unused
linters-settings:
Expand All @@ -65,3 +66,6 @@ issues:
exclude-rules:
- path: server/artifacts/artifact_server_test.go
text: "response body must be closed"
- path: /
linters:
- typecheck
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ lint: server/static/files.go $(GOPATH)/bin/golangci-lint
# Tidy Go modules
go mod tidy
# Lint Go files
$(GOPATH)/bin/golangci-lint run --fix --verbose
$(GOPATH)/bin/golangci-lint run --fix --verbose -c .golangci.yml
# Lint the UI
if [ -e ui/node_modules ]; then yarn --cwd ui lint ; fi

Expand Down

0 comments on commit 89cbdb5

Please sign in to comment.