diff --git a/analyzer.go b/analyzer.go index 129a741..08e308d 100644 --- a/analyzer.go +++ b/analyzer.go @@ -6,8 +6,8 @@ import ( "golang.org/x/tools/go/analysis" + "github.com/nunnatsa/ginkgolinter/internal/types" "github.com/nunnatsa/ginkgolinter/linter" - "github.com/nunnatsa/ginkgolinter/types" "github.com/nunnatsa/ginkgolinter/version" ) diff --git a/ginkgohandler/handler.go b/internal/ginkgohandler/handler.go similarity index 100% rename from ginkgohandler/handler.go rename to internal/ginkgohandler/handler.go diff --git a/ginkgohandler/handler_test.go b/internal/ginkgohandler/handler_test.go similarity index 100% rename from ginkgohandler/handler_test.go rename to internal/ginkgohandler/handler_test.go diff --git a/gomegahandler/handler.go b/internal/gomegahandler/handler.go similarity index 100% rename from gomegahandler/handler.go rename to internal/gomegahandler/handler.go diff --git a/gomegahandler/handler_test.go b/internal/gomegahandler/handler_test.go similarity index 100% rename from gomegahandler/handler_test.go rename to internal/gomegahandler/handler_test.go diff --git a/interfaces/interfaces.go b/internal/interfaces/interfaces.go similarity index 100% rename from interfaces/interfaces.go rename to internal/interfaces/interfaces.go diff --git a/internal/intervals/intervals.go b/internal/intervals/intervals.go index 0027e73..b8166bd 100644 --- a/internal/intervals/intervals.go +++ b/internal/intervals/intervals.go @@ -11,8 +11,8 @@ import ( "golang.org/x/tools/go/analysis" - "github.com/nunnatsa/ginkgolinter/gomegahandler" - "github.com/nunnatsa/ginkgolinter/reports" + "github.com/nunnatsa/ginkgolinter/internal/gomegahandler" + "github.com/nunnatsa/ginkgolinter/internal/reports" ) type noDurationIntervalErr struct { diff --git a/reports/report-builder.go b/internal/reports/report-builder.go similarity index 100% rename from reports/report-builder.go rename to internal/reports/report-builder.go diff --git a/reverseassertion/reverse_assertion.go b/internal/reverseassertion/reverse_assertion.go similarity index 100% rename from reverseassertion/reverse_assertion.go rename to internal/reverseassertion/reverse_assertion.go diff --git a/reverseassertion/reverse_assertion_test.go b/internal/reverseassertion/reverse_assertion_test.go similarity index 97% rename from reverseassertion/reverse_assertion_test.go rename to internal/reverseassertion/reverse_assertion_test.go index c006aaa..83a1bb0 100644 --- a/reverseassertion/reverse_assertion_test.go +++ b/internal/reverseassertion/reverse_assertion_test.go @@ -4,7 +4,7 @@ import ( "go/token" "testing" - "github.com/nunnatsa/ginkgolinter/reverseassertion" + "github.com/nunnatsa/ginkgolinter/internal/reverseassertion" ) func TestChangeAssertionLogic(t *testing.T) { @@ -81,4 +81,4 @@ func TestIsNegativeLogic(t *testing.T) { } }) } -} \ No newline at end of file +} diff --git a/types/boolean.go b/internal/types/boolean.go similarity index 100% rename from types/boolean.go rename to internal/types/boolean.go diff --git a/types/boolean_test.go b/internal/types/boolean_test.go similarity index 100% rename from types/boolean_test.go rename to internal/types/boolean_test.go diff --git a/types/config.go b/internal/types/config.go similarity index 100% rename from types/config.go rename to internal/types/config.go diff --git a/types/config_test.go b/internal/types/config_test.go similarity index 100% rename from types/config_test.go rename to internal/types/config_test.go diff --git a/linter/ginkgo_linter.go b/linter/ginkgo_linter.go index 868518e..fe584d0 100644 --- a/linter/ginkgo_linter.go +++ b/linter/ginkgo_linter.go @@ -13,13 +13,13 @@ import ( "github.com/go-toolsmith/astcopy" "golang.org/x/tools/go/analysis" - "github.com/nunnatsa/ginkgolinter/ginkgohandler" - "github.com/nunnatsa/ginkgolinter/gomegahandler" - "github.com/nunnatsa/ginkgolinter/interfaces" + "github.com/nunnatsa/ginkgolinter/internal/ginkgohandler" + "github.com/nunnatsa/ginkgolinter/internal/gomegahandler" + "github.com/nunnatsa/ginkgolinter/internal/interfaces" "github.com/nunnatsa/ginkgolinter/internal/intervals" - "github.com/nunnatsa/ginkgolinter/reports" - "github.com/nunnatsa/ginkgolinter/reverseassertion" - "github.com/nunnatsa/ginkgolinter/types" + "github.com/nunnatsa/ginkgolinter/internal/reports" + "github.com/nunnatsa/ginkgolinter/internal/reverseassertion" + "github.com/nunnatsa/ginkgolinter/internal/types" ) // The ginkgolinter enforces standards of using ginkgo and gomega.