lang: Move type duplicates checker into a separate package

This commit is contained in:
James Shubin
2019-05-22 13:50:27 -04:00
parent 0991264c8c
commit fe64bd9dbb
3 changed files with 47 additions and 18 deletions

View File

@@ -62,6 +62,10 @@ function consistent-imports() {
if grep $'\t"github.com/hashicorp/go-multierror"' "$1"; then
return 1
fi
# import as langutil
if grep $'\t"github.com/purpleidea/mgmt/lang/util"' "$1"; then
return 1
fi
if grep $'\t"github.com/purpleidea/mgmt/engine/util"' "$1"; then # import as engineUtil
return 1
fi