Preparing report...

Report for github.com/logocomune/webhookdocker

A+    Excellent!    Found 9 issues across 18 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!


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.


golint50%

Golint is a linter for Go source code.

    • webhookdocker/conf.go
    • Line 3: warning: exported type CommonCfg should have comment or be unexported (golint)
    • Line 26: warning: exported type Keybase should have comment or be unexported (golint)
    • Line 30: warning: exported type Slack should have comment or be unexported (golint)
    • Line 34: warning: exported type WebEx should have comment or be unexported (golint)
    • webhookdocker/webhook/slack.go
    • Line 12: warning: exported type Slack should have comment or be unexported (golint)
    • Line 32: warning: exported function NewSlack should have comment or be unexported (golint)
    • Line 52: warning: exported method Slack.Send should have comment or be unexported (golint)
    • webhookdocker/message/events.go
    • Line 5: warning: exported type ContainerEventsGroup should have comment or be unexported (golint)
    • Line 12: warning: exported type Group should have comment or be unexported (golint)
    • Line 18: warning: exported type DockerComposeInfo should have comment or be unexported (golint)
    • Line 23: warning: exported type SwarmInfo should have comment or be unexported (golint)
    • Line 28: warning: exported type Event should have comment or be unexported (golint)
    • Line 37: warning: exported type MetaData should have comment or be unexported (golint)
    • Line 43: warning: exported type StartupInfo should have comment or be unexported (golint)
    • Line 52: warning: exported type Container should have comment or be unexported (golint)
    • Line 58: warning: exported method Container.IsEmpty should have comment or be unexported (golint)
    • Line 62: warning: exported type ContainerStatus should have comment or be unexported (golint)
    • Line 67: warning: exported type Volume should have comment or be unexported (golint)
    • Line 73: warning: exported type Network should have comment or be unexported (golint)
    • webhookdocker/container/docker_events.go
    • Line 18: warning: exported type DockerCfg should have comment or be unexported (golint)
    • Line 34: warning: exported type ContextDoneError should have comment or be unexported (golint)
    • Line 39: warning: exported function DockerEvents 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!