lang, test: Fix capitalization for consistency

This commit is contained in:
James Shubin
2024-02-25 18:54:26 -05:00
parent dd0e67540f
commit c37ff3efce
4 changed files with 20 additions and 16 deletions

View File

@@ -83,11 +83,15 @@ function consistent-imports() {
if grep $'\t"github.com/hashicorp/go-multierror"' "$1"; then
return 1
fi
# import as langutil
# import as *Util (should be fooUtil) with util capitalized
if grep $'util "github.com/purpleidea/mgmt"' "$1"; then
return 1
fi
# import as langUtil
if grep $'\t"github.com/purpleidea/mgmt/lang/util"' "$1"; then
return 1
fi
# import as engineutil
# import as engineUtil
if grep $'\t"github.com/purpleidea/mgmt/engine/util"' "$1"; then
return 1
fi