Skip to content

Commit

Permalink
Permutation (#287)
Browse files Browse the repository at this point in the history
* removed unused connection path package

* used separated permutation service

* removed permutation service package for separation

* added permutation service to vendor deps

* updated spec in vendor deps

* updated glide files

* gofmt -s

* removed nit existing .workspace directory from projectcheck
  • Loading branch information
xh3b4sd committed Nov 20, 2016
1 parent d974cec commit 722d4db
Show file tree
Hide file tree
Showing 27 changed files with 198 additions and 870 deletions.
2 changes: 1 addition & 1 deletion annactl/service_collection.go
Expand Up @@ -13,8 +13,8 @@ import (
"github.com/the-anna-project/log"
outputcollection "github.com/the-anna-project/output/collection"
textoutputservice "github.com/the-anna-project/output/service/text"
"github.com/the-anna-project/permutation/service"
servicespec "github.com/the-anna-project/spec/service"
"github.com/xh3b4sd/anna/service/permutation"
)

func (a *annactl) newServiceCollection() servicespec.ServiceCollection {
Expand Down
10 changes: 5 additions & 5 deletions bin/projectcheck
Expand Up @@ -2,8 +2,8 @@

set -e

test $(go vet ./... 2>&1 | grep -v ".pb.go\|vendor/\|^exit status 1$" | wc -l) -gt 0 && echo "go vet failed" && exit 1 || echo "go vet succeeded"
test $(${GOPATH}/bin/golint ./... | grep -v ".pb.go\|vendor/" 2>&1 | wc -l) -gt 0 && echo "golint failed" && exit 1 || echo "golint succeeded"
test $(find . -type f -name '*' -not -path "*.pb.go" -not -path "./.git/*" -not -path "./.workspace/*" -not -path "./vendor/*" | xargs ${GOPATH}/bin/misspell 2>&1 | wc -l) -gt 0 && echo "misspell failed" && exit 1 || echo "misspell succeeded"
test $(find . -type f -name '*.go' -not -path "*.pb.go" -not -path "./.git/*" -not -path "./.workspace/*" -not -path "./vendor/*" | xargs ${GOPATH}/bin/gocyclo -over 15 2>&1 | grep -v "(*collection).Validate" | wc -l) -gt 0 && echo "gocyclo failed" && exit 1 || echo "gocyclo succeeded"
test $(find . -type f -name '*.go' -not -path "*.pb.go" -not -path "./.git/*" -not -path "./.workspace/*" -not -path "./vendor/*" | xargs gofmt -l -s 2>&1 | wc -l) -gt 0 && echo "gofmt failed" && exit 1 || echo "gofmt succeeded"
test $(go vet ./... 2>&1 | grep -v ".pb.go\|vendor/\|^exit status 1$" | wc -l) -gt 0 && echo "go vet failed" && exit 1 || echo "go vet succeeded"
test $(${GOPATH}/bin/golint ./... | grep -v ".pb.go\|vendor/" 2>&1 | wc -l) -gt 0 && echo "golint failed" && exit 1 || echo "golint succeeded"
test $(find . -type f -name '*' -not -path "*.pb.go" -not -path "./.git/*" -not -path "./vendor/*" | xargs ${GOPATH}/bin/misspell 2>&1 | wc -l) -gt 0 && echo "misspell failed" && exit 1 || echo "misspell succeeded"
test $(find . -type f -name '*.go' -not -path "*.pb.go" -not -path "./.git/*" -not -path "./vendor/*" | xargs ${GOPATH}/bin/gocyclo -over 15 2>&1 | grep -v "(*collection).Validate" | wc -l) -gt 0 && echo "gocyclo failed" && exit 1 || echo "gocyclo succeeded"
test $(find . -type f -name '*.go' -not -path "*.pb.go" -not -path "./.git/*" -not -path "./vendor/*" | xargs gofmt -l -s 2>&1 | wc -l) -gt 0 && echo "gofmt failed" && exit 1 || echo "gofmt succeeded"
2 changes: 1 addition & 1 deletion command/boot/service_collection.go
Expand Up @@ -15,6 +15,7 @@ import (
"github.com/the-anna-project/log"
outputcollection "github.com/the-anna-project/output/collection"
textoutputservice "github.com/the-anna-project/output/service/text"
"github.com/the-anna-project/permutation/service"
"github.com/the-anna-project/random"
objectspec "github.com/the-anna-project/spec/object"
servicespec "github.com/the-anna-project/spec/service"
Expand All @@ -26,7 +27,6 @@ import (
"github.com/xh3b4sd/anna/service/feature"
"github.com/xh3b4sd/anna/service/forwarder"
"github.com/xh3b4sd/anna/service/network"
"github.com/xh3b4sd/anna/service/permutation"
"github.com/xh3b4sd/anna/service/storage"
memorystorage "github.com/xh3b4sd/anna/service/storage/memory"
"github.com/xh3b4sd/anna/service/storage/redis"
Expand Down
17 changes: 0 additions & 17 deletions connection-path/common.go

This file was deleted.

11 changes: 0 additions & 11 deletions connection-path/common_test.go

This file was deleted.

151 changes: 0 additions & 151 deletions connection-path/connection_path.go

This file was deleted.

0 comments on commit 722d4db

Please sign in to comment.