File tree Expand file tree Collapse file tree 3 files changed +1
-101
lines changed Expand file tree Collapse file tree 3 files changed +1
-101
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- .PHONY : test
2
-
3
1
GO ?= go
4
- GOFMT ?= gofumpt -l -s
2
+ GOFMT ?= gofumpt -l -w
5
3
PACKAGES ?= $(shell $(GO ) list ./...)
6
4
GOFILES := $(shell find . -name "* .go" -type f)
7
5
8
- install-embedmd :
9
- @hash embedmd > /dev/null 2>&1 ; if [ $$ ? -ne 0 ]; then \
10
- $(GO ) get -u github.com/campoy/embedmd; \
11
- fi
12
-
13
- embedmd-check : install-embedmd
14
- embedmd -d * .md
15
-
16
- embedmd : install-embedmd
17
- embedmd -w * .md
18
-
19
6
.PHONY : fmt
20
7
fmt :
21
8
$(GOFMT ) -w $(GOFILES )
@@ -35,26 +22,6 @@ test: fmt-check
35
22
vet :
36
23
$(GO ) vet ./...
37
24
38
- lint :
39
- @hash revive > /dev/null 2>&1 ; if [ $$ ? -ne 0 ]; then \
40
- $(GO ) get -u github.com/mgechev/revive; \
41
- fi
42
- revive -config .revive.toml ./... || exit 1
43
-
44
- .PHONY : misspell-check
45
- misspell-check :
46
- @hash misspell > /dev/null 2>&1 ; if [ $$ ? -ne 0 ]; then \
47
- $(GO ) get -u github.com/client9/misspell/cmd/misspell; \
48
- fi
49
- misspell -error ./...
50
-
51
- .PHONY : misspell
52
- misspell :
53
- @hash misspell > /dev/null 2>&1 ; if [ $$ ? -ne 0 ]; then \
54
- $(GO ) get -u github.com/client9/misspell/cmd/misspell; \
55
- fi
56
- misspell -w $(GOFILES )
57
-
58
25
clean :
59
26
$(GO ) clean -modcache -cache -i
60
27
find . -name " coverage.txt" -delete
You can’t perform that action at this time.
0 commit comments