mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 13:56:57 +00:00
add "fmt" to justfile
This commit is contained in:
parent
2dbc66d052
commit
e5af66b2cd
1 changed files with 3 additions and 0 deletions
3
Justfile
3
Justfile
|
@ -15,6 +15,9 @@ lint: tool-golangci tool-gofumpt
|
|||
[ $(gofumpt -extra -l . | wc -l) != 0 ] && { echo 'code not formated'; exit 1; }; \
|
||||
golangci-lint run --timeout 5m
|
||||
|
||||
fmt: tool-gofumpt
|
||||
gofumpt -w --extra .
|
||||
|
||||
tool-golangci:
|
||||
@hash golangci-lint> /dev/null 2>&1; if [ $? -ne 0 ]; then \
|
||||
ggo install github.com/golangci/golangci-lint/cmd/golangci-lint@latest; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue