Preparing report...

Report for github.com/wise2c-devops/pagoda

A    Great!    Found 15 issues across 21 files

Tweet

gofmt80%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo95%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.


golint61%

Golint is a linter for Go source code.

    • pagoda/database/db.go
    • Line 14: warning: exported type SQLEngine should have comment or be unexported (golint)
    • Line 18: warning: exported type EngineConfig should have comment or be unexported (golint)
    • Line 40: warning: exported function Instance should have comment or be unexported (golint)
    • Line 83: warning: exported method SQLEngine.RetrieveClusters should have comment or be unexported (golint)
    • Line 89: warning: exported method SQLEngine.CreateCluster should have comment or be unexported (golint)
    • Line 100: warning: exported method SQLEngine.DeleteCluster should have comment or be unexported (golint)
    • Line 126: warning: exported method SQLEngine.UpdateCluster should have comment or be unexported (golint)
    • Line 139: warning: exported method SQLEngine.RetrieveCluster should have comment or be unexported (golint)
    • Line 170: warning: exported method SQLEngine.RetrieveComponents should have comment or be unexported (golint)
    • Line 185: warning: exported method SQLEngine.CreateComponent should have comment or be unexported (golint)
    • Line 198: warning: exported method SQLEngine.DeleteComponent should have comment or be unexported (golint)
    • Line 216: warning: exported method SQLEngine.UpdateComponent should have comment or be unexported (golint)
    • Line 240: warning: exported method SQLEngine.RetrieveComponent should have comment or be unexported (golint)
    • Line 260: warning: exported method SQLEngine.RetrieveHosts should have comment or be unexported (golint)
    • Line 275: warning: exported method SQLEngine.CreateHost should have comment or be unexported (golint)
    • Line 289: warning: exported method SQLEngine.DeleteHost should have comment or be unexported (golint)
    • Line 324: warning: exported method SQLEngine.UpdateHost should have comment or be unexported (golint)
    • Line 349: warning: exported method SQLEngine.RetrieveHost should have comment or be unexported (golint)
    • Line 366: warning: exported method SQLEngine.RetrieveLogs should have comment or be unexported (golint)
    • Line 384: warning: exported method SQLEngine.CreateLog should have comment or be unexported (golint)
    • Line 394: warning: exported method SQLEngine.DeleteLogs should have comment or be unexported (golint)
    • pagoda/playbook/deploy_seed.go
    • Line 10: warning: exported type DeploySeed should have comment or be unexported (golint)
    • Line 12: warning: exported function NewDeploySeed should have comment or be unexported (golint)
    • Line 29: warning: exported method DeploySeed.AllHosts should have comment or be unexported (golint)
    • Line 42: warning: exported type Component should have comment or be unexported (golint)
    • Line 48: warning: exported function ConvertHosts should have comment or be unexported (golint)
    • pagoda/playbook/instantiate.go
    • Line 31: warning: exported function InstantiateCluster should have comment or be unexported (golint)
    • Line 99: warning: exported function MkGroupVars should have comment or be unexported (golint)
    • pagoda/playbook/prepare.go
    • Line 29: warning: exported function PreparePlaybooks should have comment or be unexported (golint)
    • Line 140: warning: exported function GetFileFromDir should have comment or be unexported (golint)
    • pagoda/playbook/stat.go
    • Line 18: warning: exported function GetComponents should have comment or be unexported (golint)
    • Line 34: warning: exported function GetVersions should have comment or be unexported (golint)
    • Line 78: warning: exported function GetOrderedComponents should have comment or be unexported (golint)
    • pagoda/component.go
    • Line 6: warning: exported type Component should have comment or be unexported (golint)
    • Line 11: warning: exported function NewComponent should have comment or be unexported (golint)
    • pagoda/database/cluster.go
    • Line 8: warning: exported const Initial should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported type Cluster should have comment or be unexported (golint)
    • Line 23: warning: exported type ClusterHost should have comment or be unexported (golint)
    • Line 31: warning: exported type Host should have comment or be unexported (golint)
    • Line 38: warning: exported type ClusterComponent should have comment or be unexported (golint)
    • Line 45: warning: exported type Component should have comment or be unexported (golint)
    • Line 50: warning: exported type ClusterLog should have comment or be unexported (golint)
    • Line 56: warning: exported type Notification should have comment or be unexported (golint)
    • Line 68: warning: exported type MetaComponent should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign52%

IneffAssign detects ineffectual assignments in Go code.

    • pagoda/cluster_handle.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/gin-gonic/gin (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/gin-gonic/gin/render (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/wise2c-devops/pagoda/database (invalid package name: "") (ineffassign)
    • pagoda/component.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/wise2c-devops/pagoda/playbook (invalid package name: "") (ineffassign)
    • pagoda/runtime/command.go
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/wise2c-devops/pagoda/database (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/wise2c-devops/pagoda/playbook (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/golang/glog (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/wise2c-devops/pagoda/database (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/wise2c-devops/pagoda/playbook (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/golang/glog (invalid package name: "") (ineffassign)
    • pagoda/playbook/deploy_seed.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/wise2c-devops/pagoda/database (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/wise2c-devops/pagoda/database (invalid package name: "") (ineffassign)
    • pagoda/main.go
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 17: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: could not import github.com/wise2c-devops/pagoda/runtime (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/gin-contrib/cors (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/golang/glog (invalid package name: "") (ineffassign)
    • Line 17: warning: could not import github.com/gorilla/websocket (invalid package name: "") (ineffassign)
    • pagoda/playbook/stat.go
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: could not import gopkg.in/yaml.v2 (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import gopkg.in/yaml.v2 (invalid package name: "") (ineffassign)
    • pagoda/playbook/prepare.go
    • Line 31: warning: v.Version undefined (type *Component has no field or method Version) (ineffassign)
    • Line 31: warning: v.Version undefined (type *Component has no field or method Version) (ineffassign)
    • pagoda/database/db.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/go-xorm/xorm (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/golang/glog (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/mattn/go-sqlite3 (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/go-xorm/xorm (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/golang/glog (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/mattn/go-sqlite3 (invalid package name: "") (ineffassign)
    • pagoda/database/uuid.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/google/uuid (invalid package name: "") (ineffassign)
    • Line 4: warning: could not import github.com/google/uuid (invalid package name: "") (ineffassign)
    • pagoda/playbook/instantiate.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/golang/glog (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/golang/glog (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!