committed by
GitHub
parent
f1e854a1c0
commit
9c913ee847
12
script/linter/pkgdoc
Executable file
12
script/linter/pkgdoc
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
source script/lib.sh
|
||||
|
||||
status=0
|
||||
pkgs=$(go list -f '{{if not .Doc}}{{.ImportPath}}{{end}}' ./...)
|
||||
for pkg in ${pkgs}; do
|
||||
print_error "${pkg} missing docstring"
|
||||
status=1
|
||||
done
|
||||
|
||||
exit ${status}
|
||||
Reference in New Issue
Block a user