File tree 2 files changed +6
-18
lines changed
2 files changed +6
-18
lines changed Original file line number Diff line number Diff line change 25
25
rev : c3086eea8af86847dbdff2e46b85a5fe3c9d9656
26
26
hooks :
27
27
- id : go-static-check
28
+
29
+ - repo : https://github.com/igorshubovych/markdownlint-cli
30
+ rev : v0.31.1
31
+ hooks :
32
+ - id : markdownlint
33
+ - id : markdownlint-fix
Original file line number Diff line number Diff line change @@ -32,11 +32,8 @@ GOINSTALL := $(GO) install
32
32
GOFLAGS := -race
33
33
STATICCHECK := staticcheck
34
34
LICENSEEYE := license-eye
35
- MDLINT := markdownlint
36
35
PIP := pip3
37
36
PIPINSTALL := $(PIP ) install
38
- NPM := npm
39
- NPMINSTALL := $(NPM ) install
40
37
41
38
# init arch
42
39
ARCH := $(shell getconf LONG_BIT)
@@ -67,12 +64,6 @@ define PIP_INSTALL_PKG
67
64
@echo $(1 ) installed
68
65
endef
69
66
70
- define NPM_INSTALL_PKG
71
- @echo installing $(1 )
72
- $(NPMINSTALL ) $(1 )
73
- @echo $(1 ) installed
74
- endef
75
-
76
67
# make, make all
77
68
all : prepare compile package
78
69
@@ -116,7 +107,6 @@ package:
116
107
117
108
# make deps
118
109
deps :
119
- $(call NPM_INSTALL_PKG, markdownlint-cli)
120
110
$(call PIP_INSTALL_PKG, pre-commit)
121
111
$(call INSTALL_PKG, goyacc, golang.org/x/tools/cmd/goyacc)
122
112
$(call INSTALL_PKG, staticcheck, honnef.co/go/tools/cmd/staticcheck)
@@ -127,14 +117,6 @@ precommit:
127
117
pre-commit autoupdate
128
118
pre-commit install --install-hooks
129
119
130
- # make mdlint
131
- mdlint :
132
- $(MDLINT ) --ignore $(WORKROOT ) /** /testdata/** /* .md $(WORKROOT )
133
-
134
- # make mdlint-fix
135
- mdlint-fix :
136
- $(MDLINT ) --fix --ignore $(WORKROOT ) /** /testdata/** /* .md $(WORKROOT )
137
-
138
120
# make check
139
121
check :
140
122
$(STATICCHECK ) ./...
You can’t perform that action at this time.
0 commit comments