Skip to content

Commit 1d153b9

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Makefile] test/styling and format action modified: "Analyzer modernize" added.
1 parent d6b8644 commit 1d153b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ test/static: dependencies
8282

8383
test/styling: dependencies
8484
gofmt -l . && echo '✔ Your code looks good.'
85+
$(GO) run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -test ./...
86+
87+
format:
88+
$(GO) run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -apply ./...
8589

8690
coverage.out: env dependencies
8791
$(GOTEST) -v -covermode=atomic -coverprofile="coverage.out" ./exercises/...

0 commit comments

Comments
 (0)