diff --git a/go.mod b/go.mod index c19f595..a613510 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module goarkitect +module github.com/omissis/goarkitect go 1.18 diff --git a/internal/arch/file/except/except.go b/internal/arch/file/except/except.go index b29bbe5..08154b0 100644 --- a/internal/arch/file/except/except.go +++ b/internal/arch/file/except/except.go @@ -1,8 +1,8 @@ package except import ( - "goarkitect/internal/arch/file" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/file" + "github.com/omissis/goarkitect/internal/arch/rule" ) type Expression interface { diff --git a/internal/arch/file/except/this.go b/internal/arch/file/except/this.go index 3a944be..af3e7ee 100644 --- a/internal/arch/file/except/this.go +++ b/internal/arch/file/except/this.go @@ -4,7 +4,7 @@ import ( "path/filepath" "strings" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/rule" ) func This(filePath string) *ThisExpression { diff --git a/internal/arch/file/except/this_test.go b/internal/arch/file/except/this_test.go index d566adf..46fe81f 100644 --- a/internal/arch/file/except/this_test.go +++ b/internal/arch/file/except/this_test.go @@ -3,9 +3,9 @@ package except_test import ( "testing" - "goarkitect/internal/arch/file" - "goarkitect/internal/arch/file/except" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/file" + "github.com/omissis/goarkitect/internal/arch/file/except" + "github.com/omissis/goarkitect/internal/arch/rule" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/internal/arch/file/expect/be_gitencrypted.go b/internal/arch/file/expect/be_gitencrypted.go index c0b2539..626c0f5 100644 --- a/internal/arch/file/expect/be_gitencrypted.go +++ b/internal/arch/file/expect/be_gitencrypted.go @@ -6,7 +6,7 @@ import ( "os/exec" "path/filepath" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/rule" ) func BeGitencrypted(opts ...Option) *gitEncryptedExpression { diff --git a/internal/arch/file/expect/be_gitencrypted_test.go b/internal/arch/file/expect/be_gitencrypted_test.go index 8443ebb..c4ebeb0 100644 --- a/internal/arch/file/expect/be_gitencrypted_test.go +++ b/internal/arch/file/expect/be_gitencrypted_test.go @@ -5,9 +5,9 @@ import ( "path/filepath" "testing" - "goarkitect/internal/arch/file" - "goarkitect/internal/arch/file/expect" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/file" + "github.com/omissis/goarkitect/internal/arch/file/expect" + "github.com/omissis/goarkitect/internal/arch/rule" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/internal/arch/file/expect/be_gitignored.go b/internal/arch/file/expect/be_gitignored.go index a173cb0..a760c47 100644 --- a/internal/arch/file/expect/be_gitignored.go +++ b/internal/arch/file/expect/be_gitignored.go @@ -5,7 +5,7 @@ import ( "os/exec" "path/filepath" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/rule" ) func BeGitignored(opts ...Option) *gitIgnoredExpression { diff --git a/internal/arch/file/expect/be_gitignored_test.go b/internal/arch/file/expect/be_gitignored_test.go index e5874ef..342d365 100644 --- a/internal/arch/file/expect/be_gitignored_test.go +++ b/internal/arch/file/expect/be_gitignored_test.go @@ -5,9 +5,9 @@ import ( "path/filepath" "testing" - "goarkitect/internal/arch/file" - "goarkitect/internal/arch/file/expect" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/file" + "github.com/omissis/goarkitect/internal/arch/file/expect" + "github.com/omissis/goarkitect/internal/arch/rule" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/internal/arch/file/expect/contain_value.go b/internal/arch/file/expect/contain_value.go index 983a0ae..131c983 100644 --- a/internal/arch/file/expect/contain_value.go +++ b/internal/arch/file/expect/contain_value.go @@ -6,7 +6,7 @@ import ( "os" "path/filepath" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/rule" ) func ContainValue(value []byte, opts ...Option) *containValueExpression { diff --git a/internal/arch/file/expect/contain_value_test.go b/internal/arch/file/expect/contain_value_test.go index 8c620ed..c3406df 100644 --- a/internal/arch/file/expect/contain_value_test.go +++ b/internal/arch/file/expect/contain_value_test.go @@ -5,9 +5,9 @@ import ( "path/filepath" "testing" - "goarkitect/internal/arch/file" - "goarkitect/internal/arch/file/expect" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/file" + "github.com/omissis/goarkitect/internal/arch/file/expect" + "github.com/omissis/goarkitect/internal/arch/rule" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/internal/arch/file/expect/end_with.go b/internal/arch/file/expect/end_with.go index f54fa3c..1ec2b9c 100644 --- a/internal/arch/file/expect/end_with.go +++ b/internal/arch/file/expect/end_with.go @@ -4,7 +4,7 @@ import ( "fmt" "path/filepath" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/rule" ) func EndWith(suffix string, opts ...Option) *endWithExpression { diff --git a/internal/arch/file/expect/end_with_test.go b/internal/arch/file/expect/end_with_test.go index 24896b1..2f94ed7 100644 --- a/internal/arch/file/expect/end_with_test.go +++ b/internal/arch/file/expect/end_with_test.go @@ -3,9 +3,9 @@ package expect_test import ( "testing" - "goarkitect/internal/arch/file" - "goarkitect/internal/arch/file/expect" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/file" + "github.com/omissis/goarkitect/internal/arch/file/expect" + "github.com/omissis/goarkitect/internal/arch/rule" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/internal/arch/file/expect/exist.go b/internal/arch/file/expect/exist.go index 631dcb8..db0f03e 100644 --- a/internal/arch/file/expect/exist.go +++ b/internal/arch/file/expect/exist.go @@ -5,7 +5,7 @@ import ( "os" "path/filepath" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/rule" ) func Exist(opts ...Option) *existExpression { diff --git a/internal/arch/file/expect/exist_test.go b/internal/arch/file/expect/exist_test.go index a9a54be..47b828a 100644 --- a/internal/arch/file/expect/exist_test.go +++ b/internal/arch/file/expect/exist_test.go @@ -3,9 +3,9 @@ package expect_test import ( "testing" - "goarkitect/internal/arch/file" - "goarkitect/internal/arch/file/expect" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/file" + "github.com/omissis/goarkitect/internal/arch/file/expect" + "github.com/omissis/goarkitect/internal/arch/rule" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/internal/arch/file/expect/have_content_matching.go b/internal/arch/file/expect/have_content_matching.go index ced0f08..4014a56 100644 --- a/internal/arch/file/expect/have_content_matching.go +++ b/internal/arch/file/expect/have_content_matching.go @@ -6,7 +6,7 @@ import ( "os" "path/filepath" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/rule" "golang.org/x/exp/slices" ) diff --git a/internal/arch/file/expect/have_content_matching_regex.go b/internal/arch/file/expect/have_content_matching_regex.go index b60ae7d..7e7f67f 100644 --- a/internal/arch/file/expect/have_content_matching_regex.go +++ b/internal/arch/file/expect/have_content_matching_regex.go @@ -7,7 +7,7 @@ import ( "path/filepath" "regexp" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/rule" ) func HaveContentMatchingRegex(regex string, opts ...Option) *haveContentMatchingRegex { diff --git a/internal/arch/file/expect/have_content_matching_regex_test.go b/internal/arch/file/expect/have_content_matching_regex_test.go index fd2a152..2648215 100644 --- a/internal/arch/file/expect/have_content_matching_regex_test.go +++ b/internal/arch/file/expect/have_content_matching_regex_test.go @@ -5,9 +5,9 @@ import ( "path/filepath" "testing" - "goarkitect/internal/arch/file" - "goarkitect/internal/arch/file/expect" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/file" + "github.com/omissis/goarkitect/internal/arch/file/expect" + "github.com/omissis/goarkitect/internal/arch/rule" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/internal/arch/file/expect/have_content_matching_test.go b/internal/arch/file/expect/have_content_matching_test.go index d61a42c..e46f7c3 100644 --- a/internal/arch/file/expect/have_content_matching_test.go +++ b/internal/arch/file/expect/have_content_matching_test.go @@ -5,9 +5,9 @@ import ( "path/filepath" "testing" - "goarkitect/internal/arch/file" - "goarkitect/internal/arch/file/expect" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/file" + "github.com/omissis/goarkitect/internal/arch/file/expect" + "github.com/omissis/goarkitect/internal/arch/rule" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/internal/arch/file/expect/have_permissions.go b/internal/arch/file/expect/have_permissions.go index 2495efd..14f2311 100644 --- a/internal/arch/file/expect/have_permissions.go +++ b/internal/arch/file/expect/have_permissions.go @@ -7,7 +7,7 @@ import ( "path/filepath" "regexp" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/rule" ) var ErrInvalidPermissions = errors.New( diff --git a/internal/arch/file/expect/have_permissions_test.go b/internal/arch/file/expect/have_permissions_test.go index b6f208d..ae03501 100644 --- a/internal/arch/file/expect/have_permissions_test.go +++ b/internal/arch/file/expect/have_permissions_test.go @@ -5,9 +5,9 @@ import ( "path/filepath" "testing" - "goarkitect/internal/arch/file" - "goarkitect/internal/arch/file/expect" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/file" + "github.com/omissis/goarkitect/internal/arch/file/expect" + "github.com/omissis/goarkitect/internal/arch/rule" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/internal/arch/file/expect/match_glob.go b/internal/arch/file/expect/match_glob.go index 7458ac1..8742104 100644 --- a/internal/arch/file/expect/match_glob.go +++ b/internal/arch/file/expect/match_glob.go @@ -4,7 +4,7 @@ import ( "fmt" "path/filepath" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/rule" ) func MatchGlob(glob string, basePath string, opts ...Option) *matchGlobExpression { diff --git a/internal/arch/file/expect/match_glob_test.go b/internal/arch/file/expect/match_glob_test.go index 51ee671..82073e9 100644 --- a/internal/arch/file/expect/match_glob_test.go +++ b/internal/arch/file/expect/match_glob_test.go @@ -5,9 +5,9 @@ import ( "path/filepath" "testing" - "goarkitect/internal/arch/file" - "goarkitect/internal/arch/file/expect" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/file" + "github.com/omissis/goarkitect/internal/arch/file/expect" + "github.com/omissis/goarkitect/internal/arch/rule" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/internal/arch/file/expect/match_regex.go b/internal/arch/file/expect/match_regex.go index 70bb43c..7edb8ed 100644 --- a/internal/arch/file/expect/match_regex.go +++ b/internal/arch/file/expect/match_regex.go @@ -5,7 +5,7 @@ import ( "path/filepath" "regexp" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/rule" ) func MatchRegex(res string, opts ...Option) *matchRegexExpression { diff --git a/internal/arch/file/expect/match_regex_test.go b/internal/arch/file/expect/match_regex_test.go index ce7ac74..ab3c229 100644 --- a/internal/arch/file/expect/match_regex_test.go +++ b/internal/arch/file/expect/match_regex_test.go @@ -3,9 +3,9 @@ package expect_test import ( "testing" - "goarkitect/internal/arch/file" - "goarkitect/internal/arch/file/expect" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/file" + "github.com/omissis/goarkitect/internal/arch/file/expect" + "github.com/omissis/goarkitect/internal/arch/rule" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/internal/arch/file/expect/should.go b/internal/arch/file/expect/should.go index 68bfa12..8a7a43b 100644 --- a/internal/arch/file/expect/should.go +++ b/internal/arch/file/expect/should.go @@ -3,8 +3,8 @@ package expect import ( "fmt" - "goarkitect/internal/arch/file" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/file" + "github.com/omissis/goarkitect/internal/arch/rule" ) var ErrEmptyOpts = fmt.Errorf("empty options") diff --git a/internal/arch/file/expect/start_with.go b/internal/arch/file/expect/start_with.go index 8df3b6c..ddc36c0 100644 --- a/internal/arch/file/expect/start_with.go +++ b/internal/arch/file/expect/start_with.go @@ -4,7 +4,7 @@ import ( "fmt" "path/filepath" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/rule" ) func StartWith(prefix string, opts ...Option) *startWithExpression { diff --git a/internal/arch/file/expect/start_with_test.go b/internal/arch/file/expect/start_with_test.go index 4fa2060..9d7049c 100644 --- a/internal/arch/file/expect/start_with_test.go +++ b/internal/arch/file/expect/start_with_test.go @@ -3,9 +3,9 @@ package expect_test import ( "testing" - "goarkitect/internal/arch/file" - "goarkitect/internal/arch/file/expect" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/file" + "github.com/omissis/goarkitect/internal/arch/file/expect" + "github.com/omissis/goarkitect/internal/arch/rule" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/internal/arch/file/rule.go b/internal/arch/file/rule.go index 287f920..067bfa4 100644 --- a/internal/arch/file/rule.go +++ b/internal/arch/file/rule.go @@ -3,7 +3,7 @@ package file import ( "errors" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/rule" ) var ErrRuleBuilderLocked = errors.New( diff --git a/internal/arch/file/rule_test.go b/internal/arch/file/rule_test.go index 1baa74a..f89ca14 100644 --- a/internal/arch/file/rule_test.go +++ b/internal/arch/file/rule_test.go @@ -3,11 +3,11 @@ package file_test import ( "testing" - "goarkitect/internal/arch/file" - fe "goarkitect/internal/arch/file/except" - fs "goarkitect/internal/arch/file/expect" - ft "goarkitect/internal/arch/file/that" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/file" + fe "github.com/omissis/goarkitect/internal/arch/file/except" + fs "github.com/omissis/goarkitect/internal/arch/file/expect" + ft "github.com/omissis/goarkitect/internal/arch/file/that" + "github.com/omissis/goarkitect/internal/arch/rule" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/internal/arch/file/that/are_in_folder.go b/internal/arch/file/that/are_in_folder.go index 036b4aa..8266043 100644 --- a/internal/arch/file/that/are_in_folder.go +++ b/internal/arch/file/that/are_in_folder.go @@ -5,8 +5,8 @@ import ( "os" "path/filepath" - "goarkitect/internal/arch/file" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/file" + "github.com/omissis/goarkitect/internal/arch/rule" ) func AreInFolder(folder string, recursive bool) *AreInFolderExpression { diff --git a/internal/arch/file/that/are_in_folder_test.go b/internal/arch/file/that/are_in_folder_test.go index 24ac185..4af3cef 100644 --- a/internal/arch/file/that/are_in_folder_test.go +++ b/internal/arch/file/that/are_in_folder_test.go @@ -3,8 +3,8 @@ package that_test import ( "testing" - "goarkitect/internal/arch/file" - "goarkitect/internal/arch/file/that" + "github.com/omissis/goarkitect/internal/arch/file" + "github.com/omissis/goarkitect/internal/arch/file/that" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/internal/arch/file/that/end_with.go b/internal/arch/file/that/end_with.go index 5078877..aeb9a44 100644 --- a/internal/arch/file/that/end_with.go +++ b/internal/arch/file/that/end_with.go @@ -3,8 +3,8 @@ package that import ( "strings" - "goarkitect/internal/arch/file" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/file" + "github.com/omissis/goarkitect/internal/arch/rule" ) func EndWith(s string) *EndWithExpression { diff --git a/internal/arch/file/that/end_with_test.go b/internal/arch/file/that/end_with_test.go index ef2ca69..5ec2ec6 100644 --- a/internal/arch/file/that/end_with_test.go +++ b/internal/arch/file/that/end_with_test.go @@ -3,9 +3,9 @@ package that_test import ( "testing" - "goarkitect/internal/arch/file" - "goarkitect/internal/arch/file/that" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/file" + "github.com/omissis/goarkitect/internal/arch/file/that" + "github.com/omissis/goarkitect/internal/arch/rule" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/internal/arch/rule/builder_test.go b/internal/arch/rule/builder_test.go index f70422d..a801dc9 100644 --- a/internal/arch/rule/builder_test.go +++ b/internal/arch/rule/builder_test.go @@ -3,13 +3,13 @@ package rule_test import ( "testing" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/rule" ) func Test_NewViolation(t *testing.T) { v := rule.NewViolation("message", rule.Error) - if v.String() != "message" { - t.Errorf("NewViolation(\"message\") returns %v, want %v", v.String(), "message") + if v.String() != "[ERROR] message" { + t.Errorf("NewViolation(\"message\") returns %v, want %v", v.String(), "[ERROR] message") } } diff --git a/internal/config/executor.go b/internal/config/executor.go index 4fcad44..c599c2c 100644 --- a/internal/config/executor.go +++ b/internal/config/executor.go @@ -3,12 +3,12 @@ package config import ( "fmt" - "goarkitect/internal/arch/file" - "goarkitect/internal/arch/rule" + "github.com/omissis/goarkitect/internal/arch/file" + "github.com/omissis/goarkitect/internal/arch/rule" - fe "goarkitect/internal/arch/file/except" - fs "goarkitect/internal/arch/file/expect" - ft "goarkitect/internal/arch/file/that" + fe "github.com/omissis/goarkitect/internal/arch/file/except" + fs "github.com/omissis/goarkitect/internal/arch/file/expect" + ft "github.com/omissis/goarkitect/internal/arch/file/that" ) type Root struct { diff --git a/internal/schema/santhosh/errors_test.go b/internal/schema/santhosh/errors_test.go index f04c668..78f670b 100644 --- a/internal/schema/santhosh/errors_test.go +++ b/internal/schema/santhosh/errors_test.go @@ -3,7 +3,7 @@ package santhosh_test import ( "testing" - "goarkitect/internal/schema/santhosh" + "github.com/omissis/goarkitect/internal/schema/santhosh" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts"