Preparing report...

Report for github.com/nomasters/killcord

A+    Excellent!    Found 7 issues across 24 files

Tweet

gofmt100%

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

No problems detected. Good job!


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.

    • killcord/status.go
    • Line 33: warning: cyclomatic complexity 17 of function (*Session).getContractStatus() is high (> 15) (gocyclo)

golint75%

Golint is a linter for Go source code.

    • killcord/contract.go
    • Line 180: warning: exported function GetKey should have comment or be unexported (golint)
    • Line 192: warning: exported function GetOwner should have comment or be unexported (golint)
    • Line 204: warning: exported function GetPublisher should have comment or be unexported (golint)
    • Line 216: warning: exported function GetPayloadEndpoint should have comment or be unexported (golint)
    • Line 228: warning: comment on exported function CheckIn should be of the form "CheckIn ..." (golint)
    • Line 242: warning: exported method Session.CheckIn should have comment or be unexported (golint)
    • Line 249: warning: exported function SetKey should have comment or be unexported (golint)
    • Line 261: warning: exported function KillContract should have comment or be unexported (golint)
    • Line 273: warning: exported method Session.KillContract should have comment or be unexported (golint)
    • Line 280: warning: exported function SetPayloadEndpoint should have comment or be unexported (golint)
    • Line 292: warning: exported method Session.DeployContract should have comment or be unexported (golint)
    • killcord/project.go
    • Line 17: warning: exported const Version should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported var ProjectPath should have comment or be unexported (golint)
    • Line 24: warning: exported type Session should have comment or be unexported (golint)
    • Line 29: warning: exported type ProjectOptions should have comment or be unexported (golint)
    • Line 40: warning: exported type StatusOptions should have comment or be unexported (golint)
    • Line 44: warning: exported type PayloadOptions should have comment or be unexported (golint)
    • Line 53: warning: exported type ContractOptions should have comment or be unexported (golint)
    • Line 62: warning: exported type PublisherOptions should have comment or be unexported (golint)
    • Line 70: warning: exported type ProjectConfig should have comment or be unexported (golint)
    • Line 83: warning: exported type PayloadConfig should have comment or be unexported (golint)
    • Line 92: warning: exported type ContractConfig should have comment or be unexported (golint)
    • Line 102: warning: exported type AccountConfig should have comment or be unexported (golint)
    • Line 108: warning: exported type PublisherConfig should have comment or be unexported (golint)
    • Line 118: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 123: warning: comment on exported method Session.Init should be of the form "Init ..." (golint)
    • Line 130: warning: exported method Session.NewProject should have comment or be unexported (golint)
    • Line 184: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • killcord/publisher.go
    • Line 16: warning: exported method Session.PublishKey should have comment or be unexported (golint)
    • Line 32: warning: exported method Session.RunPublisher should have comment or be unexported (golint)
    • Line 161: warning: exported method Session.PublisherLambdaHandler should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign91%

IneffAssign detects ineffectual assignments in Go code.

    • /home/shawn/mygo/src/github.com/gojp/goreportcard/_repos/src/github.com/nomasters/killcord/contract.go
    • Line 20: warning: no required module provides package github.com/nomasters/killcord/contract; to add it: (ineffassign)
    • Line 20: warning: could not import github.com/nomasters/killcord/contract (invalid package name: "") (ineffassign)
    • Line 20: warning: no required module provides package github.com/nomasters/killcord/contract; to add it: (ineffassign)
    • Line 20: warning: could not import github.com/nomasters/killcord/contract (invalid package name: "") (ineffassign)
    • Line 20: warning: no required module provides package github.com/nomasters/killcord/contract; to add it: (ineffassign)
    • Line 20: warning: could not import github.com/nomasters/killcord/contract (invalid package name: "") (ineffassign)
    • killcord/contract.go
    • Line 20: warning: no required module provides package github.com/nomasters/killcord/contract; to add it: (ineffassign)
    • Line 20: warning: could not import github.com/nomasters/killcord/contract (invalid package name: "") (ineffassign)
    • Line 20: warning: could not import github.com/nomasters/killcord/contract (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!