mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 03:04:02 +03:00
Use gofumpt from github
This commit is contained in:
+1
-1
@@ -1,6 +1,7 @@
|
|||||||
[tools]
|
[tools]
|
||||||
go = "latest"
|
go = "latest"
|
||||||
"go:golang.org/x/tools/gopls" = "latest"
|
"go:golang.org/x/tools/gopls" = "latest"
|
||||||
|
"go:mvdan.cc/gofumpt" = "latest"
|
||||||
|
|
||||||
[vars]
|
[vars]
|
||||||
fuzzflags = "-fuzztime=120s"
|
fuzzflags = "-fuzztime=120s"
|
||||||
@@ -96,6 +97,5 @@ run = "pkgsite -http 0.0.0.0:10000"
|
|||||||
|
|
||||||
[tasks.fmt]
|
[tasks.fmt]
|
||||||
description = "Reformat source code"
|
description = "Reformat source code"
|
||||||
tools.gofumpt = "latest"
|
|
||||||
sources = ["**/*.go"]
|
sources = ["**/*.go"]
|
||||||
run = "gofumpt -w --extra ."
|
run = "gofumpt -w --extra ."
|
||||||
|
|||||||
Reference in New Issue
Block a user