Preparing report...

Report for github.com/appscode/swift

A    Great!    Found 17 issues across 18 files

Tweet

gofmt94%

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!


gocyclo94%

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.


golint11%

Golint is a linter for Go source code.

    • swift/pkg/connectors/incluster_connector.go
    • Line 18: warning: exported type InClusterConnector should have comment or be unexported (golint)
    • Line 26: warning: exported const UIDInClusterConnector should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported function NewInClusterConnector should have comment or be unexported (golint)
    • Line 36: warning: exported method InClusterConnector.UID should have comment or be unexported (golint)
    • Line 40: warning: exported method InClusterConnector.Connect should have comment or be unexported (golint)
    • Line 61: warning: exported method InClusterConnector.Close should have comment or be unexported (golint)
    • swift/pkg/release/server.go
    • Line 20: warning: exported type Server should have comment or be unexported (golint)
    • Line 32: warning: exported method Server.SummarizeReleases should have comment or be unexported (golint)
    • Line 114: warning: comment on exported method Server.GetReleaseStatus should be of the form "GetReleaseStatus ..." (golint)
    • Line 359: warning: comment on exported method Server.GetHistory should be of the form "GetHistory ..." (golint)
    • swift/pkg/cmds/server/options.go
    • Line 9: warning: exported type TillerOptions should have comment or be unexported (golint)
    • Line 20: warning: exported function NewTillerOptions should have comment or be unexported (golint)
    • Line 26: warning: exported method TillerOptions.AddFlags should have comment or be unexported (golint)
    • swift/pkg/cmds/server/start.go
    • Line 33: warning: exported type SwiftOptions should have comment or be unexported (golint)
    • Line 39: warning: exported function NewSwiftOptions should have comment or be unexported (golint)
    • Line 49: warning: exported method SwiftOptions.AddFlags should have comment or be unexported (golint)
    • Line 55: warning: exported method SwiftOptions.Validate should have comment or be unexported (golint)
    • Line 61: warning: exported method SwiftOptions.Complete should have comment or be unexported (golint)
    • Line 65: warning: exported method SwiftOptions.Config should have comment or be unexported (golint)
    • Line 166: warning: exported method SwiftOptions.RunServer should have comment or be unexported (golint)
    • swift/pkg/apis/swift/v2/tiller.schema.go
    • Line 772: warning: exported method UpdateReleaseRequest.Valid should have comment or be unexported (golint)
    • Line 775: warning: exported method UpdateReleaseRequest.IsRequest should have comment or be unexported (golint)
    • Line 777: warning: exported method GetReleaseStatusRequest.Valid should have comment or be unexported (golint)
    • Line 780: warning: exported method GetReleaseStatusRequest.IsRequest should have comment or be unexported (golint)
    • Line 782: warning: exported method GetVersionRequest.Valid should have comment or be unexported (golint)
    • Line 785: warning: exported method GetVersionRequest.IsRequest should have comment or be unexported (golint)
    • Line 787: warning: exported method RollbackReleaseRequest.Valid should have comment or be unexported (golint)
    • Line 790: warning: exported method RollbackReleaseRequest.IsRequest should have comment or be unexported (golint)
    • Line 792: warning: exported method InstallReleaseRequest.Valid should have comment or be unexported (golint)
    • Line 795: warning: exported method InstallReleaseRequest.IsRequest should have comment or be unexported (golint)
    • Line 797: warning: exported method GetReleaseContentRequest.Valid should have comment or be unexported (golint)
    • Line 800: warning: exported method GetReleaseContentRequest.IsRequest should have comment or be unexported (golint)
    • Line 802: warning: exported method UninstallReleaseRequest.Valid should have comment or be unexported (golint)
    • Line 805: warning: exported method UninstallReleaseRequest.IsRequest should have comment or be unexported (golint)
    • Line 807: warning: exported method SummarizeReleasesRequest.Valid should have comment or be unexported (golint)
    • Line 810: warning: exported method SummarizeReleasesRequest.IsRequest should have comment or be unexported (golint)
    • Line 812: warning: exported method GetHistoryRequest.Valid should have comment or be unexported (golint)
    • Line 815: warning: exported method GetHistoryRequest.IsRequest should have comment or be unexported (golint)
    • swift/pkg/connectors/kubeconfig_connector.go
    • Line 13: warning: exported type KubeconfigConnector should have comment or be unexported (golint)
    • Line 22: warning: exported const UIDKubeconfigConnector should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported function NewKubeconfigConnector should have comment or be unexported (golint)
    • Line 29: warning: exported method KubeconfigConnector.UID should have comment or be unexported (golint)
    • Line 33: warning: exported method KubeconfigConnector.Connect should have comment or be unexported (golint)
    • Line 57: warning: exported method KubeconfigConnector.Close should have comment or be unexported (golint)
    • swift/pkg/cmds/run.go
    • Line 4: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 10: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 13: warning: exported function NewCmdRun should have comment or be unexported (golint)
    • swift/pkg/connectors/contexts.go
    • Line 13: warning: exported function Connection should have comment or be unexported (golint)
    • Line 17: warning: exported function WithConnection should have comment or be unexported (golint)
    • Line 21: warning: exported function Tunnel should have comment or be unexported (golint)
    • Line 25: warning: exported function WithTunnel should have comment or be unexported (golint)
    • swift/pkg/connectors/direct_connector.go
    • Line 8: warning: exported type DirectConnector should have comment or be unexported (golint)
    • Line 15: warning: exported const UIDDirectConnector should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported function NewDirectConnector should have comment or be unexported (golint)
    • Line 22: warning: exported method DirectConnector.UID should have comment or be unexported (golint)
    • Line 26: warning: exported method DirectConnector.Connect should have comment or be unexported (golint)
    • Line 34: warning: exported method DirectConnector.Close should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!