Skip to content

Commit

Permalink
add gitea-fmt back (go-gitea#18526)
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 authored and Stelios Malathouras committed Mar 28, 2022
1 parent abda5d0 commit f55ec4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,13 @@ clean:

.PHONY: fmt
fmt:
@hash xgogofumpt > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
@echo "Running gitea-fmt(with gofmt)..."
@$(GO) run build/code-batch-process.go gitea-fmt -s -w '{file-list}'
@echo "Running gofumpt"
@hash gofumpt > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
$(GO) install mvdan.cc/gofumpt@latest; \
fi
gofumpt -w -l -extra -lang 1.16 .
@gofumpt -w -l -extra -lang 1.16 .

.PHONY: vet
vet:
Expand Down
1 change: 1 addition & 0 deletions modules/queue/queue_channel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"time"

"code.gitea.io/gitea/modules/log"

"github.com/stretchr/testify/assert"
)

Expand Down

0 comments on commit f55ec4f

Please sign in to comment.