Preparing report...

Report for github.com/hosting-de-labs/go-netbox-client

A+    Excellent!    Found 26 issues across 47 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!


gocyclo91%

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.


golint51%

Golint is a linter for Go source code.

    • go-netbox-client/types/network_interface.go
    • Line 14: warning: exported const InterfaceTypeVirtualInterfacesVirtual should have comment (or a comment on this block) or be unexported (golint)
    • Line 102: warning: exported function NewNetworkInterface should have comment or be unexported (golint)
    • go-netbox-client/netbox/ipam/ip_address.go
    • Line 12: warning: comment on exported method Client.IPAddressFind should be of the form "IPAddressFind ..." (golint)
    • Line 34: warning: comment on exported method Client.IPAddressFindByInterfaceID should be of the form "IPAddressFindByInterfaceID ..." (golint)
    • Line 66: warning: comment on exported method Client.IPAddressFindCreate should be of the form "IPAddressFindCreate ..." (golint)
    • Line 109: warning: exported method Client.IPAddressDelete should have comment or be unexported (golint)
    • go-netbox-client/netbox/utils/helpers.go
    • Line 15: warning: comment on exported const NetboxSyncVMCommentStartingEndingLine should be of the form "NetboxSyncVMCommentStartingEndingLine ..." (golint)
    • Line 19: warning: exported function SplitCidrFromIP should have comment or be unexported (golint)
    • Line 34: warning: exported function ConvertCustomFields should have comment or be unexported (golint)
    • Line 67: warning: exported function GenerateVMComment should have comment or be unexported (golint)
    • Line 93: warning: exported function ParseVMComment should have comment or be unexported (golint)
    • Line 135: warning: exported function ExtractFromApiError should have comment or be unexported (golint)
    • go-netbox-client/netbox/dcim/device.go
    • Line 11: warning: exported method Client.DeviceFindAll should have comment or be unexported (golint)
    • Line 60: warning: exported method Client.DeviceGet should have comment or be unexported (golint)
    • Line 72: warning: comment on exported method Client.DeviceUpdate should be of the form "DeviceUpdate ..." (golint)
    • Line 114: warning: exported method Client.PopulateDevice should have comment or be unexported (golint)
    • go-netbox-client/netbox/dcim/inventory_item.go
    • Line 10: warning: exported method Client.InventoryItemFindAll should have comment or be unexported (golint)
    • Line 26: warning: exported method Client.InventoryItemCreate should have comment or be unexported (golint)
    • Line 44: warning: exported method Client.InventoryItemDelete should have comment or be unexported (golint)
    • go-netbox-client/types/vlan.go
    • Line 5: warning: exported type VLANStatus should have comment or be unexported (golint)
    • Line 8: warning: exported const VLANStatusUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported type VLAN should have comment or be unexported (golint)
    • Line 22: warning: exported method VLAN.Clone should have comment or be unexported (golint)
    • go-netbox-client/netbox/dcim/interface.go
    • Line 11: warning: exported method Client.InterfaceCreate should have comment or be unexported (golint)
    • Line 28: warning: comment on exported method Client.InterfaceFind should be of the form "InterfaceFind ..." (golint)
    • Line 56: warning: exported method Client.InterfaceFindAll should have comment or be unexported (golint)
    • Line 81: warning: exported method Client.InterfaceGet should have comment or be unexported (golint)
    • Line 112: warning: exported method Client.InterfaceUpdate should have comment or be unexported (golint)
    • go-netbox-client/types/inventory_item.go
    • Line 26: warning: exported function NewInventoryItem should have comment or be unexported (golint)
    • Line 42: warning: exported method InventoryItem.AddDetail should have comment or be unexported (golint)
    • Line 50: warning: exported method InventoryItem.GetHashableString should have comment or be unexported (golint)
    • Line 70: warning: exported method InventoryItem.Copy should have comment or be unexported (golint)
    • go-netbox-client/types/ip_address.go
    • Line 21: warning: exported type IPAddressStatus should have comment or be unexported (golint)
    • Line 25: warning: exported const IPAddressStatusActive should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported type IPAddressRole should have comment or be unexported (golint)
    • Line 35: warning: exported const IPAddressRoleLoopback should have comment (or a comment on this block) or be unexported (golint)
    • Line 62: warning: exported method IPAddress.Clone should have comment or be unexported (golint)
    • Line 88: warning: exported method IPAddress.IsNetwork should have comment or be unexported (golint)
    • go-netbox-client/types/common.go
    • Line 19: warning: comment on exported type Metadata should be of the form "Metadata ..." (with optional leading article) (golint)
    • Line 26: warning: exported method CommonEntity.SetNetboxEntity should have comment or be unexported (golint)
    • Line 35: warning: exported method CommonEntity.SetOriginalEntity should have comment or be unexported (golint)
    • Line 43: warning: exported method CommonEntity.HasNetboxEntity should have comment or be unexported (golint)
    • Line 47: warning: exported method CommonEntity.HasOriginalEntity should have comment or be unexported (golint)
    • Line 51: warning: exported method CommonEntity.GetMetaID should have comment or be unexported (golint)
    • Line 59: warning: exported method CommonEntity.GetMetaOriginalEntity should have comment or be unexported (golint)
    • Line 67: warning: exported method CommonEntity.GetMetaNetboxEntity 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!


misspell95%

Misspell Finds commonly misspelled English words