Preparing report...

Report for github.com/danieldin95/lightstar

A    Great!    Found 79 issues across 91 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!


gocyclo98%

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.


golint13%

Golint is a linter for Go source code.

    • lightstar/src/network/libvirtn/networkXML.go
    • Line 8: warning: exported type NetworkXML should have comment or be unexported (golint)
    • Line 18: warning: exported function NewNetworkXMLFromNet should have comment or be unexported (golint)
    • Line 31: warning: exported type ForwardXML should have comment or be unexported (golint)
    • Line 36: warning: exported type IPv4XML should have comment or be unexported (golint)
    • Line 44: warning: exported type BridgeXML should have comment or be unexported (golint)
    • Line 51: warning: exported type DHCPXML should have comment or be unexported (golint)
    • Line 56: warning: exported type DHCPRangeXML should have comment or be unexported (golint)
    • Line 62: warning: exported type VirtualPortXML should have comment or be unexported (golint)
    • lightstar/src/service/service.go
    • Line 8: warning: exported type Service should have comment or be unexported (golint)
    • Line 14: warning: exported var SERVICE should have comment or be unexported (golint)
    • Line 28: warning: exported method Service.Load should have comment or be unexported (golint)
    • lightstar/src/http/ext.go
    • Line 18: warning: exported type Download should have comment or be unexported (golint)
    • Line 21: warning: exported method Download.Router should have comment or be unexported (golint)
    • Line 47: warning: exported type WsGraphics should have comment or be unexported (golint)
    • Line 50: warning: exported method WsGraphics.Router should have comment or be unexported (golint)
    • Line 54: warning: exported method WsGraphics.GetRemote should have comment or be unexported (golint)
    • Line 93: warning: exported method WsGraphics.GetLocal should have comment or be unexported (golint)
    • Line 111: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 116: warning: exported method WsGraphics.GetTarget should have comment or be unexported (golint)
    • Line 132: warning: exported method WsGraphics.Handle should have comment or be unexported (golint)
    • Line 149: warning: exported type WsTcp should have comment or be unexported (golint)
    • Line 152: warning: exported method WsTcp.Router should have comment or be unexported (golint)
    • Line 156: warning: exported method WsTcp.Local should have comment or be unexported (golint)
    • Line 172: warning: exported method WsTcp.Remote should have comment or be unexported (golint)
    • Line 196: warning: exported method WsTcp.Handle should have comment or be unexported (golint)
    • Line 206: warning: exported type WsProxy should have comment or be unexported (golint)
    • Line 209: warning: exported method WsProxy.Router should have comment or be unexported (golint)
    • Line 213: warning: exported method WsProxy.Handle should have comment or be unexported (golint)
    • lightstar/src/http/api/utils.go
    • Line 20: warning: exported function GetArg should have comment or be unexported (golint)
    • Line 26: warning: exported function GetData should have comment or be unexported (golint)
    • Line 38: warning: exported function GetQueryOne should have comment or be unexported (golint)
    • Line 46: warning: exported function ResponseJson should have comment or be unexported (golint)
    • Line 56: warning: exported function ResponseXML should have comment or be unexported (golint)
    • Line 61: warning: exported function ResponseMsg should have comment or be unexported (golint)
    • Line 75: warning: comment on exported function GetPath should be of the form "GetPath ..." (golint)
    • Line 81: warning: comment on exported function NewVolume should be of the form "NewVolume ..." (golint)
    • Line 92: warning: comment on exported function NewVolumeAndPool should be of the form "NewVolumeAndPool ..." (golint)
    • Line 107: warning: comment on exported function NewBackingVolumeAndPool should be of the form "NewBackingVolumeAndPool ..." (golint)
    • Line 122: warning: comment on exported function RemovePool should be of the form "RemovePool ..." (golint)
    • Line 131: warning: exported function CleanPool should have comment or be unexported (golint)
    • Line 141: warning: exported function SetStatic should have comment or be unexported (golint)
    • Line 145: warning: exported function GetStatic should have comment or be unexported (golint)
    • Line 149: warning: exported function GetFile should have comment or be unexported (golint)
    • Line 153: warning: exported function ParseFiles should have comment or be unexported (golint)
    • Line 173: warning: exported function GetAuth should have comment or be unexported (golint)
    • Line 182: warning: exported function GetUser should have comment or be unexported (golint)
    • Line 188: warning: exported function ParseBasicAuth should have comment or be unexported (golint)
    • lightstar/src/http/api/zone.go
    • Line 11: warning: exported type Zone should have comment or be unexported (golint)
    • Line 14: warning: exported method Zone.Router should have comment or be unexported (golint)
    • Line 18: warning: exported method Zone.Get should have comment or be unexported (golint)
    • Line 32: warning: exported method Zone.Post should have comment or be unexported (golint)
    • Line 36: warning: exported method Zone.Put should have comment or be unexported (golint)
    • Line 40: warning: exported method Zone.Delete should have comment or be unexported (golint)
    • lightstar/src/compute/schema.go
    • Line 10: warning: exported function NewHyper should have comment or be unexported (golint)
    • Line 20: warning: exported function NewFromInterfaceXML should have comment or be unexported (golint)
    • Line 53: warning: exported function NewFromDiskXML should have comment or be unexported (golint)
    • Line 87: warning: exported function NewFromControllerXML should have comment or be unexported (golint)
    • Line 97: warning: exported function NewInstance should have comment or be unexported (golint)
    • Line 145: warning: exported function NewFromAddressXML should have comment or be unexported (golint)
    • lightstar/src/http/api/iso.go
    • Line 9: warning: exported type ISO should have comment or be unexported (golint)
    • Line 12: warning: exported method ISO.Router should have comment or be unexported (golint)
    • Line 16: warning: exported method ISO.Get should have comment or be unexported (golint)
    • lightstar/src/http/api/memory.go
    • Line 10: warning: exported type Memory should have comment or be unexported (golint)
    • Line 13: warning: exported method Memory.Router should have comment or be unexported (golint)
    • Line 18: warning: exported method Memory.Get should have comment or be unexported (golint)
    • Line 22: warning: exported method Memory.Post should have comment or be unexported (golint)
    • Line 26: warning: exported method Memory.Put should have comment or be unexported (golint)
    • Line 47: warning: exported method Memory.Delete should have comment or be unexported (golint)
    • lightstar/src/compute/libvirtc/diskutils.go
    • Line 8: warning: exported type Disk should have comment or be unexported (golint)
    • Line 12: warning: exported method Disk.Slot2Dev should have comment or be unexported (golint)
    • Line 23: warning: exported method Disk.Slot2Name should have comment or be unexported (golint)
    • Line 28: warning: exported var DISK should have comment or be unexported (golint)
    • lightstar/src/storage/libvirts/hyper.go
    • Line 9: warning: exported var PoolAll should have comment or be unexported (golint)
    • Line 12: warning: exported type HyperListener should have comment or be unexported (golint)
    • Line 17: warning: exported type HyperVisor should have comment or be unexported (golint)
    • Line 23: warning: exported method HyperVisor.AddListener should have comment or be unexported (golint)
    • Line 28: warning: exported method HyperVisor.Open should have comment or be unexported (golint)
    • Line 54: warning: exported method HyperVisor.Close should have comment or be unexported (golint)
    • Line 66: warning: exported method HyperVisor.ListAllPools should have comment or be unexported (golint)
    • Line 92: warning: exported function GetHyper should have comment or be unexported (golint)
    • Line 96: warning: exported function AddHyperListener should have comment or be unexported (golint)
    • Line 100: warning: exported function SetHyper should have comment or be unexported (golint)
    • lightstar/src/schema/instance.go
    • Line 3: warning: exported type Channel should have comment or be unexported (golint)
    • Line 10: warning: exported type Graphics should have comment or be unexported (golint)
    • Line 18: warning: exported type ListGraphics should have comment or be unexported (golint)
    • Line 23: warning: exported type Processor should have comment or be unexported (golint)
    • Line 29: warning: exported type Memory should have comment or be unexported (golint)
    • Line 34: warning: exported type Instance should have comment or be unexported (golint)
    • Line 58: warning: exported type ListInstance should have comment or be unexported (golint)
    • Line 63: warning: exported type Disk should have comment or be unexported (golint)
    • Line 86: warning: exported type ListDisk should have comment or be unexported (golint)
    • Line 91: warning: exported type Interface should have comment or be unexported (golint)
    • Line 110: warning: exported type ListInterface should have comment or be unexported (golint)
    • Line 115: warning: exported type Controller should have comment or be unexported (golint)
    • Line 122: warning: exported type Address should have comment or be unexported (golint)
    • Line 130: warning: exported type InstancesStats should have comment or be unexported (golint)
    • Line 141: warning: exported type Snapshot should have comment or be unexported (golint)
    • Line 149: warning: exported type ListSnapshot should have comment or be unexported (golint)
    • lightstar/src/storage/libvirts/pool.go
    • Line 9: warning: exported function ToDomainPool should have comment or be unexported (golint)
    • Line 13: warning: exported function IsDomainPool should have comment or be unexported (golint)
    • Line 17: warning: exported function IsStorePool should have comment or be unexported (golint)
    • Line 30: warning: exported type Pool should have comment or be unexported (golint)
    • Line 39: warning: exported function LookupPoolByUUID should have comment or be unexported (golint)
    • Line 51: warning: exported function LookupPoolByUUIDOrName should have comment or be unexported (golint)
    • Line 66: warning: exported function NewPoolFromVir should have comment or be unexported (golint)
    • Line 70: warning: exported function CreatePool should have comment or be unexported (golint)
    • Line 87: warning: exported method Pool.Create should have comment or be unexported (golint)
    • Line 109: warning: exported method Pool.Clean should have comment or be unexported (golint)
    • Line 145: warning: exported method Pool.Remove should have comment or be unexported (golint)
    • Line 201: warning: exported method Pool.List should have comment or be unexported (golint)
    • Line 217: warning: exported method Pool.ListByTarget should have comment or be unexported (golint)
    • Line 230: warning: exported function ListPools should have comment or be unexported (golint)
    • Line 238: warning: exported function PoolState2Str should have comment or be unexported (golint)
    • lightstar/src/service/user.go
    • Line 9: warning: exported type Users should have comment or be unexported (golint)
    • Line 15: warning: exported method Users.Save should have comment or be unexported (golint)
    • Line 24: warning: exported method Users.Load should have comment or be unexported (golint)
    • Line 42: warning: exported method Users.Add should have comment or be unexported (golint)
    • Line 53: warning: exported method Users.Del should have comment or be unexported (golint)
    • Line 63: warning: exported method Users.Get should have comment or be unexported (golint)
    • Line 73: warning: exported method Users.SetPass should have comment or be unexported (golint)
    • Line 84: warning: exported method Users.List should have comment or be unexported (golint)
    • lightstar/src/http/api/hyper.go
    • Line 12: warning: exported type Hyper should have comment or be unexported (golint)
    • Line 15: warning: exported method Hyper.Router should have comment or be unexported (golint)
    • Line 20: warning: exported method Hyper.Get should have comment or be unexported (golint)
    • Line 29: warning: exported method Hyper.Statics should have comment or be unexported (golint)
    • lightstar/src/network/libvirtn/hyper.go
    • Line 11: warning: exported var NetworkAll should have comment or be unexported (golint)
    • Line 14: warning: exported type HyperListener should have comment or be unexported (golint)
    • Line 19: warning: exported type HyperVisor should have comment or be unexported (golint)
    • Line 29: warning: exported method HyperVisor.AddListener should have comment or be unexported (golint)
    • Line 33: warning: exported method HyperVisor.OpenNotSafe should have comment or be unexported (golint)
    • Line 59: warning: exported method HyperVisor.Open should have comment or be unexported (golint)
    • Line 66: warning: exported method HyperVisor.Close should have comment or be unexported (golint)
    • Line 78: warning: exported method HyperVisor.ListAllNetworks should have comment or be unexported (golint)
    • Line 94: warning: exported method HyperVisor.NetworkDefineXML should have comment or be unexported (golint)
    • Line 106: warning: comment on exported method HyperVisor.LookupNetwork should be of the form "LookupNetwork ..." (golint)
    • Line 122: warning: exported method HyperVisor.SyncLeases should have comment or be unexported (golint)
    • Line 150: warning: exported method HyperVisor.GetLeases should have comment or be unexported (golint)
    • Line 160: warning: exported method HyperVisor.LookupLeases should have comment or be unexported (golint)
    • Line 184: warning: exported method HyperVisor.LoopForever should have comment or be unexported (golint)
    • Line 202: warning: exported function GetHyper should have comment or be unexported (golint)
    • Line 206: warning: exported function SetHyper should have comment or be unexported (golint)
    • Line 215: warning: exported function AddHyperListener should have comment or be unexported (golint)
    • lightstar/src/proxy/proxy.go
    • Line 16: warning: exported var PORT should have comment or be unexported (golint)
    • Line 26: warning: exported type Local should have comment or be unexported (golint)
    • Line 34: warning: exported method Local.Initialize should have comment or be unexported (golint)
    • Line 52: warning: exported method Local.Start should have comment or be unexported (golint)
    • Line 70: warning: exported method Local.OnClient should have comment or be unexported (golint)
    • Line 103: warning: exported method Local.Stop should have comment or be unexported (golint)
    • Line 109: warning: exported type Proxy should have comment or be unexported (golint)
    • Line 118: warning: exported method Proxy.Initialize should have comment or be unexported (golint)
    • Line 140: warning: exported method Proxy.Update should have comment or be unexported (golint)
    • Line 162: warning: exported method Proxy.Start should have comment or be unexported (golint)
    • Line 171: warning: exported method Proxy.Stop should have comment or be unexported (golint)
    • Line 184: warning: exported method Proxy.List should have comment or be unexported (golint)
    • Line 198: warning: exported method Proxy.Get should have comment or be unexported (golint)
    • Line 205: warning: exported method Proxy.Show should have comment or be unexported (golint)
    • lightstar/src/http/static.go
    • Line 12: warning: exported type Static should have comment or be unexported (golint)
    • Line 15: warning: exported method Static.Router should have comment or be unexported (golint)
    • Line 22: warning: exported method Static.Files should have comment or be unexported (golint)
    • Line 35: warning: exported method Static.Favicon should have comment or be unexported (golint)
    • lightstar/src/http/api/disk.go
    • Line 18: warning: exported type Disk should have comment or be unexported (golint)
    • Line 21: warning: exported method Disk.Router should have comment or be unexported (golint)
    • Line 28: warning: exported method Disk.Travel should have comment or be unexported (golint)
    • Line 80: warning: exported method Disk.Get should have comment or be unexported (golint)
    • Line 112: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 118: warning: exported function IsVolume should have comment or be unexported (golint)
    • Line 129: warning: exported function Disk2XML should have comment or be unexported (golint)
    • Line 188: warning: exported method Disk.Post should have comment or be unexported (golint)
    • Line 228: warning: exported method Disk.FindByDev should have comment or be unexported (golint)
    • Line 242: warning: exported method Disk.Delete should have comment or be unexported (golint)
    • lightstar/src/http/api/grahics.go
    • Line 14: warning: exported type Graphics should have comment or be unexported (golint)
    • Line 17: warning: exported method Graphics.Router should have comment or be unexported (golint)
    • Line 22: warning: exported method Graphics.Get should have comment or be unexported (golint)
    • Line 94: warning: exported method Graphics.Post should have comment or be unexported (golint)
    • lightstar/src/http/api/processor.go
    • Line 10: warning: exported type Processor should have comment or be unexported (golint)
    • Line 13: warning: exported method Processor.Router should have comment or be unexported (golint)
    • Line 18: warning: exported method Processor.Get should have comment or be unexported (golint)
    • Line 22: warning: exported method Processor.Post should have comment or be unexported (golint)
    • Line 26: warning: exported method Processor.Put should have comment or be unexported (golint)
    • Line 46: warning: exported method Processor.Delete should have comment or be unexported (golint)
    • lightstar/src/libstar/utils.go
    • Line 25: warning: exported function GenToken should have comment or be unexported (golint)
    • Line 37: warning: exported function GenEthAddr should have comment or be unexported (golint)
    • Line 50: warning: exported function FunName should have comment or be unexported (golint)
    • Line 54: warning: exported function Netmask2Len should have comment or be unexported (golint)
    • Line 61: warning: exported function PrettySecs should have comment or be unexported (golint)
    • Line 74: warning: exported function PrettyBytes should have comment or be unexported (golint)
    • Line 94: warning: exported function PrettyKBytes should have comment or be unexported (golint)
    • Line 110: warning: exported function ToBytes should have comment or be unexported (golint)
    • Line 128: warning: exported function ToKiB should have comment or be unexported (golint)
    • Line 149: warning: exported var JSON should have comment or be unexported (golint)
    • Line 203: warning: exported var XML should have comment or be unexported (golint)
    • Line 272: warning: exported type Dir should have comment or be unexported (golint)
    • Line 275: warning: exported var DIR should have comment or be unexported (golint)
    • Line 277: warning: exported method Dir.ListFiles should have comment or be unexported (golint)
    • Line 297: warning: exported method Dir.ListDirs should have comment or be unexported (golint)
    • Line 314: warning: exported function H2D8 should have comment or be unexported (golint)
    • Line 323: warning: exported function H2D16 should have comment or be unexported (golint)
    • Line 332: warning: exported function PrettyPCI should have comment or be unexported (golint)
    • Line 336: warning: exported function PrettyDrive should have comment or be unexported (golint)
    • Line 340: warning: exported function IsDigit should have comment or be unexported (golint)
    • Line 350: warning: exported function BasicAuth should have comment or be unexported (golint)
    • Line 358: warning: exported function Wait should have comment or be unexported (golint)
    • Line 368: warning: exported function GetJSON should have comment or be unexported (golint)
    • Line 381: warning: exported function GenUUID should have comment or be unexported (golint)
    • lightstar/src/schema/index.go
    • Line 5: warning: exported type Version should have comment or be unexported (golint)
    • Line 11: warning: exported function NewVersion should have comment or be unexported (golint)
    • Line 19: warning: exported type Hyper should have comment or be unexported (golint)
    • Line 32: warning: exported type Index should have comment or be unexported (golint)
    • Line 39: warning: exported type StaticsInfo should have comment or be unexported (golint)
    • Line 46: warning: exported type Statics should have comment or be unexported (golint)
    • lightstar/src/schema/network.go
    • Line 3: warning: exported type Range should have comment or be unexported (golint)
    • Line 8: warning: exported type Network should have comment or be unexported (golint)
    • Line 21: warning: exported type ListNetwork should have comment or be unexported (golint)
    • lightstar/src/storage/storemgr.go
    • Line 11: warning: exported type IsoFile should have comment or be unexported (golint)
    • Line 16: warning: exported type IsoMgr should have comment or be unexported (golint)
    • Line 20: warning: exported method IsoMgr.ListFiles should have comment or be unexported (golint)
    • Line 64: warning: exported var ISO should have comment or be unexported (golint)
    • Line 68: warning: exported type Store should have comment or be unexported (golint)
    • Line 77: warning: exported type StoreMgr should have comment or be unexported (golint)
    • Line 81: warning: exported method StoreMgr.Init should have comment or be unexported (golint)
    • Line 94: warning: exported method StoreMgr.List should have comment or be unexported (golint)
    • Line 130: warning: exported var DATASTOR should have comment or be unexported (golint)
    • lightstar/src/http/api/user.go
    • Line 11: warning: exported type User should have comment or be unexported (golint)
    • Line 14: warning: exported type Password should have comment or be unexported (golint)
    • Line 19: warning: exported method User.Router should have comment or be unexported (golint)
    • Line 26: warning: exported method User.Get should have comment or be unexported (golint)
    • Line 42: warning: exported method User.Post should have comment or be unexported (golint)
    • Line 57: warning: exported method User.Put should have comment or be unexported (golint)
    • Line 73: warning: exported method User.Delete should have comment or be unexported (golint)
    • lightstar/src/schema/datastore.go
    • Line 3: warning: exported type NFS should have comment or be unexported (golint)
    • Line 9: warning: exported type DataStore should have comment or be unexported (golint)
    • Line 23: warning: exported type ListDataStore should have comment or be unexported (golint)
    • lightstar/src/http/client/instance.go
    • Line 8: warning: exported type Instance should have comment or be unexported (golint)
    • Line 13: warning: exported method Instance.Url should have comment or be unexported (golint)
    • Line 20: warning: exported method Instance.Get should have comment or be unexported (golint)
    • lightstar/src/http/api/instance.go
    • Line 20: warning: exported type Instance should have comment or be unexported (golint)
    • Line 23: warning: exported method Instance.Router should have comment or be unexported (golint)
    • Line 39: warning: exported function GetTypeByVolume should have comment or be unexported (golint)
    • Line 70: warning: exported function NewCdXML should have comment or be unexported (golint)
    • Line 89: warning: exported function NewIsoXML should have comment or be unexported (golint)
    • Line 121: warning: exported function NewDiskXML should have comment or be unexported (golint)
    • Line 157: warning: exported function NewFileXML should have comment or be unexported (golint)
    • Line 190: warning: exported function Instance2XML should have comment or be unexported (golint)
    • Line 362: warning: exported method Instance.HasPermission should have comment or be unexported (golint)
    • Line 380: warning: exported method Instance.GetByUser should have comment or be unexported (golint)
    • Line 396: warning: exported method Instance.Stats should have comment or be unexported (golint)
    • Line 427: warning: exported method Instance.Get should have comment or be unexported (golint)
    • Line 464: warning: exported method Instance.Post should have comment or be unexported (golint)
    • Line 516: warning: exported method Instance.Execute should have comment or be unexported (golint)
    • Line 575: warning: exported method Instance.Shutdown should have comment or be unexported (golint)
    • Line 580: warning: exported method Instance.Start should have comment or be unexported (golint)
    • Line 585: warning: exported method Instance.Suspend should have comment or be unexported (golint)
    • Line 590: warning: exported method Instance.Resume should have comment or be unexported (golint)
    • Line 595: warning: exported method Instance.Destroy should have comment or be unexported (golint)
    • Line 600: warning: exported method Instance.Reset should have comment or be unexported (golint)
    • Line 605: warning: exported method Instance.Undefine should have comment or be unexported (golint)
    • Line 610: warning: exported method Instance.Title should have comment or be unexported (golint)
    • Line 637: warning: exported method Instance.Delete should have comment or be unexported (golint)
    • lightstar/src/storage/datastore.go
    • Line 8: warning: exported const Location should have comment or be unexported (golint)
    • Line 9: warning: exported const DataStore should have comment or be unexported (golint)
    • Line 11: warning: exported type StorePath should have comment or be unexported (golint)
    • Line 13: warning: exported var PATH should have comment or be unexported (golint)
    • Line 15: warning: comment on exported method StorePath.Fmt should be of the form "Fmt ..." (golint)
    • Line 37: warning: comment on exported method StorePath.IsDataStore should be of the form "IsDataStore ..." (golint)
    • Line 42: warning: comment on exported method StorePath.GetStoreID should be of the form "GetStoreID ..." (golint)
    • Line 50: warning: exported function IsStoreID should have comment or be unexported (golint)
    • Line 63: warning: comment on exported method StorePath.Unix should be of the form "Unix ..." (golint)
    • Line 88: warning: exported method StorePath.Root should have comment or be unexported (golint)
    • Line 92: warning: exported method StorePath.RootXML should have comment or be unexported (golint)
    • lightstar/src/compute/libvirtc/domain.go
    • Line 10: warning: exported var DomainAll should have comment or be unexported (golint)
    • Line 21: warning: exported type Domain should have comment or be unexported (golint)
    • Line 26: warning: exported function NewDomainFromVir should have comment or be unexported (golint)
    • Line 42: warning: exported method Domain.SetCpu should have comment or be unexported (golint)
    • Line 82: warning: exported method Domain.SetMemory should have comment or be unexported (golint)
    • Line 144: warning: exported method Domain.GetXMLDesc should have comment or be unexported (golint)
    • Line 147: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 152: warning: exported method Domain.GetMetadataTitle should have comment or be unexported (golint)
    • Line 160: warning: comment on exported method Domain.SetMetadataTitle should be of the form "SetMetadataTitle ..." (golint)
    • Line 174: warning: exported function ListDomains should have comment or be unexported (golint)
    • Line 182: warning: exported function DomainState2Str should have comment or be unexported (golint)
    • lightstar/src/compute/libvirtc/hyper.go
    • Line 11: warning: exported type HyperListener should have comment or be unexported (golint)
    • Line 16: warning: exported type HyperVisor should have comment or be unexported (golint)
    • Line 79: warning: exported method HyperVisor.UpTime should have comment or be unexported (golint)
    • Line 83: warning: exported method HyperVisor.Open should have comment or be unexported (golint)
    • Line 89: warning: exported method HyperVisor.AddListener should have comment or be unexported (golint)
    • Line 93: warning: exported method HyperVisor.SetUrl should have comment or be unexported (golint)
    • Line 110: warning: exported method HyperVisor.FigureCPU should have comment or be unexported (golint)
    • Line 149: warning: exported method HyperVisor.LoopForever should have comment or be unexported (golint)
    • Line 162: warning: exported method HyperVisor.GetCPU should have comment or be unexported (golint)
    • Line 175: warning: exported method HyperVisor.GetMem should have comment or be unexported (golint)
    • Line 193: warning: exported method HyperVisor.GetRootfs should have comment or be unexported (golint)
    • Line 200: warning: exported method HyperVisor.ListAllDomains should have comment or be unexported (golint)
    • Line 216: warning: exported method HyperVisor.LookupDomainByUUIDString should have comment or be unexported (golint)
    • Line 227: warning: exported method HyperVisor.LookupDomainByUUIDName should have comment or be unexported (golint)
    • Line 242: warning: exported method HyperVisor.LookupDomainByName should have comment or be unexported (golint)
    • Line 253: warning: exported method HyperVisor.DomainDefineXML should have comment or be unexported (golint)
    • Line 264: warning: exported method HyperVisor.Close should have comment or be unexported (golint)
    • Line 284: warning: exported function GetHyper should have comment or be unexported (golint)
    • Line 288: warning: exported function SetHyper should have comment or be unexported (golint)
    • Line 297: warning: exported function LookupDomainByUUIDString should have comment or be unexported (golint)
    • Line 309: warning: exported function LookupDomainByUUIDName should have comment or be unexported (golint)
    • Line 321: warning: exported function AddHyperListener should have comment or be unexported (golint)
    • lightstar/src/storage/libvirts/volumeXML.go
    • Line 7: warning: exported type VolumeXML should have comment or be unexported (golint)
    • Line 19: warning: exported type CapacityXML should have comment or be unexported (golint)
    • Line 25: warning: exported type AllocationXML should have comment or be unexported (golint)
    • Line 31: warning: exported type PhysicalXML should have comment or be unexported (golint)
    • Line 37: warning: exported type FormatXML should have comment or be unexported (golint)
    • Line 42: warning: exported type TargetXML should have comment or be unexported (golint)
    • Line 48: warning: exported type BackingStoreXML should have comment or be unexported (golint)
    • lightstar/src/service/zone.go
    • Line 9: warning: exported type Zone should have comment or be unexported (golint)
    • Line 15: warning: exported method Zone.Load should have comment or be unexported (golint)
    • Line 38: warning: exported method Zone.Get should have comment or be unexported (golint)
    • Line 44: warning: exported method Zone.Add should have comment or be unexported (golint)
    • Line 50: warning: exported method Zone.List should have comment or be unexported (golint)
    • lightstar/src/http/client/dhcp.go
    • Line 8: warning: exported type DHCPLease should have comment or be unexported (golint)
    • Line 12: warning: exported method DHCPLease.Url should have comment or be unexported (golint)
    • Line 16: warning: exported method DHCPLease.Get should have comment or be unexported (golint)
    • lightstar/src/http/fs.go
    • Line 16: warning: exported type FileInfo should have comment or be unexported (golint)
    • Line 23: warning: exported type ListFileInfo should have comment or be unexported (golint)
    • Line 40: warning: exported function FileServer should have comment or be unexported (golint)
    • Line 230: warning: exported function GetTime should have comment or be unexported (golint)
    • lightstar/src/storage/libvirts/poolXML.go
    • Line 7: warning: exported type PoolXML should have comment or be unexported (golint)
    • Line 19: warning: exported type AvailableXML should have comment or be unexported (golint)
    • Line 25: warning: exported type SourceXML should have comment or be unexported (golint)
    • Line 32: warning: exported type HostXML should have comment or be unexported (golint)
    • Line 37: warning: exported type DirXML should have comment or be unexported (golint)
    • lightstar/src/storage/libvirts/volume.go
    • Line 9: warning: exported type Volume should have comment or be unexported (golint)
    • Line 19: warning: exported function CreateVolume should have comment or be unexported (golint)
    • Line 29: warning: exported function CreateBackingVolume should have comment or be unexported (golint)
    • Line 40: warning: exported function RemoveVolume should have comment or be unexported (golint)
    • Line 48: warning: exported method Volume.Create should have comment or be unexported (golint)
    • Line 90: warning: exported method Volume.GetXMLObj should have comment or be unexported (golint)
    • Line 116: warning: exported method Volume.Remove should have comment or be unexported (golint)
    • Line 140: warning: exported function VolumeType should have comment or be unexported (golint)
    • Line 159: warning: exported type VolumeInfo should have comment or be unexported (golint)
    • lightstar/src/http/api/interface.go
    • Line 13: warning: exported type Interface should have comment or be unexported (golint)
    • Line 16: warning: exported method Interface.Router should have comment or be unexported (golint)
    • Line 24: warning: exported method Interface.List should have comment or be unexported (golint)
    • Line 51: warning: exported method Interface.Get should have comment or be unexported (golint)
    • Line 79: warning: exported method Interface.Post should have comment or be unexported (golint)
    • Line 108: warning: exported method Interface.Put should have comment or be unexported (golint)
    • Line 112: warning: exported method Interface.Delete should have comment or be unexported (golint)
    • lightstar/src/http/api/snapshot.go
    • Line 13: warning: exported type Snapshot should have comment or be unexported (golint)
    • Line 16: warning: exported method Snapshot.Router should have comment or be unexported (golint)
    • Line 24: warning: exported method Snapshot.Get should have comment or be unexported (golint)
    • Line 75: warning: exported method Snapshot.Post should have comment or be unexported (golint)
    • Line 96: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 102: warning: exported method Snapshot.Revert should have comment or be unexported (golint)
    • Line 116: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 128: warning: exported method Snapshot.Delete should have comment or be unexported (golint)
    • Line 142: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • lightstar/src/http/api/upload.go
    • Line 12: warning: exported type Upload should have comment or be unexported (golint)
    • Line 15: warning: exported method Upload.Router should have comment or be unexported (golint)
    • Line 20: warning: exported method Upload.Get should have comment or be unexported (golint)
    • Line 47: warning: exported method Upload.Post should have comment or be unexported (golint)
    • lightstar/src/libstar/wait.go
    • Line 3: warning: exported type WaitOne should have comment or be unexported (golint)
    • Line 7: warning: exported function NewWaitOne should have comment or be unexported (golint)
    • Line 13: warning: exported method WaitOne.Done should have comment or be unexported (golint)
    • Line 17: warning: exported method WaitOne.Wait should have comment or be unexported (golint)
    • lightstar/src/schema/host.go
    • Line 5: warning: exported type Host should have comment or be unexported (golint)
    • Line 15: warning: exported method Host.Initialize should have comment or be unexported (golint)
    • lightstar/src/network/libvirtn/bridge.go
    • Line 7: warning: exported type Bridge should have comment or be unexported (golint)
    • Line 13: warning: exported type BridgeMgr should have comment or be unexported (golint)
    • Line 17: warning: exported method BridgeMgr.List should have comment or be unexported (golint)
    • Line 53: warning: exported method BridgeMgr.Get should have comment or be unexported (golint)
    • Line 74: warning: exported var BRIDGE should have comment or be unexported (golint)
    • lightstar/src/network/libvirtn/network.go
    • Line 7: warning: exported type DHCPLease should have comment or be unexported (golint)
    • Line 15: warning: exported type Network should have comment or be unexported (golint)
    • Line 19: warning: exported function NewNetworkFromVir should have comment or be unexported (golint)
    • Line 23: warning: exported function ListNetworks should have comment or be unexported (golint)
    • Line 31: warning: exported function LookupNetwork should have comment or be unexported (golint)
    • Line 39: warning: exported function ListLeases should have comment or be unexported (golint)
    • Line 47: warning: exported function LookupLeases should have comment or be unexported (golint)
    • lightstar/src/http/server.go
    • Line 16: warning: exported type Server should have comment or be unexported (golint)
    • Line 27: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 37: warning: exported method Server.Router should have comment or be unexported (golint)
    • Line 45: warning: exported method Server.LoadRouter should have comment or be unexported (golint)
    • Line 84: warning: exported method Server.SetCert should have comment or be unexported (golint)
    • Line 89: warning: exported method Server.Initialize should have comment or be unexported (golint)
    • Line 106: warning: exported method Server.Filter should have comment or be unexported (golint)
    • Line 122: warning: exported method Server.IsAuth should have comment or be unexported (golint)
    • Line 137: warning: exported method Server.LogRequest should have comment or be unexported (golint)
    • Line 154: warning: exported method Server.Middleware should have comment or be unexported (golint)
    • Line 173: warning: exported method Server.Start should have comment or be unexported (golint)
    • Line 191: warning: exported method Server.Shutdown should have comment or be unexported (golint)
    • Line 198: warning: exported method Server.Handle404 should have comment or be unexported (golint)
    • lightstar/src/http/api/proxy.go
    • Line 14: warning: exported type ProxyTcp should have comment or be unexported (golint)
    • Line 17: warning: exported method ProxyTcp.Router should have comment or be unexported (golint)
    • Line 21: warning: exported method ProxyTcp.Graphics should have comment or be unexported (golint)
    • Line 42: warning: exported method ProxyTcp.GetTarget should have comment or be unexported (golint)
    • Line 63: warning: exported method ProxyTcp.Local should have comment or be unexported (golint)
    • Line 80: warning: exported method ProxyTcp.Remote should have comment or be unexported (golint)
    • Line 120: warning: exported method ProxyTcp.Get should have comment or be unexported (golint)
    • lightstar/src/libstar/pprof.go
    • Line 5: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 8: warning: exported type PProf should have comment or be unexported (golint)
    • Line 12: warning: exported method PProf.Start should have comment or be unexported (golint)
    • lightstar/src/http/api/network.go
    • Line 14: warning: exported type Network should have comment or be unexported (golint)
    • Line 17: warning: exported function IsUniCast should have comment or be unexported (golint)
    • Line 28: warning: exported function Network2XML should have comment or be unexported (golint)
    • Line 74: warning: exported method Network.Router should have comment or be unexported (golint)
    • Line 81: warning: exported method Network.Get should have comment or be unexported (golint)
    • Line 119: warning: exported method Network.Post should have comment or be unexported (golint)
    • Line 149: warning: exported method Network.Put should have comment or be unexported (golint)
    • Line 153: warning: exported method Network.Delete should have comment or be unexported (golint)
    • lightstar/src/schema/dhcp.go
    • Line 3: warning: exported type DHCPLease should have comment or be unexported (golint)
    • Line 11: warning: exported type DHCPLeases should have comment or be unexported (golint)
    • Line 13: warning: exported type ListDHCPLease should have comment or be unexported (golint)
    • lightstar/src/http/client/client.go
    • Line 10: warning: exported type Client should have comment or be unexported (golint)
    • Line 15: warning: exported method Client.NewRequest should have comment or be unexported (golint)
    • Line 27: warning: exported method Client.GetJSON should have comment or be unexported (golint)
    • lightstar/src/http/client/proxy.go
    • Line 8: warning: exported type ProxyTcp should have comment or be unexported (golint)
    • Line 12: warning: exported method ProxyTcp.Url should have comment or be unexported (golint)
    • Line 16: warning: exported method ProxyTcp.Get should have comment or be unexported (golint)
    • lightstar/src/proxy/ws.go
    • Line 11: warning: exported type WsClient should have comment or be unexported (golint)
    • Line 18: warning: exported method WsClient.Initialize should have comment or be unexported (golint)
    • Line 29: warning: exported method WsClient.Dial should have comment or be unexported (golint)
    • lightstar/src/http/api/volume.go
    • Line 11: warning: exported type Volume should have comment or be unexported (golint)
    • Line 14: warning: exported method Volume.Router should have comment or be unexported (golint)
    • Line 19: warning: exported method Volume.Get should have comment or be unexported (golint)
    • Line 48: warning: exported method Volume.Post should have comment or be unexported (golint)
    • Line 52: warning: exported method Volume.Put should have comment or be unexported (golint)
    • Line 56: warning: exported method Volume.Delete should have comment or be unexported (golint)
    • lightstar/src/http/ui.go
    • Line 16: warning: exported type UI should have comment or be unexported (golint)
    • Line 19: warning: exported method UI.Router should have comment or be unexported (golint)
    • Line 28: warning: exported method UI.Index should have comment or be unexported (golint)
    • Line 32: warning: exported method UI.Home should have comment or be unexported (golint)
    • Line 48: warning: exported method UI.Console should have comment or be unexported (golint)
    • Line 60: warning: exported method UI.Lite should have comment or be unexported (golint)
    • Line 72: warning: exported method UI.Hi should have comment or be unexported (golint)
    • Line 85: warning: exported type Login should have comment or be unexported (golint)
    • Line 88: warning: exported method Login.Router should have comment or be unexported (golint)
    • Line 92: warning: exported method Login.Login should have comment or be unexported (golint)
    • lightstar/src/http/api/bridger.go
    • Line 9: warning: exported type Bridger should have comment or be unexported (golint)
    • Line 12: warning: exported method Bridger.Router should have comment or be unexported (golint)
    • Line 16: warning: exported method Bridger.Get should have comment or be unexported (golint)
    • Line 20: warning: exported method Bridger.Post should have comment or be unexported (golint)
    • Line 24: warning: exported method Bridger.Put should have comment or be unexported (golint)
    • Line 28: warning: exported method Bridger.Delete should have comment or be unexported (golint)
    • lightstar/src/http/api/datastore.go
    • Line 16: warning: exported type DataStore should have comment or be unexported (golint)
    • Line 19: warning: exported function DataStore2XML should have comment or be unexported (golint)
    • Line 51: warning: exported method DataStore.Router should have comment or be unexported (golint)
    • Line 58: warning: exported method DataStore.Get should have comment or be unexported (golint)
    • Line 101: warning: exported method DataStore.Post should have comment or be unexported (golint)
    • Line 117: warning: exported method DataStore.Put should have comment or be unexported (golint)
    • Line 121: warning: exported method DataStore.Delete should have comment or be unexported (golint)
    • lightstar/src/libstar/daemon.go
    • Line 9: warning: exported function PreNotify should have comment or be unexported (golint)
    • Line 12: warning: exported function SdNotify should have comment or be unexported (golint)
    • Line 16: warning: exported function SavePID should have comment or be unexported (golint)
    • lightstar/src/libstar/http.go
    • Line 9: warning: exported type HttpClient should have comment or be unexported (golint)
    • Line 18: warning: exported method HttpClient.Do should have comment or be unexported (golint)
    • Line 40: warning: exported method HttpClient.Close should have comment or be unexported (golint)
    • lightstar/src/libstar/proxy.go
    • Line 11: warning: exported type Auth should have comment or be unexported (golint)
    • Line 17: warning: exported type Proxy should have comment or be unexported (golint)
    • Line 25: warning: exported method Proxy.Initialize should have comment or be unexported (golint)
    • Line 30: warning: exported method Proxy.GetPath should have comment or be unexported (golint)
    • Line 39: warning: exported type ProxyUrl should have comment or be unexported (golint)
    • Line 46: warning: exported method ProxyUrl.Initialize should have comment or be unexported (golint)
    • Line 53: warning: exported method ProxyUrl.ServeHttp should have comment or be unexported (golint)
    • Line 77: warning: exported method ProxyUrl.Handler should have comment or be unexported (golint)
    • Line 95: warning: exported type ProxyWs should have comment or be unexported (golint)
    • Line 99: warning: exported method ProxyWs.Dial should have comment or be unexported (golint)
    • Line 99: warning: don't use underscores in Go names; method parameter url_ should be url (golint)
    • Line 116: warning: exported method ProxyWs.Socket should have comment or be unexported (golint)
    • lightstar/src/http/api/dhcp.go
    • Line 10: warning: exported type DHCPLease should have comment or be unexported (golint)
    • Line 13: warning: exported method DHCPLease.Router should have comment or be unexported (golint)
    • Line 18: warning: exported method DHCPLease.Getx should have comment or be unexported (golint)
    • Line 35: warning: exported method DHCPLease.Get should have comment or be unexported (golint)
    • lightstar/src/libstar/logger.go
    • Line 14: warning: exported const PRINT should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type Logger should have comment or be unexported (golint)
    • Line 30: warning: exported type Message should have comment or be unexported (golint)
    • Line 36: warning: exported method Logger.Debug should have comment or be unexported (golint)
    • Line 42: warning: exported method Logger.Info should have comment or be unexported (golint)
    • Line 49: warning: exported method Logger.Warn should have comment or be unexported (golint)
    • Line 63: warning: exported method Logger.Fatal should have comment or be unexported (golint)
    • Line 70: warning: exported method Logger.Print should have comment or be unexported (golint)
    • Line 76: warning: exported method Logger.SaveError should have comment or be unexported (golint)
    • Line 99: warning: exported method Logger.List should have comment or be unexported (golint)
    • Line 112: warning: exported var Log should have comment or be unexported (golint)
    • Line 118: warning: exported function Print should have comment or be unexported (golint)
    • Line 122: warning: exported function Error should have comment or be unexported (golint)
    • Line 126: warning: exported function Debug should have comment or be unexported (golint)
    • Line 130: warning: exported function Info should have comment or be unexported (golint)
    • Line 134: warning: exported function Warn should have comment or be unexported (golint)
    • Line 138: warning: exported function Fatal should have comment or be unexported (golint)
    • Line 142: warning: exported function Init should have comment or be unexported (golint)
    • Line 155: warning: exported function SetLog should have comment or be unexported (golint)
    • Line 159: warning: exported function Close should have comment or be unexported (golint)
    • Line 163: warning: exported function Catch should have comment or be unexported (golint)
    • lightstar/src/compute/libvirtc/instanceXML.go
    • Line 9: warning: exported var PciDomain should have comment or be unexported (golint)
    • Line 15: warning: exported type DomainXML should have comment or be unexported (golint)
    • Line 30: warning: exported type CPUXML should have comment or be unexported (golint)
    • Line 37: warning: exported function NewDomainXMLFromDom should have comment or be unexported (golint)
    • Line 54: warning: exported method DomainXML.GraphicsAddr should have comment or be unexported (golint)
    • Line 66: warning: exported type VCPUXML should have comment or be unexported (golint)
    • Line 72: warning: exported type FeaturesXML should have comment or be unexported (golint)
    • Line 79: warning: exported type ACPIXML should have comment or be unexported (golint)
    • Line 84: warning: exported type APICXML should have comment or be unexported (golint)
    • Line 89: warning: exported type PaeXML should have comment or be unexported (golint)
    • Line 94: warning: exported type MemXML should have comment or be unexported (golint)
    • Line 100: warning: exported type CurMemXML should have comment or be unexported (golint)
    • Line 106: warning: exported type OSXML should have comment or be unexported (golint)
    • Line 113: warning: exported type OSTypeXML should have comment or be unexported (golint)
    • Line 120: warning: exported type OSBootXML should have comment or be unexported (golint)
    • Line 125: warning: exported type OSBootMenuXML should have comment or be unexported (golint)
    • Line 130: warning: exported type DevicesXML should have comment or be unexported (golint)
    • Line 142: warning: comment on exported type ControllerXML should be of the form "ControllerXML ..." (with optional leading article) (golint)
    • Line 154: warning: exported type AddressXML should have comment or be unexported (golint)
    • Line 166: warning: exported type GraphicsXML should have comment or be unexported (golint)
    • Line 175: warning: exported type DiskXML should have comment or be unexported (golint)
    • Line 185: warning: exported type DiskDriverXML should have comment or be unexported (golint)
    • Line 191: warning: exported type DiskSourceXML should have comment or be unexported (golint)
    • Line 197: warning: exported type DiskTargetXML should have comment or be unexported (golint)
    • Line 203: warning: exported type InterfaceXML should have comment or be unexported (golint)
    • Line 215: warning: exported type InterfaceMacXML should have comment or be unexported (golint)
    • Line 220: warning: exported type InterfaceSourceXML should have comment or be unexported (golint)
    • Line 227: warning: exported type InterfaceModelXML should have comment or be unexported (golint)
    • Line 232: warning: exported type InterfaceDriverXML should have comment or be unexported (golint)
    • Line 238: warning: exported type InterfaceTargetXML should have comment or be unexported (golint)
    • Line 244: warning: exported type InterfaceVirPortXML should have comment or be unexported (golint)
    • Line 249: warning: exported type InputDeviceXML should have comment or be unexported (golint)
    • Line 255: warning: exported type SoundDeviceXML should have comment or be unexported (golint)
    • Line 260: warning: exported type VideoDeviceXML should have comment or be unexported (golint)
    • Line 265: warning: exported type VideoModelXML should have comment or be unexported (golint)
    • Line 270: warning: exported type ChannelDeviceXML should have comment or be unexported (golint)
    • Line 277: warning: exported type ChannelTargetXML should have comment or be unexported (golint)
    • Line 283: warning: exported type ChannelSourceXML should have comment or be unexported (golint)
    • lightstar/src/service/permis.go
    • Line 9: warning: exported type RuleValue should have comment or be unexported (golint)
    • Line 14: warning: exported type Rule should have comment or be unexported (golint)
    • Line 22: warning: exported type RouteMatcher should have comment or be unexported (golint)
    • Line 26: warning: exported method RouteMatcher.Add should have comment or be unexported (golint)
    • Line 44: warning: exported type Permission should have comment or be unexported (golint)
    • Line 48: warning: exported method Permission.Load should have comment or be unexported (golint)
    • Line 62: warning: exported method Permission.Has should have comment or be unexported (golint)
    • Line 94: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • lightstar/src/http/host.go
    • Line 14: warning: exported type Host should have comment or be unexported (golint)
    • Line 17: warning: exported method Host.Router should have comment or be unexported (golint)
    • Line 72: warning: exported method Host.Filter should have comment or be unexported (golint)
    • Line 97: warning: exported method Host.Handle should have comment or be unexported (golint)
    • lightstar/src/libstar/iputils.go
    • Line 8: warning: exported function ParseIP4Netmask should have comment or be unexported (golint)
    • Line 18: warning: exported function IP4Network2RangeN should have comment or be unexported (golint)
    • Line 33: warning: exported function IP4Network2Range should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!