Preparing report...

Report for github.com/yuuki/grabeni

A+    Excellent!    Found 14 issues across 19 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!


golint26%

Golint is a linter for Go source code.

    • grabeni/aws/model/instance.go
    • Line 7: warning: exported type Instance should have comment or be unexported (golint)
    • Line 9: warning: exported function NewInstance should have comment or be unexported (golint)
    • Line 14: warning: exported method Instance.InstanceID should have comment or be unexported (golint)
    • Line 18: warning: exported method Instance.Name should have comment or be unexported (golint)
    • grabeni/commands/list.go
    • Line 12: warning: exported var CommandArgList should have comment or be unexported (golint)
    • Line 13: warning: exported var CommandList should have comment or be unexported (golint)
    • grabeni/aws/eni.go
    • Line 18: warning: exported type ENIClient should have comment or be unexported (golint)
    • Line 24: warning: exported type AttachENIParam should have comment or be unexported (golint)
    • Line 30: warning: exported type DetachENIParam should have comment or be unexported (golint)
    • Line 34: warning: exported type GrabENIParam should have comment or be unexported (golint)
    • Line 36: warning: exported type WaiterParam should have comment or be unexported (golint)
    • Line 56: warning: exported function NewENIClient should have comment or be unexported (golint)
    • Line 70: warning: exported method ENIClient.WithLogWriter should have comment or be unexported (golint)
    • Line 76: warning: exported method ENIClient.DescribeENIByID should have comment or be unexported (golint)
    • Line 107: warning: exported method ENIClient.DescribeENIs should have comment or be unexported (golint)
    • Line 156: warning: exported method ENIClient.AttachENI should have comment or be unexported (golint)
    • Line 180: warning: exported method ENIClient.AttachENIWithWaiter should have comment or be unexported (golint)
    • Line 211: warning: exported method ENIClient.DetachENIByAttachmentID should have comment or be unexported (golint)
    • Line 224: warning: exported method ENIClient.DetachENI should have comment or be unexported (golint)
    • Line 242: warning: exported method ENIClient.DetachENIWithWaiter should have comment or be unexported (golint)
    • Line 273: warning: exported method ENIClient.GrabENI should have comment or be unexported (golint)
    • Line 299: warning: exported method ENIClient.DescribeInstanceByID should have comment or be unexported (golint)
    • Line 321: warning: exported method ENIClient.DescribeInstancesByIDs should have comment or be unexported (golint)
    • grabeni/aws/metadata.go
    • Line 8: warning: exported type MetaDataClient should have comment or be unexported (golint)
    • Line 12: warning: exported function NewMetaDataClient should have comment or be unexported (golint)
    • Line 16: warning: exported function NewMetaDataClientFromSession should have comment or be unexported (golint)
    • Line 20: warning: exported method MetaDataClient.GetInstanceID should have comment or be unexported (golint)
    • Line 24: warning: exported method MetaDataClient.GetRegion should have comment or be unexported (golint)
    • grabeni/log/log.go
    • Line 7: warning: exported var IsDebug should have comment or be unexported (golint)
    • Line 13: warning: exported function Debug should have comment or be unexported (golint)
    • Line 19: warning: exported function Debugf should have comment or be unexported (golint)
    • Line 25: warning: exported function Info should have comment or be unexported (golint)
    • Line 29: warning: exported function Infof should have comment or be unexported (golint)
    • Line 33: warning: exported function Error should have comment or be unexported (golint)
    • Line 37: warning: exported function Errorf should have comment or be unexported (golint)
    • grabeni/format/format.go
    • Line 13: warning: exported function PrintENI should have comment or be unexported (golint)
    • Line 19: warning: exported function PrintENIs should have comment or be unexported (golint)
    • grabeni/commands/attach.go
    • Line 15: warning: exported var CommandArgAttach should have comment or be unexported (golint)
    • Line 16: warning: exported var CommandAttach should have comment or be unexported (golint)
    • grabeni/commands/detach.go
    • Line 14: warning: exported var CommandArgDetach should have comment or be unexported (golint)
    • Line 15: warning: exported var CommandDetach should have comment or be unexported (golint)
    • grabeni/commands/grab.go
    • Line 15: warning: exported var CommandArgGrab should have comment or be unexported (golint)
    • Line 16: warning: exported var CommandGrab should have comment or be unexported (golint)
    • grabeni/commands/status.go
    • Line 13: warning: exported var CommandArgStatus should have comment or be unexported (golint)
    • Line 14: warning: exported var CommandStatus should have comment or be unexported (golint)
    • grabeni/aws/model/interface.go
    • Line 7: warning: exported type ENI should have comment or be unexported (golint)
    • Line 12: warning: exported function NewENI should have comment or be unexported (golint)
    • Line 16: warning: exported method ENI.SetInstance should have comment or be unexported (golint)
    • Line 20: warning: exported method ENI.InterfaceID should have comment or be unexported (golint)
    • Line 27: warning: exported method ENI.PrivateDnsName should have comment or be unexported (golint)
    • Line 34: warning: exported method ENI.PrivateIpAddress should have comment or be unexported (golint)
    • Line 41: warning: exported method ENI.Status should have comment or be unexported (golint)
    • Line 48: warning: exported method ENI.AttachmentID should have comment or be unexported (golint)
    • Line 55: warning: exported method ENI.AttachedDeviceIndex should have comment or be unexported (golint)
    • Line 62: warning: exported method ENI.AttachedStatus should have comment or be unexported (golint)
    • Line 69: warning: exported method ENI.AttachedInstanceID should have comment or be unexported (golint)
    • Line 76: warning: exported method ENI.AttachedInstance should have comment or be unexported (golint)
    • Line 80: warning: exported method ENI.AvailabilityZone should have comment or be unexported (golint)
    • Line 87: warning: exported method ENI.Name should have comment or be unexported (golint)

gocyclo100%

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.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!