Skip to content
Snippets Groups Projects
Unverified Commit 1a4e6200 authored by Kevin Lyda's avatar Kevin Lyda
Browse files

Add dupl and a dupl make target

parent 74bfcc46
No related branches found
No related tags found
No related merge requests found
...@@ -7,3 +7,4 @@ ...@@ -7,3 +7,4 @@
*.obj *.obj
*.lzh *.lzh
.*.swp .*.swp
dupl.html
...@@ -3,6 +3,12 @@ all: ...@@ -3,6 +3,12 @@ all:
go generate ./... go generate ./...
go install ./... 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 # vim:ft=make
# #
...@@ -61,6 +61,7 @@ require ( ...@@ -61,6 +61,7 @@ require (
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.16 // 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/copystructure v1.2.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/ncruces/go-strftime v0.1.9 // indirect github.com/ncruces/go-strftime v0.1.9 // indirect
...@@ -113,4 +114,7 @@ require ( ...@@ -113,4 +114,7 @@ require (
mvdan.cc/gofumpt v0.7.0 // indirect 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
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment