Preparing report...

Report for github.com/mlctrez/javaclassparser

A    Great!    Found 21 issues across 31 files

Tweet

gofmt80%

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!


gocyclo90%

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.


golint41%

Golint is a linter for Go source code.

    • javaclassparser/cpool/refs.go
    • Line 10: warning: exported type RefBase should have comment or be unexported (golint)
    • Line 16: warning: exported method RefBase.ReadRefBaseIndexes should have comment or be unexported (golint)
    • Line 24: warning: exported method RefBase.ClassName should have comment or be unexported (golint)
    • Line 28: warning: exported type ConstantFieldrefInfo should have comment or be unexported (golint)
    • Line 34: warning: exported function ReadConstantFieldrefInfo should have comment or be unexported (golint)
    • Line 44: warning: exported type ConstantMethodrefInfo should have comment or be unexported (golint)
    • Line 50: warning: exported function ReadConstantMethodrefInfo should have comment or be unexported (golint)
    • Line 60: warning: exported type ConstantInterfaceMethodrefInfo should have comment or be unexported (golint)
    • Line 66: warning: exported function ReadConstantInterfaceMethodrefInfo should have comment or be unexported (golint)
    • javaclassparser/parser/parser.go
    • Line 156: warning: exported type Class should have comment or be unexported (golint)
    • Line 175: warning: exported method Class.Visit should have comment or be unexported (golint)
    • Line 179: warning: exported method Class.RefVisit should have comment or be unexported (golint)
    • javaclassparser/attribute/attribute.go
    • Line 34: warning: exported type ConstantValueAttribute should have comment or be unexported (golint)
    • Line 43: warning: exported type CodeAttribute should have comment or be unexported (golint)
    • Line 52: warning: exported type CodeAttributeExceptionTable should have comment or be unexported (golint)
    • Line 64: warning: exported function ReadCodeAttributeExceptionTable should have comment or be unexported (golint)
    • Line 79: warning: exported type ExceptionsAttribute should have comment or be unexported (golint)
    • Line 92: warning: exported function ReadExceptionsAttribute should have comment or be unexported (golint)
    • Line 104: warning: exported function ReadCodeAttribute should have comment or be unexported (golint)
    • Line 137: warning: exported function ReadAttributeInfo should have comment or be unexported (golint)
    • Line 216: warning: exported function TypeName should have comment or be unexported (golint)
    • Line 222: warning: exported type MethodInfo should have comment or be unexported (golint)
    • Line 234: warning: exported function ReadMethodInfo should have comment or be unexported (golint)
    • javaclassparser/aflag/aflag.go
    • Line 116: warning: exported method ClassAccessFlags.Validate should have comment or be unexported (golint)
    • Line 138: warning: comment on exported type MethodParameterAccessFlags should be of the form "MethodParameterAccessFlags ..." (with optional leading article) (golint)
    • javaclassparser/cpool/classinfo.go
    • Line 9: warning: exported type ConstantClassInfo should have comment or be unexported (golint)
    • Line 18: warning: exported function ReadConstantClassInfo should have comment or be unexported (golint)
    • javaclassparser/cpool/types.go
    • Line 12: warning: exported type ConstantStringInfo should have comment or be unexported (golint)
    • Line 21: warning: exported function ReadConstantStringInfo should have comment or be unexported (golint)
    • Line 31: warning: exported type ConstantIntegerInfo should have comment or be unexported (golint)
    • Line 40: warning: exported function ReadConstantIntegerInfo should have comment or be unexported (golint)
    • Line 50: warning: exported type ConstantFloatInfo should have comment or be unexported (golint)
    • Line 59: warning: exported function ReadConstantFloatInfo should have comment or be unexported (golint)
    • Line 74: warning: exported type ConstantLongInfo should have comment or be unexported (golint)
    • Line 83: warning: exported function ReadConstantLongInfo should have comment or be unexported (golint)
    • Line 93: warning: exported type ConstantDoubleInfo should have comment or be unexported (golint)
    • Line 102: warning: exported function ReadConstantDoubleInfo should have comment or be unexported (golint)
    • Line 112: warning: exported type ConstantNameAndTypeInfo should have comment or be unexported (golint)
    • Line 122: warning: exported function ReadConstantNameAndTypeInfo should have comment or be unexported (golint)
    • Line 135: warning: comment on exported type ConstantUtf8Info should be of the form "ConstantUtf8Info ..." (with optional leading article) (golint)
    • Line 146: warning: exported function ReadConstantUtf8Info should have comment or be unexported (golint)
    • javaclassparser/vis/vis.go
    • Line 79: warning: exported type Data should have comment or be unexported (golint)
    • Line 84: warning: exported type Node should have comment or be unexported (golint)
    • Line 88: warning: exported type Link should have comment or be unexported (golint)
    • Line 94: warning: exported type DepData should have comment or be unexported (golint)
    • Line 100: warning: exported type DepMap should have comment or be unexported (golint)
    • javaclassparser/cli/deps/deps.go
    • Line 33: warning: exported type DependencyManager should have comment or be unexported (golint)
    • Line 41: warning: exported function NewDependencyManager should have comment or be unexported (golint)
    • Line 48: warning: exported method DependencyManager.IncludePrefixes should have comment or be unexported (golint)
    • Line 75: warning: exported method DependencyManager.AddDependency should have comment or be unexported (golint)
    • Line 80: warning: exported function AddToMap should have comment or be unexported (golint)
    • Line 101: warning: exported method DependencyManager.WorkCallback should have comment or be unexported (golint)
    • Line 125: warning: exported method DependencyManager.Debug should have comment or be unexported (golint)
    • Line 130: warning: exported method DependencyManager.Unique should have comment or be unexported (golint)
    • Line 146: warning: exported method DependencyManager.DumpDependencies should have comment or be unexported (golint)
    • javaclassparser/bytecode/bytecode.go
    • Line 13: warning: exported type ByteCode should have comment or be unexported (golint)
    • Line 22: warning: exported function Read should have comment or be unexported (golint)
    • Line 58: warning: exported type Context should have comment or be unexported (golint)
    • Line 63: warning: exported type Reader should have comment or be unexported (golint)
    • Line 65: warning: exported function Simple should have comment or be unexported (golint)
    • Line 69: warning: exported function WithArgs should have comment or be unexported (golint)
    • Line 85: warning: exported method ByteCode.StringWithIndex should have comment or be unexported (golint)
    • Line 100: warning: comment on exported function TableSwitch should be of the form "TableSwitch ..." (golint)
    • Line 156: warning: exported type MatchOffset should have comment or be unexported (golint)
    • Line 161: warning: exported function LookupSwitch should have comment or be unexported (golint)
    • Line 202: warning: exported function Wide should have comment or be unexported (golint)
    • javaclassparser/cpool/constants.go
    • Line 7: warning: exported const ConstantClass should have comment or be unexported (golint)
    • Line 8: warning: exported const ConstantFieldref should have comment or be unexported (golint)
    • Line 9: warning: exported const ConstantMethodref should have comment or be unexported (golint)
    • Line 10: warning: exported const ConstantInterfaceMethodref should have comment or be unexported (golint)
    • Line 11: warning: exported const ConstantString should have comment or be unexported (golint)
    • Line 12: warning: exported const ConstantInteger should have comment or be unexported (golint)
    • Line 13: warning: exported const ConstantFloat should have comment or be unexported (golint)
    • Line 14: warning: exported const ConstantLong should have comment or be unexported (golint)
    • Line 15: warning: exported const ConstantDouble should have comment or be unexported (golint)
    • Line 16: warning: exported const ConstantNameAndType should have comment or be unexported (golint)
    • Line 17: warning: exported const ConstantUtf8 should have comment or be unexported (golint)
    • Line 18: warning: exported const ConstantMethodHandle should have comment or be unexported (golint)
    • Line 19: warning: exported const ConstantMethodType should have comment or be unexported (golint)
    • Line 20: warning: exported const ConstantInvokeDynamic should have comment or be unexported (golint)
    • javaclassparser/ioutil/zip.go
    • Line 9: warning: exported function MustOpenZipReader should have comment or be unexported (golint)
    • Line 17: warning: exported function ReadZipFile should have comment or be unexported (golint)
    • javaclassparser/cpool/method.go
    • Line 7: warning: exported type ConstantMethodHandleInfo should have comment or be unexported (golint)
    • Line 13: warning: exported function ReadConstantMethodHandleInfo should have comment or be unexported (golint)
    • Line 26: warning: exported type ConstantMethodTypeInfo should have comment or be unexported (golint)
    • Line 31: warning: exported function ReadConstantMethodTypeInfo should have comment or be unexported (golint)
    • Line 41: warning: exported type ConstantInvokeDynamicInfo should have comment or be unexported (golint)
    • Line 47: warning: exported function ReadConstantInvokeDynamicInfo 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!