Preparing report...

Report for github.com/VirusTotal/gyp

A    Great!    Found 12 issues across 26 files

Tweet

gofmt84%

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!


gocyclo76%

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.

    • gyp/pb/traversal.go
    • Line 37: warning: cyclomatic complexity 16 of function (*Expression).DepthFirstSearch() is high (> 15) (gocyclo)
    • gyp/serialize.go
    • Line 536: warning: cyclomatic complexity 24 of function (*YaraSerializer).SerializeExpression() is high (> 15) (gocyclo)
    • Line 170: warning: cyclomatic complexity 20 of function (*YaraSerializer).serializeRule() is high (> 15) (gocyclo)
    • Line 873: warning: cyclomatic complexity 18 of function (*YaraSerializer).serializeIdentifier() is high (> 15) (gocyclo)
    • Line 352: warning: cyclomatic complexity 16 of function (*YaraSerializer).serializeStringModifiers() is high (> 15) (gocyclo)

golint84%

Golint is a linter for Go source code.

    • gyp/serialize.go
    • Line 323: warning: comment on exported method YaraSerializer.SerializeStringValue should be of the form "SerializeStringValue ..." (golint)
    • gyp/ast/strings.go
    • Line 182: warning: exported method BaseString.GetIdentifier should have comment or be unexported (golint)
    • Line 186: warning: exported method BaseString.GetLineNo should have comment or be unexported (golint)
    • gyp/error/error.go
    • Line 7: warning: exported type Code should have comment or be unexported (golint)
    • Line 11: warning: exported const UnknownError should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported type Error should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign92%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!