Preparing report...

Report for github.com/jimlambrt/gldap

(v0.0.0-20220311181518-165ef7a8bb96)

A+    Excellent!    Found 12 issues across 48 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!


gocyclo93%

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.

    • control.go
    • Line 86: warning: cyclomatic complexity 36 of function decodeControl() is high (> 15) (gocyclo)
    • Line 661: warning: cyclomatic complexity 23 of function addControlDescriptions() is high (> 15) (gocyclo)
    • packet.go
    • Line 375: warning: cyclomatic complexity 24 of function (*packet).searchParmeters() is high (> 15) (gocyclo)
    • Line 144: warning: cyclomatic complexity 17 of function (*packet).modifyParameters() is high (> 15) (gocyclo)
    • testdirectory/directory.go
    • Line 259: warning: cyclomatic complexity 18 of function (*Directory).handleSearchGeneric() is high (> 15) (gocyclo)
    • Line 438: warning: cyclomatic complexity 16 of function (*Directory).handleModify() is high (> 15) (gocyclo)

golint81%

Golint is a linter for Go source code.

    • testing.go
    • Line 200: warning: exported function TestWithDebug should have comment or be unexported (golint)
    • entry.go
    • Line 30: warning: comment on exported function NewEntry should be of the form "NewEntry ..." (golint)
    • Line 97: warning: receiver name a should be consistent with previous receiver name e for EntryAttribute (golint)
    • Line 104: warning: receiver name a should be consistent with previous receiver name e for EntryAttribute (golint)
    • route.go
    • Line 37: warning: exported type HandlerFunc should have comment or be unexported (golint)
    • message.go
    • Line 86: warning: comment on exported type SimpleBindMessage should be of the form "SimpleBindMessage ..." (with optional leading article) (golint)
    • packet.go
    • Line 508: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 561: warning: don't use underscores in Go names; var indent_str should be indentStr (golint)
    • Line 564: warning: don't use underscores in Go names; var indent_str should be indentStr (golint)
    • Line 567: warning: don't use underscores in Go names; var class_str should be classStr (golint)
    • Line 569: warning: don't use underscores in Go names; var tagtype_str should be tagtypeStr (golint)
    • Line 571: warning: don't use underscores in Go names; var tag_str should be tagStr (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!


misspell97%

Misspell Finds commonly misspelled English words