Skip to content

Commit c650d57

Browse files
committed
chore: clean up configuration and Makefile targets
- Remove `.editorconfig` file - Remove `.revive.toml` file - Change `gofumpt` flag from `-l -s` to `-l -w` in `Makefile` - Remove `install-embedmd`, `embedmd-check`, and `embedmd` targets from `Makefile` - Remove `lint`, `misspell-check`, and `misspell` targets from `Makefile` Signed-off-by: appleboy <[email protected]>
1 parent e779000 commit c650d57

File tree

3 files changed

+1
-101
lines changed

3 files changed

+1
-101
lines changed

.editorconfig

Lines changed: 0 additions & 42 deletions
This file was deleted.

.revive.toml

Lines changed: 0 additions & 25 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,8 @@
1-
.PHONY: test
2-
31
GO ?= go
4-
GOFMT ?= gofumpt -l -s
2+
GOFMT ?= gofumpt -l -w
53
PACKAGES ?= $(shell $(GO) list ./...)
64
GOFILES := $(shell find . -name "*.go" -type f)
75

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-
196
.PHONY: fmt
207
fmt:
218
$(GOFMT) -w $(GOFILES)
@@ -35,26 +22,6 @@ test: fmt-check
3522
vet:
3623
$(GO) vet ./...
3724

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-
5825
clean:
5926
$(GO) clean -modcache -cache -i
6027
find . -name "coverage.txt" -delete

0 commit comments

Comments
 (0)