Preparing report...

Report for github.com/foxcpp/go-assuan

A+    Excellent!    Found 8 issues across 23 files

Tweet

gofmt95%

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!


gocyclo91%

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.


golint73%

Golint is a linter for Go source code.

    • go-assuan/pinentry/client.go
    • Line 13: warning: exported type Client should have comment or be unexported (golint)
    • Line 34: warning: comment on exported function LaunchCustom should be of the form "LaunchCustom ..." (golint)
    • Line 48: warning: exported function New should have comment or be unexported (golint)
    • Line 58: warning: exported method Client.Close should have comment or be unexported (golint)
    • Line 62: warning: exported method Client.Reset should have comment or be unexported (golint)
    • Line 66: warning: exported method Client.SetDesc should have comment or be unexported (golint)
    • Line 74: warning: exported method Client.SetPrompt should have comment or be unexported (golint)
    • Line 82: warning: exported method Client.SetError should have comment or be unexported (golint)
    • Line 90: warning: exported method Client.SetOkBtn should have comment or be unexported (golint)
    • Line 98: warning: exported method Client.SetNotOkBtn should have comment or be unexported (golint)
    • Line 106: warning: exported method Client.SetCancelBtn should have comment or be unexported (golint)
    • Line 114: warning: exported method Client.SetTitle should have comment or be unexported (golint)
    • Line 122: warning: exported method Client.SetTimeout should have comment or be unexported (golint)
    • Line 130: warning: exported method Client.SetRepeatPrompt should have comment or be unexported (golint)
    • Line 138: warning: exported method Client.SetRepeatError should have comment or be unexported (golint)
    • Line 146: warning: exported method Client.SetQualityBar should have comment or be unexported (golint)
    • Line 155: warning: exported method Client.SetPasswdQualityCallback should have comment or be unexported (golint)
    • Line 159: warning: exported method Client.Current should have comment or be unexported (golint)
    • Line 163: warning: exported method Client.Apply should have comment or be unexported (golint)
    • go-assuan/pinentry/server.go
    • Line 12: warning: exported type Callbacks should have comment or be unexported (golint)
    • Line 136: warning: exported var ProtoInfo should have comment or be unexported (golint)
    • Line 159: warning: exported function Serve should have comment or be unexported (golint)
    • go-assuan/common/error.go
    • Line 42: warning: comment on exported function ReadError should be of the form "ReadError ..." (golint)
    • Line 60: warning: exported function DecodeErrCmd should have comment or be unexported (golint)
    • Line 89: warning: exported function SplitErrCode should have comment or be unexported (golint)
    • go-assuan/common/io.go
    • Line 31: warning: exported function New should have comment or be unexported (golint)
    • Line 37: warning: exported function NewPipe should have comment or be unexported (golint)
    • Line 43: warning: exported method Pipe.Close 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!