lang: Move type duplicates checker into a separate package
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user