Preparing report...

Report for github.com/jakubd/go-zeek-logparse

B    Not bad!    Found 11 issues across 22 files

Tweet

gofmt59%

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!


gocyclo72%

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.


golint72%

Golint is a linter for Go source code.

    • go-zeek-logparse/http.go
    • Line 18: warning: exported type HttpEntry should have comment or be unexported (golint)
    • Line 44: warning: exported method HttpEntry.Print should have comment or be unexported (golint)
    • go-zeek-logparse/ssl.go
    • Line 17: warning: exported type SSLEntry should have comment or be unexported (golint)
    • Line 42: warning: exported method SSLEntry.Print should have comment or be unexported (golint)
    • Line 48: warning: exported method SSLEntry.ShortPrint should have comment or be unexported (golint)
    • go-zeek-logparse/x509.go
    • Line 18: warning: exported type X509Entry should have comment or be unexported (golint)
    • Line 38: warning: exported method X509Entry.Print should have comment or be unexported (golint)
    • Line 45: warning: exported method X509Entry.ShortPrint should have comment or be unexported (golint)
    • go-zeek-logparse/common.go
    • Line 16: warning: exported const TCP should have comment (or a comment on this block) or be unexported (golint)
    • Line 98: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-zeek-logparse/conn.go
    • Line 18: warning: exported type ConnStateObj should have comment or be unexported (golint)
    • Line 23: warning: exported method ConnStateObj.Print should have comment or be unexported (golint)
    • Line 99: warning: exported method ConnEntry.Print 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!


misspell77%

Misspell Finds commonly misspelled English words