Skip to content

Commit 6f6b849

Browse files
authored
add gitea-fmt back (#18526)
1 parent bb5f859 commit 6f6b849

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,13 @@ clean:
231231

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

239242
.PHONY: vet
240243
vet:

modules/queue/queue_channel_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"time"
1111

1212
"code.gitea.io/gitea/modules/log"
13+
1314
"github.com/stretchr/testify/assert"
1415
)
1516

0 commit comments

Comments
 (0)