Preparing report...

Report for github.com/AlekSi/zabbix

A+    Excellent!    Found 6 issues across 12 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!


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!


golint50%

Golint is a linter for Go source code.

    • zabbix/host_group.go
    • Line 8: warning: exported type InternalType should have comment or be unexported (golint)
    • Line 12: warning: exported const NotInternal should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: comment on exported type HostGroup should be of the form "HostGroup ..." (with optional leading article) (golint)
    • Line 23: warning: exported type HostGroups should have comment or be unexported (golint)
    • Line 25: warning: exported type HostGroupId should have comment or be unexported (golint)
    • Line 29: warning: exported type HostGroupIds should have comment or be unexported (golint)
    • Line 31: warning: comment on exported method API.HostGroupsGet should be of the form "HostGroupsGet ..." (golint)
    • Line 45: warning: comment on exported method API.HostGroupGetById should be of the form "HostGroupGetById ..." (golint)
    • Line 61: warning: comment on exported method API.HostGroupsCreate should be of the form "HostGroupsCreate ..." (golint)
    • Line 76: warning: comment on exported method API.HostGroupsDelete should be of the form "HostGroupsDelete ..." (golint)
    • Line 93: warning: comment on exported method API.HostGroupsDeleteByIds should be of the form "HostGroupsDeleteByIds ..." (golint)
    • zabbix/host_interface.go
    • Line 4: warning: exported type InterfaceType should have comment or be unexported (golint)
    • Line 8: warning: exported const Agent should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: comment on exported type HostInterface should be of the form "HostInterface ..." (with optional leading article) (golint)
    • Line 24: warning: exported type HostInterfaces should have comment or be unexported (golint)
    • zabbix/item.go
    • Line 9: warning: exported type ItemType should have comment or be unexported (golint)
    • Line 10: warning: exported type ValueType should have comment or be unexported (golint)
    • Line 11: warning: exported type DataType should have comment or be unexported (golint)
    • Line 12: warning: exported type DeltaType should have comment or be unexported (golint)
    • Line 16: warning: exported const ZabbixAgent should have comment (or a comment on this block) or be unexported (golint)
    • Line 50: warning: comment on exported type Item should be of the form "Item ..." (with optional leading article) (golint)
    • Line 71: warning: exported type Items should have comment or be unexported (golint)
    • Line 73: warning: comment on exported method Items.ByKey should be of the form "ByKey ..." (golint)
    • Line 86: warning: comment on exported method API.ItemsGet should be of the form "ItemsGet ..." (golint)
    • Line 100: warning: comment on exported method API.ItemsGetByApplicationId should be of the form "ItemsGetByApplicationId ..." (golint)
    • Line 105: warning: comment on exported method API.ItemsCreate should be of the form "ItemsCreate ..." (golint)
    • Line 120: warning: comment on exported method API.ItemsDelete should be of the form "ItemsDelete ..." (golint)
    • Line 137: warning: comment on exported method API.ItemsDeleteByIds should be of the form "ItemsDeleteByIds ..." (golint)
    • zabbix/application.go
    • Line 7: warning: comment on exported type Application should be of the form "Application ..." (with optional leading article) (golint)
    • Line 15: warning: exported type Applications should have comment or be unexported (golint)
    • Line 17: warning: comment on exported method API.ApplicationsGet should be of the form "ApplicationsGet ..." (golint)
    • Line 31: warning: comment on exported method API.ApplicationGetById should be of the form "ApplicationGetById ..." (golint)
    • Line 47: warning: comment on exported method API.ApplicationGetByHostIdAndName should be of the form "ApplicationGetByHostIdAndName ..." (golint)
    • Line 63: warning: comment on exported method API.ApplicationsCreate should be of the form "ApplicationsCreate ..." (golint)
    • Line 78: warning: comment on exported method API.ApplicationsDelete should be of the form "ApplicationsDelete ..." (golint)
    • Line 95: warning: comment on exported method API.ApplicationsDeleteByIds should be of the form "ApplicationsDeleteByIds ..." (golint)
    • zabbix/base.go
    • Line 14: warning: exported type Params should have comment or be unexported (golint)
    • Line 25: warning: exported type Response should have comment or be unexported (golint)
    • Line 32: warning: exported type Error should have comment or be unexported (golint)
    • Line 42: warning: exported type ExpectedOneResult should have comment or be unexported (golint)
    • Line 48: warning: exported type ExpectedMore should have comment or be unexported (golint)
    • Line 57: warning: exported type API should have comment or be unexported (golint)
    • Line 65: warning: comment on exported function NewAPI should be of the form "NewAPI ..." (golint)
    • Line 73: warning: comment on exported method API.SetClient should be of the form "SetClient ..." (golint)
    • Line 113: warning: comment on exported method API.Call should be of the form "Call ..." (golint)
    • Line 123: warning: comment on exported method API.CallWithError should be of the form "CallWithError ..." (golint)
    • Line 132: warning: comment on exported method API.Login should be of the form "Login ..." (golint)
    • Line 146: warning: comment on exported method API.Version should be of the form "Version ..." (golint)
    • zabbix/host.go
    • Line 8: warning: exported type AvailableType should have comment or be unexported (golint)
    • Line 9: warning: exported type StatusType should have comment or be unexported (golint)
    • Line 13: warning: exported const Available should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: comment on exported type Host should be of the form "Host ..." (with optional leading article) (golint)
    • Line 34: warning: exported type Hosts should have comment or be unexported (golint)
    • Line 36: warning: comment on exported method API.HostsGet should be of the form "HostsGet ..." (golint)
    • Line 50: warning: comment on exported method API.HostsGetByHostGroupIds should be of the form "HostsGetByHostGroupIds ..." (golint)
    • Line 55: warning: comment on exported method API.HostsGetByHostGroups should be of the form "HostsGetByHostGroups ..." (golint)
    • Line 64: warning: comment on exported method API.HostGetById should be of the form "HostGetById ..." (golint)
    • Line 80: warning: comment on exported method API.HostGetByHost should be of the form "HostGetByHost ..." (golint)
    • Line 96: warning: comment on exported method API.HostsCreate should be of the form "HostsCreate ..." (golint)
    • Line 111: warning: comment on exported method API.HostsDelete should be of the form "HostsDelete ..." (golint)
    • Line 128: warning: comment on exported method API.HostsDeleteByIds should be of the form "HostsDeleteByIds ..." (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!