From d4734333697a00bfb8dcf827a300aa6872857b44 Mon Sep 17 00:00:00 2001 From: Phodal Huang Date: Sat, 21 Dec 2019 13:27:59 +0800 Subject: [PATCH] refactor: move module to remote for support github build --- cmd/analysis.go | 6 +++--- cmd/api.go | 12 ++++++------ cmd/bs.go | 4 ++-- cmd/call.go | 8 ++++---- cmd/concept.go | 8 ++++---- cmd/count.go | 6 +++--- cmd/evaluate.go | 6 +++--- cmd/git.go | 2 +- cmd/rcall.go | 6 +++--- cmd/refactor.go | 8 ++++---- cmd/sql.go | 2 +- cmd/version.go | 2 +- coca.go | 2 +- core/adapter/api/JavaApiApp.go | 4 ++-- core/adapter/api/JavaApiApp_test.go | 6 +++--- core/adapter/api/JavaApiListener.go | 4 ++-- core/adapter/bs/BadSmellApp.go | 6 +++--- core/adapter/bs/BadSmellListener.go | 4 ++-- core/adapter/call/JavaCallApp.go | 4 ++-- core/adapter/call/JavaCallApp_test.go | 2 +- core/adapter/call/JavaCallListener.go | 4 ++-- core/adapter/helper.go | 6 +++--- core/adapter/identifier/JavaIdentifierApp.go | 4 ++-- core/adapter/identifier/JavaIdentifierListener.go | 4 ++-- core/adapter/sql/SqlIdentifierApp.go | 4 ++-- core/adapter/sql/SqlIdentifierListener.go | 2 +- core/domain/call_graph/call_graph.go | 4 ++-- core/domain/call_graph/call_graph_test.go | 6 +++--- core/domain/call_graph/rcall/rcall_graph.go | 6 +++--- core/domain/concept/concept_analyser.go | 6 +++--- core/domain/concept/concept_analyser_test.go | 4 ++-- core/domain/evaluate/analyser.go | 2 +- core/domain/gitt/gitt.go | 2 +- core/domain/refactor/base/JavaRefactorListener.go | 4 ++-- core/domain/refactor/move_class/move_class_app.go | 6 +++--- core/domain/refactor/rename/rename_method.go | 8 ++++---- core/domain/refactor/unused/remove_unused_import.go | 6 +++--- .../refactor/unused_classes/UnusedClassesApp.go | 4 ++-- core/support/file_analysis_helper.go | 2 +- core/support/file_helper.go | 2 +- go.mod | 2 +- 41 files changed, 95 insertions(+), 95 deletions(-) diff --git a/cmd/analysis.go b/cmd/analysis.go index 1f93beb..ac2a30a 100644 --- a/cmd/analysis.go +++ b/cmd/analysis.go @@ -4,9 +4,9 @@ import ( "encoding/json" "github.com/spf13/cobra" - . "coca/core/adapter/call" - . "coca/core/adapter/identifier" - . "coca/core/support" + . "github.com/phodal/coca/core/adapter/call" + . "github.com/phodal/coca/core/adapter/identifier" + . "github.com/phodal/coca/core/support" ) type AnalysisCmdConfig struct { diff --git a/cmd/api.go b/cmd/api.go index 98c3671..0d3cb3c 100644 --- a/cmd/api.go +++ b/cmd/api.go @@ -1,12 +1,12 @@ package cmd import ( - "coca/config" - "coca/core/adapter" - . "coca/core/adapter/api" - "coca/core/domain/call_graph" - "coca/core/models" - . "coca/core/support" + "github.com/phodal/coca/config" + "github.com/phodal/coca/core/adapter" + . "github.com/phodal/coca/core/adapter/api" + "github.com/phodal/coca/core/domain/call_graph" + "github.com/phodal/coca/core/models" + . "github.com/phodal/coca/core/support" "encoding/json" "github.com/olekukonko/tablewriter" "github.com/spf13/cobra" diff --git a/cmd/bs.go b/cmd/bs.go index da9b6c7..ddc54ce 100644 --- a/cmd/bs.go +++ b/cmd/bs.go @@ -1,8 +1,8 @@ package cmd import ( - "coca/core/adapter/bs" - "coca/core/support" + "github.com/phodal/coca/core/adapter/bs" + "github.com/phodal/coca/core/support" "encoding/json" "github.com/spf13/cobra" "strings" diff --git a/cmd/call.go b/cmd/call.go index 30dadf8..53188a1 100644 --- a/cmd/call.go +++ b/cmd/call.go @@ -1,10 +1,10 @@ package cmd import ( - "coca/config" - . "coca/core/domain/call_graph" - "coca/core/models" - . "coca/core/support" + "github.com/phodal/coca/config" + . "github.com/phodal/coca/core/domain/call_graph" + "github.com/phodal/coca/core/models" + . "github.com/phodal/coca/core/support" "encoding/json" "github.com/spf13/cobra" "log" diff --git a/cmd/concept.go b/cmd/concept.go index 37e0009..29073b0 100644 --- a/cmd/concept.go +++ b/cmd/concept.go @@ -1,10 +1,10 @@ package cmd import ( - "coca/config" - "coca/core/domain/concept" - "coca/core/models" - . "coca/core/support" + "github.com/phodal/coca/config" + "github.com/phodal/coca/core/domain/concept" + "github.com/phodal/coca/core/models" + . "github.com/phodal/coca/core/support" "encoding/json" "fmt" "github.com/spf13/cobra" diff --git a/cmd/count.go b/cmd/count.go index 566c6f8..f509411 100644 --- a/cmd/count.go +++ b/cmd/count.go @@ -1,9 +1,9 @@ package cmd import ( - "coca/config" - "coca/core/models" - "coca/core/support" + "github.com/phodal/coca/config" + "github.com/phodal/coca/core/models" + "github.com/phodal/coca/core/support" "encoding/json" "fmt" "github.com/spf13/cobra" diff --git a/cmd/evaluate.go b/cmd/evaluate.go index ea1211e..6434c36 100644 --- a/cmd/evaluate.go +++ b/cmd/evaluate.go @@ -1,9 +1,9 @@ package cmd import ( - "coca/config" - "coca/core/domain/evaluate" - . "coca/core/support" + "github.com/phodal/coca/config" + "github.com/phodal/coca/core/domain/evaluate" + . "github.com/phodal/coca/core/support" "encoding/json" "github.com/spf13/cobra" "log" diff --git a/cmd/git.go b/cmd/git.go index 36420ab..3a44c37 100644 --- a/cmd/git.go +++ b/cmd/git.go @@ -1,7 +1,7 @@ package cmd import ( - . "coca/core/domain/gitt" + . "github.com/phodal/coca/core/domain/gitt" "fmt" "github.com/olekukonko/tablewriter" "github.com/spf13/cobra" diff --git a/cmd/rcall.go b/cmd/rcall.go index 83f15f7..5f78d87 100644 --- a/cmd/rcall.go +++ b/cmd/rcall.go @@ -1,9 +1,9 @@ package cmd import ( - "coca/config" - "coca/core/domain/call_graph/rcall" - . "coca/core/support" + "github.com/phodal/coca/config" + "github.com/phodal/coca/core/domain/call_graph/rcall" + . "github.com/phodal/coca/core/support" "encoding/json" "fmt" "github.com/spf13/cobra" diff --git a/cmd/refactor.go b/cmd/refactor.go index 7060bd3..1c22ef9 100644 --- a/cmd/refactor.go +++ b/cmd/refactor.go @@ -1,10 +1,10 @@ package cmd import ( - "coca/config" - . "coca/core/domain/refactor/move_class" - . "coca/core/domain/refactor/rename" - . "coca/core/domain/refactor/unused" + "github.com/phodal/coca/config" + . "github.com/phodal/coca/core/domain/refactor/move_class" + . "github.com/phodal/coca/core/domain/refactor/rename" + . "github.com/phodal/coca/core/domain/refactor/unused" "github.com/spf13/cobra" ) diff --git a/cmd/sql.go b/cmd/sql.go index 2983f18..a30d897 100644 --- a/cmd/sql.go +++ b/cmd/sql.go @@ -1,7 +1,7 @@ package cmd import ( - . "coca/core/adapter/sql" + . "github.com/phodal/coca/core/adapter/sql" "github.com/spf13/cobra" ) diff --git a/cmd/version.go b/cmd/version.go index a9bcc09..400650d 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -1,7 +1,7 @@ package cmd import ( - "coca/config" + "github.com/phodal/coca/config" "fmt" "github.com/spf13/cobra" ) diff --git a/coca.go b/coca.go index e978989..41d0985 100644 --- a/coca.go +++ b/coca.go @@ -1,7 +1,7 @@ package main import ( - "coca/cmd" + "github.com/phodal/coca/cmd" ) func main() { diff --git a/core/adapter/api/JavaApiApp.go b/core/adapter/api/JavaApiApp.go index d0066a2..cdda8ca 100644 --- a/core/adapter/api/JavaApiApp.go +++ b/core/adapter/api/JavaApiApp.go @@ -1,8 +1,8 @@ package api import ( - "coca/core/models" - "coca/core/support" + "github.com/phodal/coca/core/models" + "github.com/phodal/coca/core/support" "fmt" "github.com/antlr/antlr4/runtime/Go/antlr" "path/filepath" diff --git a/core/adapter/api/JavaApiApp_test.go b/core/adapter/api/JavaApiApp_test.go index 8ef3db3..db7c7a3 100644 --- a/core/adapter/api/JavaApiApp_test.go +++ b/core/adapter/api/JavaApiApp_test.go @@ -2,9 +2,9 @@ package api import ( - "coca/core/adapter" - "coca/core/adapter/call" - "coca/core/adapter/identifier" + "github.com/phodal/coca/core/adapter" + "github.com/phodal/coca/core/adapter/call" + "github.com/phodal/coca/core/adapter/identifier" . "github.com/onsi/gomega" "testing" ) diff --git a/core/adapter/api/JavaApiListener.go b/core/adapter/api/JavaApiListener.go index eabb197..6fb2f42 100644 --- a/core/adapter/api/JavaApiListener.go +++ b/core/adapter/api/JavaApiListener.go @@ -1,8 +1,8 @@ package api import ( - "coca/core/languages/java" - models2 "coca/core/models" + "github.com/phodal/coca/core/languages/java" + models2 "github.com/phodal/coca/core/models" "github.com/antlr/antlr4/runtime/Go/antlr" "reflect" "strings" diff --git a/core/adapter/bs/BadSmellApp.go b/core/adapter/bs/BadSmellApp.go index 64103c6..88b5654 100644 --- a/core/adapter/bs/BadSmellApp.go +++ b/core/adapter/bs/BadSmellApp.go @@ -1,8 +1,8 @@ package bs import ( - models2 "coca/core/adapter/bs/models" - "coca/core/support" + models2 "github.com/phodal/coca/core/adapter/bs/models" + "github.com/phodal/coca/core/support" "encoding/json" "fmt" "github.com/antlr/antlr4/runtime/Go/antlr" @@ -11,7 +11,7 @@ import ( "strconv" "strings" - . "coca/core/languages/java" + . "github.com/phodal/coca/core/languages/java" ) var nodeInfos []models2.BsJClass diff --git a/core/adapter/bs/BadSmellListener.go b/core/adapter/bs/BadSmellListener.go index d2ae3f8..60c9cf5 100644 --- a/core/adapter/bs/BadSmellListener.go +++ b/core/adapter/bs/BadSmellListener.go @@ -1,8 +1,8 @@ package bs import ( - models2 "coca/core/adapter/bs/models" - . "coca/core/languages/java" + models2 "github.com/phodal/coca/core/adapter/bs/models" + . "github.com/phodal/coca/core/languages/java" "github.com/antlr/antlr4/runtime/Go/antlr" "reflect" "strings" diff --git a/core/adapter/call/JavaCallApp.go b/core/adapter/call/JavaCallApp.go index 5078a27..d5269c4 100644 --- a/core/adapter/call/JavaCallApp.go +++ b/core/adapter/call/JavaCallApp.go @@ -1,8 +1,8 @@ package call import ( - "coca/core/models" - "coca/core/support" + "github.com/phodal/coca/core/models" + "github.com/phodal/coca/core/support" "fmt" "github.com/antlr/antlr4/runtime/Go/antlr" "path/filepath" diff --git a/core/adapter/call/JavaCallApp_test.go b/core/adapter/call/JavaCallApp_test.go index bb9ac30..6c7ac8d 100644 --- a/core/adapter/call/JavaCallApp_test.go +++ b/core/adapter/call/JavaCallApp_test.go @@ -1,7 +1,7 @@ package call import ( - "coca/core/adapter/identifier" + "github.com/phodal/coca/core/adapter/identifier" . "github.com/onsi/gomega" "testing" ) diff --git a/core/adapter/call/JavaCallListener.go b/core/adapter/call/JavaCallListener.go index a2c6ce5..918cb1a 100644 --- a/core/adapter/call/JavaCallListener.go +++ b/core/adapter/call/JavaCallListener.go @@ -1,8 +1,8 @@ package call import ( - "coca/core/languages/java" - "coca/core/models" + "github.com/phodal/coca/core/languages/java" + "github.com/phodal/coca/core/models" "github.com/antlr/antlr4/runtime/Go/antlr" "reflect" "strings" diff --git a/core/adapter/helper.go b/core/adapter/helper.go index 8bdfa5a..e0df1bb 100644 --- a/core/adapter/helper.go +++ b/core/adapter/helper.go @@ -1,9 +1,9 @@ package adapter import ( - "coca/core/adapter/identifier" - "coca/core/models" - "coca/core/support" + "github.com/phodal/coca/core/adapter/identifier" + "github.com/phodal/coca/core/models" + "github.com/phodal/coca/core/support" "encoding/json" ) diff --git a/core/adapter/identifier/JavaIdentifierApp.go b/core/adapter/identifier/JavaIdentifierApp.go index da2682b..230dc54 100644 --- a/core/adapter/identifier/JavaIdentifierApp.go +++ b/core/adapter/identifier/JavaIdentifierApp.go @@ -1,8 +1,8 @@ package identifier import ( - "coca/core/models" - "coca/core/support" + "github.com/phodal/coca/core/models" + "github.com/phodal/coca/core/support" "github.com/antlr/antlr4/runtime/Go/antlr" ) diff --git a/core/adapter/identifier/JavaIdentifierListener.go b/core/adapter/identifier/JavaIdentifierListener.go index 4218f4c..90fe528 100644 --- a/core/adapter/identifier/JavaIdentifierListener.go +++ b/core/adapter/identifier/JavaIdentifierListener.go @@ -1,8 +1,8 @@ package identifier import ( - "coca/core/languages/java" - "coca/core/models" + "github.com/phodal/coca/core/languages/java" + "github.com/phodal/coca/core/models" "reflect" "strings" ) diff --git a/core/adapter/sql/SqlIdentifierApp.go b/core/adapter/sql/SqlIdentifierApp.go index b024972..4391b45 100644 --- a/core/adapter/sql/SqlIdentifierApp.go +++ b/core/adapter/sql/SqlIdentifierApp.go @@ -1,8 +1,8 @@ package sql import ( - "coca/core/adapter/sql/parse" - parser2 "coca/core/languages/sql" + "github.com/phodal/coca/core/adapter/sql/parse" + parser2 "github.com/phodal/coca/core/languages/sql" "fmt" "github.com/antlr/antlr4/runtime/Go/antlr" "os" diff --git a/core/adapter/sql/SqlIdentifierListener.go b/core/adapter/sql/SqlIdentifierListener.go index 6e3f58c..c61d209 100644 --- a/core/adapter/sql/SqlIdentifierListener.go +++ b/core/adapter/sql/SqlIdentifierListener.go @@ -1,7 +1,7 @@ package sql import ( - "coca/core/languages/sql" + "github.com/phodal/coca/core/languages/sql" "fmt" ) diff --git a/core/domain/call_graph/call_graph.go b/core/domain/call_graph/call_graph.go index 2adb077..d7a3b4b 100644 --- a/core/domain/call_graph/call_graph.go +++ b/core/domain/call_graph/call_graph.go @@ -1,8 +1,8 @@ package call_graph import ( - "coca/core/adapter/api" - "coca/core/models" + "github.com/phodal/coca/core/adapter/api" + "github.com/phodal/coca/core/models" "strings" ) diff --git a/core/domain/call_graph/call_graph_test.go b/core/domain/call_graph/call_graph_test.go index 483133a..a55deda 100644 --- a/core/domain/call_graph/call_graph_test.go +++ b/core/domain/call_graph/call_graph_test.go @@ -1,9 +1,9 @@ package call_graph_test import ( - "coca/core/domain/call_graph" - "coca/core/models" - "coca/core/support" + "github.com/phodal/coca/core/domain/call_graph" + "github.com/phodal/coca/core/models" + "github.com/phodal/coca/core/support" "encoding/json" . "github.com/onsi/gomega" "testing" diff --git a/core/domain/call_graph/rcall/rcall_graph.go b/core/domain/call_graph/rcall/rcall_graph.go index 8c71f11..3551d76 100644 --- a/core/domain/call_graph/rcall/rcall_graph.go +++ b/core/domain/call_graph/rcall/rcall_graph.go @@ -1,9 +1,9 @@ package rcall import ( - "coca/core/domain/call_graph" - "coca/core/models" - "coca/core/support" + "github.com/phodal/coca/core/domain/call_graph" + "github.com/phodal/coca/core/models" + "github.com/phodal/coca/core/support" "encoding/json" ) diff --git a/core/domain/concept/concept_analyser.go b/core/domain/concept/concept_analyser.go index 6c5bcb5..514a2b8 100644 --- a/core/domain/concept/concept_analyser.go +++ b/core/domain/concept/concept_analyser.go @@ -1,9 +1,9 @@ package concept import ( - languages2 "coca/core/domain/call_graph/stop_words/languages" - "coca/core/models" - "coca/core/support" + languages2 "github.com/phodal/coca/core/domain/call_graph/stop_words/languages" + "github.com/phodal/coca/core/models" + "github.com/phodal/coca/core/support" ) type ConceptAnalyser struct { diff --git a/core/domain/concept/concept_analyser_test.go b/core/domain/concept/concept_analyser_test.go index a81aae7..aa55b3e 100644 --- a/core/domain/concept/concept_analyser_test.go +++ b/core/domain/concept/concept_analyser_test.go @@ -1,8 +1,8 @@ package concept import ( - "coca/core/models" - "coca/core/support" + "github.com/phodal/coca/core/models" + "github.com/phodal/coca/core/support" "encoding/json" "log" "testing" diff --git a/core/domain/evaluate/analyser.go b/core/domain/evaluate/analyser.go index 86e3088..be2afd2 100644 --- a/core/domain/evaluate/analyser.go +++ b/core/domain/evaluate/analyser.go @@ -1,6 +1,6 @@ package evaluate -import "coca/core/models" +import "github.com/phodal/coca/core/models" type EvaluateAnalyser struct { diff --git a/core/domain/gitt/gitt.go b/core/domain/gitt/gitt.go index 00ec70c..9d68b53 100644 --- a/core/domain/gitt/gitt.go +++ b/core/domain/gitt/gitt.go @@ -2,7 +2,7 @@ package gitt import ( "bytes" - "coca/core/domain/gitt/apriori" + "github.com/phodal/coca/core/domain/gitt/apriori" "encoding/json" "fmt" "log" diff --git a/core/domain/refactor/base/JavaRefactorListener.go b/core/domain/refactor/base/JavaRefactorListener.go index 2ab9336..f929fcd 100644 --- a/core/domain/refactor/base/JavaRefactorListener.go +++ b/core/domain/refactor/base/JavaRefactorListener.go @@ -1,8 +1,8 @@ package base import ( - models2 "coca/core/domain/refactor/base/models" - . "coca/core/languages/java" + models2 "github.com/phodal/coca/core/domain/refactor/base/models" + . "github.com/phodal/coca/core/languages/java" "strings" "unicode" ) diff --git a/core/domain/refactor/move_class/move_class_app.go b/core/domain/refactor/move_class/move_class_app.go index a6584c1..91b4950 100644 --- a/core/domain/refactor/move_class/move_class_app.go +++ b/core/domain/refactor/move_class/move_class_app.go @@ -2,9 +2,9 @@ package move_class import ( "bufio" - base2 "coca/core/domain/refactor/base" - models2 "coca/core/domain/refactor/base/models" - utils2 "coca/core/support" + base2 "github.com/phodal/coca/core/domain/refactor/base" + models2 "github.com/phodal/coca/core/domain/refactor/base/models" + utils2 "github.com/phodal/coca/core/support" "fmt" "github.com/antlr/antlr4/runtime/Go/antlr" "io/ioutil" diff --git a/core/domain/refactor/rename/rename_method.go b/core/domain/refactor/rename/rename_method.go index 43c333a..fd6c104 100644 --- a/core/domain/refactor/rename/rename_method.go +++ b/core/domain/refactor/rename/rename_method.go @@ -1,10 +1,10 @@ package unused import ( - models2 "coca/core/domain/refactor/base/models" - support3 "coca/core/domain/refactor/rename/support" - . "coca/core/models" - "coca/core/support" + models2 "github.com/phodal/coca/core/domain/refactor/base/models" + support3 "github.com/phodal/coca/core/domain/refactor/rename/support" + . "github.com/phodal/coca/core/models" + "github.com/phodal/coca/core/support" "encoding/json" "io/ioutil" "log" diff --git a/core/domain/refactor/unused/remove_unused_import.go b/core/domain/refactor/unused/remove_unused_import.go index 1f2273a..cad7b25 100644 --- a/core/domain/refactor/unused/remove_unused_import.go +++ b/core/domain/refactor/unused/remove_unused_import.go @@ -1,9 +1,9 @@ package unused import ( - base2 "coca/core/domain/refactor/base" - models2 "coca/core/domain/refactor/base/models" - "coca/core/support" + base2 "github.com/phodal/coca/core/domain/refactor/base" + models2 "github.com/phodal/coca/core/domain/refactor/base/models" + "github.com/phodal/coca/core/support" "fmt" "github.com/antlr/antlr4/runtime/Go/antlr" "io/ioutil" diff --git a/core/domain/refactor/unused_classes/UnusedClassesApp.go b/core/domain/refactor/unused_classes/UnusedClassesApp.go index a41e2c8..18aba28 100644 --- a/core/domain/refactor/unused_classes/UnusedClassesApp.go +++ b/core/domain/refactor/unused_classes/UnusedClassesApp.go @@ -1,8 +1,8 @@ package main import ( - . "coca/core/models" - "coca/core/support" + . "github.com/phodal/coca/core/models" + "github.com/phodal/coca/core/support" "encoding/json" "fmt" "sort" diff --git a/core/support/file_analysis_helper.go b/core/support/file_analysis_helper.go index f0148fb..de5ad68 100644 --- a/core/support/file_analysis_helper.go +++ b/core/support/file_analysis_helper.go @@ -8,7 +8,7 @@ import ( "path/filepath" "strings" - . "coca/core/languages/java" + . "github.com/phodal/coca/core/languages/java" ) func GetJavaFiles(codeDir string) []string { diff --git a/core/support/file_helper.go b/core/support/file_helper.go index 444f7ee..fbdd5a4 100644 --- a/core/support/file_helper.go +++ b/core/support/file_helper.go @@ -1,7 +1,7 @@ package support import ( - "coca/config" + "github.com/phodal/coca/config" "fmt" "io" "io/ioutil" diff --git a/go.mod b/go.mod index 536bf53..03e2f75 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module coca +module github.com/phodal/coca go 1.13 -- GitLab