Preparing report...

Report for github.com/bobuhiro11/gokvm

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!


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.


golint50%

Golint is a linter for Go source code.

    • gokvm/serial/serial.go
    • Line 8: warning: exported const COM1Addr should have comment (or a comment on this block) or be unexported (golint)
    • Line 11: warning: exported type Serial should have comment or be unexported (golint)
    • Line 21: warning: exported function New should have comment or be unexported (golint)
    • Line 31: warning: exported method Serial.GetInputChan should have comment or be unexported (golint)
    • Line 39: warning: exported method Serial.InjectIRQ should have comment or be unexported (golint)
    • Line 44: warning: exported method Serial.In should have comment or be unexported (golint)
    • Line 84: warning: exported method Serial.Out should have comment or be unexported (golint)
    • gokvm/bootparam/bootparam.go
    • Line 13: warning: exported const MagicSignature should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported type E820Entry should have comment or be unexported (golint)
    • Line 37: warning: comment on exported type BootParam should be of the form "BootParam ..." (with optional leading article) (golint)
    • Line 57: warning: exported type SetupHeader should have comment or be unexported (golint)
    • Line 99: warning: exported var ErrorSignatureNotMatch should have comment or be unexported (golint)
    • Line 101: warning: exported var ErrorOldProtocolVersion should have comment or be unexported (golint)
    • Line 103: warning: exported function New should have comment or be unexported (golint)
    • Line 144: warning: exported method BootParam.AddE820Entry should have comment or be unexported (golint)
    • Line 154: warning: exported method BootParam.Bytes should have comment or be unexported (golint)
    • gokvm/kvm/kvm.go
    • Line 28: warning: exported const EXITUNKNOWN should have comment (or a comment on this block) or be unexported (golint)
    • Line 55: warning: exported var ErrorUnexpectedEXITReason should have comment or be unexported (golint)
    • Line 57: warning: exported type Regs should have comment or be unexported (golint)
    • Line 78: warning: exported type Sregs should have comment or be unexported (golint)
    • Line 99: warning: exported type Segment should have comment or be unexported (golint)
    • Line 115: warning: exported type Descriptor should have comment or be unexported (golint)
    • Line 121: warning: exported type RunData should have comment or be unexported (golint)
    • Line 134: warning: exported method RunData.IO should have comment or be unexported (golint)
    • Line 144: warning: exported type UserspaceMemoryRegion should have comment or be unexported (golint)
    • Line 152: warning: exported method UserspaceMemoryRegion.SetMemLogDirtyPages should have comment or be unexported (golint)
    • Line 156: warning: exported method UserspaceMemoryRegion.SetMemReadonly should have comment or be unexported (golint)
    • Line 172: warning: exported function GetAPIVersion should have comment or be unexported (golint)
    • Line 176: warning: exported function CreateVM should have comment or be unexported (golint)
    • Line 180: warning: exported function CreateVCPU should have comment or be unexported (golint)
    • Line 184: warning: exported function Run should have comment or be unexported (golint)
    • Line 190: warning: exported function GetVCPUMMmapSize should have comment or be unexported (golint)
    • Line 194: warning: exported function GetSregs should have comment or be unexported (golint)
    • Line 201: warning: exported function SetSregs should have comment or be unexported (golint)
    • Line 207: warning: exported function GetRegs should have comment or be unexported (golint)
    • Line 214: warning: exported function SetRegs should have comment or be unexported (golint)
    • Line 220: warning: exported function SetUserMemoryRegion should have comment or be unexported (golint)
    • Line 226: warning: exported function SetTSSAddr should have comment or be unexported (golint)
    • Line 232: warning: exported function SetIdentityMapAddr should have comment or be unexported (golint)
    • Line 239: warning: exported type IRQLevel should have comment or be unexported (golint)
    • Line 244: warning: exported function IRQLine should have comment or be unexported (golint)
    • Line 255: warning: exported function CreateIRQChip should have comment or be unexported (golint)
    • Line 261: warning: exported type PitConfig should have comment or be unexported (golint)
    • Line 266: warning: exported function CreatePIT2 should have comment or be unexported (golint)
    • Line 275: warning: exported type CPUID should have comment or be unexported (golint)
    • Line 281: warning: exported type CPUIDEntry2 should have comment or be unexported (golint)
    • Line 292: warning: exported function GetSupportedCPUID should have comment or be unexported (golint)
    • Line 298: warning: exported function SetCPUID2 should have comment or be unexported (golint)
    • gokvm/machine/machine.go
    • Line 52: warning: exported type Machine should have comment or be unexported (golint)
    • Line 60: warning: exported function New should have comment or be unexported (golint)
    • Line 129: warning: exported method Machine.LoadLinux should have comment or be unexported (golint)
    • Line 236: warning: exported method Machine.GetInputChan should have comment or be unexported (golint)
    • Line 240: warning: exported method Machine.InjectSerialIRQ should have comment or be unexported (golint)
    • Line 312: warning: exported method Machine.RunInfiniteLoop should have comment or be unexported (golint)
    • Line 325: warning: exported method Machine.RunOnce 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!