Preparing report...

Report for github.com/modern-go/amd64

A    Great!    Found 11 issues across 21 files

Tweet

gofmt85%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


golint57%

Golint is a linter for Go source code.

    • amd64/prefix.go
    • Line 3: warning: comment on exported const Prefix16Bit should be of the form "Prefix16Bit ..." (golint)
    • Line 6: warning: comment on exported const Prefix32Bit should be of the form "Prefix32Bit ..." (golint)
    • Line 9: warning: exported function REX should have comment or be unexported (golint)
    • Line 26: warning: exported function VEX2 should have comment or be unexported (golint)
    • Line 32: warning: exported function VEX31 should have comment or be unexported (golint)
    • Line 39: warning: exported function VEX32 should have comment or be unexported (golint)
    • amd64/assembler.go
    • Line 11: warning: exported const PageSize should have comment or be unexported (golint)
    • Line 13: warning: exported type Assembler should have comment or be unexported (golint)
    • Line 18: warning: exported method Assembler.ReportError should have comment or be unexported (golint)
    • Line 24: warning: exported method Assembler.Assemble should have comment or be unexported (golint)
    • Line 132: warning: exported method Assembler.MakeFunc should have comment or be unexported (golint)
    • amd64/instruction.go
    • Line 10: warning: exported type VariantKey should have comment or be unexported (golint)
    • Line 59: warning: exported type Qualifier should have comment or be unexported (golint)
    • amd64/modrm.go
    • Line 4: warning: exported const ModeIndir should have comment (or a comment on this block) or be unexported (golint)
    • Line 10: warning: exported function MODRM should have comment or be unexported (golint)
    • Line 14: warning: exported function SIB should have comment or be unexported (golint)
    • amd64/dump.go
    • Line 3: warning: exported function Dump should have comment or be unexported (golint)
    • amd64/instructions.go
    • Line 3: warning: exported var INC should have comment or be unexported (golint)
    • Line 14: warning: exported var DEC should have comment or be unexported (golint)
    • Line 26: warning: exported var ADD should have comment or be unexported (golint)
    • Line 52: warning: exported var MOV should have comment or be unexported (golint)
    • Line 76: warning: exported var MOVAPS should have comment or be unexported (golint)
    • Line 87: warning: exported var VMOVAPS should have comment or be unexported (golint)
    • Line 98: warning: exported var MOVD should have comment or be unexported (golint)
    • Line 109: warning: exported var VPBROADCASTD should have comment or be unexported (golint)
    • Line 120: warning: exported var VPCMPEQD should have comment or be unexported (golint)
    • Line 131: warning: exported var VPACKSSDW should have comment or be unexported (golint)
    • Line 142: warning: exported var VPACKSSWB should have comment or be unexported (golint)
    • Line 153: warning: exported var VPMOVMSKB should have comment or be unexported (golint)
    • Line 164: warning: exported var SHL should have comment or be unexported (golint)
    • Line 176: warning: exported var OR should have comment or be unexported (golint)
    • Line 187: warning: exported var RET should have comment or be unexported (golint)
    • amd64/operand.go
    • Line 8: warning: exported const RegESP should have comment or be unexported (golint)
    • Line 9: warning: exported const RegEBP should have comment or be unexported (golint)
    • Line 10: warning: exported const Scale1 should have comment or be unexported (golint)
    • Line 11: warning: exported const Scale2 should have comment or be unexported (golint)
    • Line 12: warning: exported const Scale4 should have comment or be unexported (golint)
    • Line 13: warning: exported const Scale8 should have comment or be unexported (golint)
    • Line 15: warning: exported type Operand should have comment or be unexported (golint)
    • Line 31: warning: exported type Immediate should have comment or be unexported (golint)
    • Line 57: warning: exported method Immediate.Bits should have comment or be unexported (golint)
    • Line 61: warning: exported method Immediate.Qualifiers should have comment or be unexported (golint)
    • Line 65: warning: exported type Register should have comment or be unexported (golint)
    • Line 113: warning: exported method Register.Qualifiers should have comment or be unexported (golint)
    • Line 117: warning: exported method Register.Bits should have comment or be unexported (golint)
    • Line 121: warning: exported method Register.Value should have comment or be unexported (golint)
    • Line 129: warning: exported type Indirect should have comment or be unexported (golint)
    • Line 200: warning: exported method Indirect.Qualifiers should have comment or be unexported (golint)
    • Line 204: warning: exported method Indirect.Bits should have comment or be unexported (golint)
    • Line 224: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 229: warning: exported type RipIndirect should have comment or be unexported (golint)
    • Line 238: warning: exported type AbsoluteIndirect should have comment or be unexported (golint)
    • Line 248: warning: exported type ScaledIndirect should have comment or be unexported (golint)
    • amd64/operands.go
    • Line 5: warning: exported function IMM should have comment or be unexported (golint)
    • Line 15: warning: exported function XMMWORD should have comment or be unexported (golint)
    • Line 19: warning: exported function QWORD should have comment or be unexported (golint)
    • Line 23: warning: exported function QWORD_SIB should have comment or be unexported (golint)
    • Line 27: warning: exported function DWORD should have comment or be unexported (golint)
    • Line 31: warning: exported function DWORD_SIB should have comment or be unexported (golint)
    • Line 35: warning: exported function WORD should have comment or be unexported (golint)
    • Line 39: warning: exported function WORD_SIB should have comment or be unexported (golint)
    • Line 43: warning: exported function BYTE should have comment or be unexported (golint)
    • Line 47: warning: exported function BYTE_SIB should have comment or be unexported (golint)
    • Line 115: warning: exported var RIP should have comment or be unexported (golint)
    • Line 116: warning: exported var ABSOLUTE should have comment or be unexported (golint)
    • Line 119: warning: exported var AL 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!