Preparing report...

Report for git.dragonheim.net/dragonheim/gagent

(v0.0.0-20211223213536-1a0455152af2)

A    Great!    Found 9 issues across 10 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!


gocyclo80%

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.


golint20%

Golint is a linter for Go source code.

    • internal/gstructs/gstructs.go
    • Line 22: warning: comment on exported type ClientDetails should be of the form "ClientDetails ..." (with optional leading article) (golint)
    • Line 41: warning: comment on exported type RouterDetails should be of the form "RouterDetails ..." (with optional leading article) (golint)
    • Line 96: warning: comment on exported type WorkerDetails should be of the form "WorkerDetails ..." (with optional leading article) (golint)
    • Line 123: warning: exported type AgentDetails should have comment or be unexported (golint)
    • internal/chaindb/chaindb.go
    • Line 15: warning: exported type GagentDb should have comment or be unexported (golint)
    • Line 27: warning: comment on exported method GagentDb.Init should be of the form "Init ..." (golint)
    • Line 34: warning: comment on exported method GagentDb.Load should be of the form "Load ..." (golint)
    • Line 43: warning: comment on exported method GagentDb.AddRow should be of the form "AddRow ..." (golint)
    • Line 53: warning: comment on exported method GagentDb.SetCurrHash should be of the form "SetCurrHash ..." (golint)
    • Line 62: warning: comment on exported method GagentDb.SetPrevHash should be of the form "SetPrevHash ..." (golint)
    • pkg/picol/commands.go
    • Line 26: warning: comment on exported function TestneedleInHaystack should be of the form "TestneedleInHaystack ..." (golint)
    • pkg/picol/picol.go
    • Line 15: warning: exported type Var should have comment or be unexported (golint)
    • Line 16: warning: exported type CmdFunc should have comment or be unexported (golint)
    • Line 17: warning: exported type Cmd should have comment or be unexported (golint)
    • Line 21: warning: exported type CallFrame should have comment or be unexported (golint)
    • Line 25: warning: exported type Interp should have comment or be unexported (golint)
    • Line 31: warning: exported function InitInterp should have comment or be unexported (golint)
    • Line 39: warning: exported method Interp.Var should have comment or be unexported (golint)
    • Line 48: warning: exported method Interp.SetVar should have comment or be unexported (golint)
    • Line 52: warning: exported method Interp.UnsetVar should have comment or be unexported (golint)
    • Line 56: warning: exported method Interp.Command should have comment or be unexported (golint)
    • Line 64: warning: exported method Interp.RegisterCommand should have comment or be unexported (golint)
    • Line 74: warning: comment on exported method Interp.Eval should be of the form "Eval ..." (golint)
    • Line 101: warning: if block ends with a return statement, so drop this else and outdent its block (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.

    • pkg/picol/picol.go
    • Line 107: warning: ineffectual assignment to prevtype (ineffassign)
    • Line 113: warning: ineffectual assignment to prevtype (ineffassign)
    • Line 135: warning: ineffectual assignment to prevtype (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!