Preparing report...

Report for github.com/lrita/numa

A+    Excellent!    Found 3 issues across 9 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!


gocyclo88%

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.

    • numa/vdso_linux_amd64.go
    • Line 173: warning: cyclomatic complexity 20 of function vdsoInitFromSysinfoEhdr() is high (> 15) (gocyclo)
    • Line 278: warning: cyclomatic complexity 19 of function vdsoParseSymbols() is high (> 15) (gocyclo)

golint66%

Golint is a linter for Go source code.

    • numa/numa.go
    • Line 32: warning: comment on exported const MPOL_DEFAULT should be of the form "MPOL_DEFAULT ..." (golint)
    • Line 34: warning: exported const MPOL_PREFERRED should have comment (or a comment on this block) or be unexported (golint)
    • Line 58: warning: comment on exported const MPOL_F_NODE should be of the form "MPOL_F_NODE ..." (golint)
    • Line 62: warning: comment on exported const MPOL_F_ADDR should be of the form "MPOL_F_ADDR ..." (golint)
    • Line 64: warning: comment on exported const MPOL_F_MEMS_ALLOWED should be of the form "MPOL_F_MEMS_ALLOWED ..." (golint)
    • Line 69: warning: comment on exported const MPOL_MF_STRICT should be of the form "MPOL_MF_STRICT ..." (golint)
    • Line 72: warning: comment on exported const MPOL_MF_MOVE should be of the form "MPOL_MF_MOVE ..." (golint)
    • Line 74: warning: comment on exported const MPOL_MF_MOVE_ALL should be of the form "MPOL_MF_MOVE_ALL ..." (golint)
    • Line 76: warning: comment on exported const MPOL_MF_LAZY should be of the form "MPOL_MF_LAZY ..." (golint)
    • Line 78: warning: comment on exported const POL_MF_INTERNAL should be of the form "POL_MF_INTERNAL ..." (golint)
    • Line 81: warning: exported const MPOL_MF_VALID should have comment (or a comment on this block) or be unexported (golint)
    • numa/numa_linux.go
    • Line 89: warning: comment on exported function SetMemPolicy should be of the form "SetMemPolicy ..." (golint)
    • numa/vdso_linux_amd64.go
    • Line 63: warning: don't use underscores in Go names; struct field st_name should be stName (golint)
    • Line 64: warning: don't use underscores in Go names; struct field st_info should be stInfo (golint)
    • Line 65: warning: don't use underscores in Go names; struct field st_other should be stOther (golint)
    • Line 66: warning: don't use underscores in Go names; struct field st_shndx should be stShndx (golint)
    • Line 67: warning: don't use underscores in Go names; struct field st_value should be stValue (golint)
    • Line 68: warning: don't use underscores in Go names; struct field st_size should be stSize (golint)
    • Line 72: warning: don't use underscores in Go names; struct field vd_version should be vdVersion (golint)
    • Line 73: warning: don't use underscores in Go names; struct field vd_flags should be vdFlags (golint)
    • Line 74: warning: don't use underscores in Go names; struct field vd_ndx should be vdNdx (golint)
    • Line 75: warning: don't use underscores in Go names; struct field vd_cnt should be vdCnt (golint)
    • Line 76: warning: don't use underscores in Go names; struct field vd_hash should be vdHash (golint)
    • Line 77: warning: don't use underscores in Go names; struct field vd_aux should be vdAux (golint)
    • Line 78: warning: don't use underscores in Go names; struct field vd_next should be vdNext (golint)
    • Line 82: warning: don't use underscores in Go names; struct field e_ident should be eIdent (golint)
    • Line 83: warning: don't use underscores in Go names; struct field e_type should be eType (golint)
    • Line 84: warning: don't use underscores in Go names; struct field e_machine should be eMachine (golint)
    • Line 85: warning: don't use underscores in Go names; struct field e_version should be eVersion (golint)
    • Line 86: warning: don't use underscores in Go names; struct field e_entry should be eEntry (golint)
    • Line 87: warning: don't use underscores in Go names; struct field e_phoff should be ePhoff (golint)
    • Line 88: warning: don't use underscores in Go names; struct field e_shoff should be eShoff (golint)
    • Line 89: warning: don't use underscores in Go names; struct field e_flags should be eFlags (golint)
    • Line 90: warning: don't use underscores in Go names; struct field e_ehsize should be eEhsize (golint)
    • Line 91: warning: don't use underscores in Go names; struct field e_phentsize should be ePhentsize (golint)
    • Line 92: warning: don't use underscores in Go names; struct field e_phnum should be ePhnum (golint)
    • Line 93: warning: don't use underscores in Go names; struct field e_shentsize should be eShentsize (golint)
    • Line 94: warning: don't use underscores in Go names; struct field e_shnum should be eShnum (golint)
    • Line 95: warning: don't use underscores in Go names; struct field e_shstrndx should be eShstrndx (golint)
    • Line 99: warning: don't use underscores in Go names; struct field p_type should be pType (golint)
    • Line 100: warning: don't use underscores in Go names; struct field p_flags should be pFlags (golint)
    • Line 101: warning: don't use underscores in Go names; struct field p_offset should be pOffset (golint)
    • Line 102: warning: don't use underscores in Go names; struct field p_vaddr should be pVaddr (golint)
    • Line 103: warning: don't use underscores in Go names; struct field p_paddr should be pPaddr (golint)
    • Line 104: warning: don't use underscores in Go names; struct field p_filesz should be pFilesz (golint)
    • Line 105: warning: don't use underscores in Go names; struct field p_memsz should be pMemsz (golint)
    • Line 106: warning: don't use underscores in Go names; struct field p_align should be pAlign (golint)
    • Line 110: warning: don't use underscores in Go names; struct field sh_name should be shName (golint)
    • Line 111: warning: don't use underscores in Go names; struct field sh_type should be shType (golint)
    • Line 112: warning: don't use underscores in Go names; struct field sh_flags should be shFlags (golint)
    • Line 113: warning: don't use underscores in Go names; struct field sh_addr should be shAddr (golint)
    • Line 114: warning: don't use underscores in Go names; struct field sh_offset should be shOffset (golint)
    • Line 115: warning: don't use underscores in Go names; struct field sh_size should be shSize (golint)
    • Line 116: warning: don't use underscores in Go names; struct field sh_link should be shLink (golint)
    • Line 117: warning: don't use underscores in Go names; struct field sh_info should be shInfo (golint)
    • Line 118: warning: don't use underscores in Go names; struct field sh_addralign should be shAddralign (golint)
    • Line 119: warning: don't use underscores in Go names; struct field sh_entsize should be shEntsize (golint)
    • Line 123: warning: don't use underscores in Go names; struct field d_tag should be dTag (golint)
    • Line 124: warning: don't use underscores in Go names; struct field d_val should be dVal (golint)
    • Line 128: warning: don't use underscores in Go names; struct field vda_name should be vdaName (golint)
    • Line 129: warning: don't use underscores in Go names; struct field vda_next should be vdaNext (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!