Skip to content

Commit

Permalink
refactor: move module to remote for support github build
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Dec 21, 2019
1 parent a7e91fe commit d473433
Show file tree
Hide file tree
Showing 41 changed files with 95 additions and 95 deletions.
6 changes: 3 additions & 3 deletions cmd/analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
12 changes: 6 additions & 6 deletions cmd/api.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions cmd/bs.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
8 changes: 4 additions & 4 deletions cmd/call.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
8 changes: 4 additions & 4 deletions cmd/concept.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions cmd/count.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions cmd/evaluate.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion cmd/git.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions cmd/rcall.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
8 changes: 4 additions & 4 deletions cmd/refactor.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/sql.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
. "coca/core/adapter/sql"
. "github.com/phodal/coca/core/adapter/sql"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"coca/config"
"github.com/phodal/coca/config"
"fmt"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion coca.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"coca/cmd"
"github.com/phodal/coca/cmd"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions core/adapter/api/JavaApiApp.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions core/adapter/api/JavaApiApp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions core/adapter/api/JavaApiListener.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions core/adapter/bs/BadSmellApp.go
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -11,7 +11,7 @@ import (
"strconv"
"strings"

. "coca/core/languages/java"
. "github.com/phodal/coca/core/languages/java"
)

var nodeInfos []models2.BsJClass
Expand Down
4 changes: 2 additions & 2 deletions core/adapter/bs/BadSmellListener.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions core/adapter/call/JavaCallApp.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion core/adapter/call/JavaCallApp_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package call

import (
"coca/core/adapter/identifier"
"github.com/phodal/coca/core/adapter/identifier"
. "github.com/onsi/gomega"
"testing"
)
Expand Down
4 changes: 2 additions & 2 deletions core/adapter/call/JavaCallListener.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions core/adapter/helper.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions core/adapter/identifier/JavaIdentifierApp.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions core/adapter/identifier/JavaIdentifierListener.go
Original file line number Diff line number Diff line change
@@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions core/adapter/sql/SqlIdentifierApp.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion core/adapter/sql/SqlIdentifierListener.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package sql

import (
"coca/core/languages/sql"
"github.com/phodal/coca/core/languages/sql"
"fmt"
)

Expand Down
4 changes: 2 additions & 2 deletions core/domain/call_graph/call_graph.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
6 changes: 3 additions & 3 deletions core/domain/call_graph/call_graph_test.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions core/domain/call_graph/rcall/rcall_graph.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
6 changes: 3 additions & 3 deletions core/domain/concept/concept_analyser.go
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions core/domain/concept/concept_analyser_test.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion core/domain/evaluate/analyser.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package evaluate

import "coca/core/models"
import "github.com/phodal/coca/core/models"

type EvaluateAnalyser struct {

Expand Down
2 changes: 1 addition & 1 deletion core/domain/gitt/gitt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading

0 comments on commit d473433

Please sign in to comment.