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 1f93beb0..ac2a30a7 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 98c36714..0d3cb3c1 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 da9b6c7e..ddc54cee 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 30dadf8b..53188a17 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 37e0009a..29073b00 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 566c6f89..f509411c 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 ea1211ed..6434c36a 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 36420ab9..3a44c370 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 83f15f7f..5f78d878 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 7060bd32..1c22ef9e 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 2983f188..a30d897d 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 a9bcc092..400650d8 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 e9789898..41d09858 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 d0066a28..cdda8ca2 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 8ef3db3a..db7c7a3e 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 eabb1979..6fb2f421 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 64103c6b..88b56543 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 d2ae3f81..60c9cf50 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 5078a278..d5269c42 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 bb9ac30b..6c7ac8d9 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 a2c6ce51..918cb1a0 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 8bdfa5ad..e0df1bb2 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 da2682be..230dc54f 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 4218f4c9..90fe5283 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 b0249725..4391b45c 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 6e3f58c2..c61d2094 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 2adb0778..d7a3b4b4 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 483133ad..a55deda6 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 8c71f11e..3551d760 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 6c5bcb57..514a2b80 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 a81aae7b..aa55b3e2 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 86e30889..be2afd26 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 00ec70ca..9d68b533 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 2ab9336d..f929fcde 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 a6584c1d..91b4950a 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 43c333a1..fd6c104d 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 1f2273a9..cad7b25c 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 a41e2c8b..18aba28e 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 f0148fb3..de5ad68b 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 444f7eed..fbdd5a48 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 536bf53a..03e2f757 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module coca +module github.com/phodal/coca go 1.13