diff --git a/cmd/gormlint/main.go b/cmd/gormlint/main.go index e50ccbe..bc58fb1 100644 --- a/cmd/gormlint/main.go +++ b/cmd/gormlint/main.go @@ -1,9 +1,9 @@ package main import ( + "github.com/kuzgoga/gormlint/nullSafetyCheck" + "github.com/kuzgoga/gormlint/relationsCheck" "golang.org/x/tools/go/analysis/multichecker" - "gormlint/nullSafetyCheck" - "gormlint/relationsCheck" ) func main() { diff --git a/go.mod b/go.mod index 08d6edd..cd79665 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gormlint +module github.com/kuzgoga/gormlint go 1.23.2 diff --git a/nullSafetyCheck/nullSafetyCheck.go b/nullSafetyCheck/nullSafetyCheck.go index 7f43ff5..e174923 100644 --- a/nullSafetyCheck/nullSafetyCheck.go +++ b/nullSafetyCheck/nullSafetyCheck.go @@ -1,9 +1,9 @@ package nullSafetyCheck import ( + "github.com/kuzgoga/gormlint/common" "go/ast" "golang.org/x/tools/go/analysis" - "gormlint/common" "strings" ) diff --git a/relationsCheck/checkBelongsTo.go b/relationsCheck/checkBelongsTo.go index 1be3eba..6952f27 100644 --- a/relationsCheck/checkBelongsTo.go +++ b/relationsCheck/checkBelongsTo.go @@ -1,7 +1,7 @@ package relationsCheck import ( - "gormlint/common" + "github.com/kuzgoga/gormlint/common" ) func IsBelongsTo(field common.Field, model common.Model, relatedModel common.Model) bool { diff --git a/relationsCheck/checkHasOne.go b/relationsCheck/checkHasOne.go index 7ab72c9..37ebe07 100644 --- a/relationsCheck/checkHasOne.go +++ b/relationsCheck/checkHasOne.go @@ -1,6 +1,6 @@ package relationsCheck -import "gormlint/common" +import "github.com/kuzgoga/gormlint/common" func IsHasOne(field common.Field, model common.Model, relatedModel common.Model) bool { foreignKey := field.Tags.GetParamOr("foreignKey", model.Name+"Id") diff --git a/relationsCheck/checkManyToOne.go b/relationsCheck/checkManyToOne.go index 4dfee54..7933970 100644 --- a/relationsCheck/checkManyToOne.go +++ b/relationsCheck/checkManyToOne.go @@ -1,10 +1,10 @@ package relationsCheck import ( + "github.com/kuzgoga/gormlint/common" "go/token" "go/types" "golang.org/x/tools/go/analysis" - "gormlint/common" "strings" ) diff --git a/relationsCheck/checkOneToMany.go b/relationsCheck/checkOneToMany.go index ac7b44f..07c5595 100644 --- a/relationsCheck/checkOneToMany.go +++ b/relationsCheck/checkOneToMany.go @@ -2,9 +2,9 @@ package relationsCheck import ( "fmt" + "github.com/kuzgoga/gormlint/common" "go/types" "golang.org/x/tools/go/analysis" - "gormlint/common" ) func findBackReferenceInOneToMany(model common.Model, relatedModel common.Model) *common.Field { diff --git a/relationsCheck/constraints.go b/relationsCheck/constraints.go index dcfc023..d8926a7 100644 --- a/relationsCheck/constraints.go +++ b/relationsCheck/constraints.go @@ -1,8 +1,8 @@ package relationsCheck import ( + "github.com/kuzgoga/gormlint/common" "golang.org/x/tools/go/analysis" - "gormlint/common" "strings" ) diff --git a/relationsCheck/relationsCheck.go b/relationsCheck/relationsCheck.go index 8a2ab8d..e0d2e38 100644 --- a/relationsCheck/relationsCheck.go +++ b/relationsCheck/relationsCheck.go @@ -2,8 +2,8 @@ package relationsCheck import ( "fmt" + "github.com/kuzgoga/gormlint/common" "golang.org/x/tools/go/analysis" - "gormlint/common" "slices" ) diff --git a/tests/null_safety_check_test.go b/tests/null_safety_check_test.go index eb3cd21..b2047f3 100644 --- a/tests/null_safety_check_test.go +++ b/tests/null_safety_check_test.go @@ -1,8 +1,8 @@ package tests import ( + "github.com/kuzgoga/gormlint/nullSafetyCheck" "golang.org/x/tools/go/analysis/analysistest" - "gormlint/nullSafetyCheck" "testing" ) diff --git a/tests/relations_check_test.go b/tests/relations_check_test.go index a57e122..59111b1 100644 --- a/tests/relations_check_test.go +++ b/tests/relations_check_test.go @@ -1,8 +1,8 @@ package tests import ( + "github.com/kuzgoga/gormlint/relationsCheck" "golang.org/x/tools/go/analysis/analysistest" - "gormlint/relationsCheck" "testing" )