Preparing report...

Report for github.com/llir/llvm

A+    Excellent!    Found 25 issues across 118 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!


golint95%

Golint is a linter for Go source code.

    • llvm/ir/enum/enum.go
    • Line 74: warning: don't use underscores in Go names; const CallingConvARM_APCS should be CallingConvARMAPCS (golint)
    • Line 75: warning: don't use underscores in Go names; const CallingConvARM_AAPCS should be CallingConvARMAAPCS (golint)
    • Line 76: warning: don't use underscores in Go names; const CallingConvARM_AAPCS_VFP should be CallingConvARMAAPCSVFP (golint)
    • Line 84: warning: don't use underscores in Go names; const CallingConvIntelOCL_BI should be CallingConvIntelOCLBI (golint)
    • Line 89: warning: don't use underscores in Go names; const CallingConvHHVM_C should be CallingConvHHVMC (golint)
    • Line 94: warning: don't use underscores in Go names; const CallingConvAMDGPU_VS should be CallingConvAMDGPUVS (golint)
    • Line 95: warning: don't use underscores in Go names; const CallingConvAMDGPU_GS should be CallingConvAMDGPUGS (golint)
    • Line 96: warning: don't use underscores in Go names; const CallingConvAMDGPU_PS should be CallingConvAMDGPUPS (golint)
    • Line 97: warning: don't use underscores in Go names; const CallingConvAMDGPU_CS should be CallingConvAMDGPUCS (golint)
    • Line 100: warning: don't use underscores in Go names; const CallingConvAMDGPU_HS should be CallingConvAMDGPUHS (golint)
    • Line 102: warning: don't use underscores in Go names; const CallingConvAMDGPU_LS should be CallingConvAMDGPULS (golint)
    • Line 103: warning: don't use underscores in Go names; const CallingConvAMDGPU_ES should be CallingConvAMDGPUES (golint)
    • llvm/ir/types/types.go
    • Line 397: warning: don't use underscores in Go names; const FloatKindX86_FP80 should be FloatKindX86FP80 (golint)
    • Line 399: warning: don't use underscores in Go names; const FloatKindPPC_FP128 should be FloatKindPPCFP128 (golint)
    • llvm/ir/func.go
    • Line 138: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • llvm/ir/sumtype.go
    • Line 47: warning: comment on exported method Preallocated.IsFuncAttribute should be of the form "IsFuncAttribute ..." (golint)

gocyclo84%

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.

    • llvm/asm/const.go
    • Line 17: warning: cyclomatic complexity 17 of function (*generator).irConstant() is high (> 15) (gocyclo)
    • llvm/ir/metadata/specialized_metadata.go
    • Line 1710: warning: cyclomatic complexity 24 of function (*DISubprogram).LLString() is high (> 15) (gocyclo)
    • Line 212: warning: cyclomatic complexity 20 of function (*DICompileUnit).LLString() is high (> 15) (gocyclo)
    • Line 354: warning: cyclomatic complexity 18 of function (*DICompositeType).LLString() is high (> 15) (gocyclo)
    • llvm/asm/inst.go
    • Line 193: warning: cyclomatic complexity 54 of function (*funcGen).irValueInst() is high (> 15) (gocyclo)
    • Line 36: warning: cyclomatic complexity 54 of function (*funcGen).newValueInst() is high (> 15) (gocyclo)
    • llvm/asm/module.go
    • Line 203: warning: cyclomatic complexity 29 of function newSpecializedMDNode() is high (> 15) (gocyclo)
    • Line 17: warning: cyclomatic complexity 23 of function (*generator).indexTopLevelEntities() is high (> 15) (gocyclo)
    • llvm/ir/constant/const_float.go
    • Line 287: warning: cyclomatic complexity 38 of function (*Float).Ident() is high (> 15) (gocyclo)
    • Line 62: warning: cyclomatic complexity 35 of function NewFloatFromString() is high (> 15) (gocyclo)
    • llvm/asm/specialized_metadata.go
    • Line 1229: warning: cyclomatic complexity 50 of function (*generator).irDISubprogram() is high (> 15) (gocyclo)
    • Line 170: warning: cyclomatic complexity 49 of function (*generator).irDICompileUnit() is high (> 15) (gocyclo)
    • Line 298: warning: cyclomatic complexity 43 of function (*generator).irDICompositeType() is high (> 15) (gocyclo)
    • Line 18: warning: cyclomatic complexity 29 of function (*generator).irSpecializedMDNode() is high (> 15) (gocyclo)
    • Line 602: warning: cyclomatic complexity 27 of function (*generator).irDIGlobalVariable() is high (> 15) (gocyclo)
    • Line 416: warning: cyclomatic complexity 24 of function (*generator).irDIDerivedType() is high (> 15) (gocyclo)
    • Line 916: warning: cyclomatic complexity 19 of function (*generator).irDILocalVariable() is high (> 15) (gocyclo)
    • Line 1050: warning: cyclomatic complexity 17 of function (*generator).irDIMacroFile() is high (> 15) (gocyclo)
    • Line 1178: warning: cyclomatic complexity 17 of function (*generator).irDIObjCProperty() is high (> 15) (gocyclo)
    • Line 729: warning: cyclomatic complexity 17 of function (*generator).irDIImportedEntity() is high (> 15) (gocyclo)
    • Line 119: warning: cyclomatic complexity 16 of function (*generator).irDICommonBlock() is high (> 15) (gocyclo)
    • llvm/asm/global.go
    • Line 491: warning: cyclomatic complexity 32 of function (*generator).irFuncHeader() is high (> 15) (gocyclo)
    • Line 195: warning: cyclomatic complexity 21 of function (*generator).translateGlobalEntities() is high (> 15) (gocyclo)
    • Line 263: warning: cyclomatic complexity 19 of function (*generator).irGlobal() is high (> 15) (gocyclo)
    • Line 81: warning: cyclomatic complexity 18 of function (*generator).newIndirectSymbol() is high (> 15) (gocyclo)
    • llvm/asm/term.go
    • Line 431: warning: cyclomatic complexity 23 of function (*funcGen).irCallBrTerm() is high (> 15) (gocyclo)
    • Line 330: warning: cyclomatic complexity 22 of function (*funcGen).irInvokeTerm() is high (> 15) (gocyclo)
    • llvm/asm/type.go
    • Line 70: warning: cyclomatic complexity 19 of function newType() is high (> 15) (gocyclo)
    • Line 137: warning: cyclomatic complexity 18 of function (*generator).irTypeDef() is high (> 15) (gocyclo)

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!


misspell96%

Misspell Finds commonly misspelled English words