Unverified Commit 1a4e6200 authored by Kevin Lyda's avatar Kevin Lyda
Browse files

Add dupl and a dupl make target

parent 74bfcc46
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -7,3 +7,4 @@
*.obj
*.lzh
.*.swp
dupl.html
+6 −0
Original line number Diff line number Diff line
@@ -3,6 +3,12 @@ all:
	go generate ./...
	go install ./...

dupl:
	find . -name '*.go' \
		| grep -Fv .sql.go \
		| go tool github.com/mibk/dupl -html -t 50 -files \
		> dupl.html
	xdg-open dupl.html

# vim:ft=make
#
+5 −1
Original line number Diff line number Diff line
@@ -61,6 +61,7 @@ require (
	github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
	github.com/mattn/go-isatty v0.0.20 // indirect
	github.com/mattn/go-runewidth v0.0.16 // indirect
	github.com/mibk/dupl v1.0.0 // indirect
	github.com/mitchellh/copystructure v1.2.0 // indirect
	github.com/mitchellh/reflectwalk v1.0.2 // indirect
	github.com/ncruces/go-strftime v0.1.9 // indirect
@@ -113,4 +114,7 @@ require (
	mvdan.cc/gofumpt v0.7.0 // indirect
)

tool github.com/sqlc-dev/sqlc/cmd/sqlc
tool (
	github.com/mibk/dupl
	github.com/sqlc-dev/sqlc/cmd/sqlc
)
+2 −0