Preparing report...

Report for codeberg.org/fractalqb/ggja

A+    Excellent!    Found 6 issues across 9 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!


gocyclo100%

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.

No problems detected. Good job!


golint33%

Golint is a linter for Go source code.

    • /codeberg.org/fractalqb/ggja/onerror.go
    • Line 8: warning: exported type SetError should have comment or be unexported (golint)
    • Line 12: warning: exported method SetError.OnError should have comment or be unexported (golint)
    • Line 14: warning: exported type TypeMismatch should have comment or be unexported (golint)
    • Line 23: warning: exported type IgnoreErrors should have comment or be unexported (golint)
    • /codeberg.org/fractalqb/ggja/arr.go
    • Line 8: warning: exported type BareArr should have comment or be unexported (golint)
    • Line 10: warning: exported type IndexError should have comment or be unexported (golint)
    • Line 21: warning: exported type IdxRangeError should have comment or be unexported (golint)
    • Line 29: warning: exported type Arr should have comment or be unexported (golint)
    • Line 38: warning: exported method Arr.Len should have comment or be unexported (golint)
    • Line 45: warning: exported method Arr.Ignoring should have comment or be unexported (golint)
    • Line 55: warning: exported method Arr.Set should have comment or be unexported (golint)
    • Line 65: warning: exported method Arr.Put should have comment or be unexported (golint)
    • Line 83: warning: exported method Arr.Obj should have comment or be unexported (golint)
    • Line 98: warning: exported method Arr.CObj should have comment or be unexported (golint)
    • Line 107: warning: exported method Arr.MObj should have comment or be unexported (golint)
    • Line 124: warning: exported method Arr.Arr should have comment or be unexported (golint)
    • Line 139: warning: exported method Arr.CArr should have comment or be unexported (golint)
    • Line 148: warning: exported method Arr.MArr should have comment or be unexported (golint)
    • Line 165: warning: exported method Arr.Bool should have comment or be unexported (golint)
    • Line 183: warning: exported method Arr.MBool should have comment or be unexported (golint)
    • Line 203: warning: exported method Arr.F64 should have comment or be unexported (golint)
    • Line 220: warning: exported method Arr.MF64 should have comment or be unexported (golint)
    • Line 240: warning: comment on exported method Arr.MF32 should be of the form "MF32 ..." (golint)
    • Line 243: warning: exported method Arr.Int should have comment or be unexported (golint)
    • Line 258: warning: exported method Arr.MInt should have comment or be unexported (golint)
    • Line 275: warning: exported method Arr.Uint32 should have comment or be unexported (golint)
    • Line 290: warning: exported method Arr.MUint32 should have comment or be unexported (golint)
    • Line 307: warning: exported method Arr.Str should have comment or be unexported (golint)
    • Line 322: warning: exported method Arr.MStr should have comment or be unexported (golint)
    • /codeberg.org/fractalqb/ggja/ggja.go
    • Line 7: warning: exported function GetString should have comment or be unexported (golint)
    • Line 18: warning: exported function GetObj should have comment or be unexported (golint)
    • Line 39: warning: exported function Get should have comment or be unexported (golint)
    • /codeberg.org/fractalqb/ggja/obj.go
    • Line 9: warning: exported type BareObj should have comment or be unexported (golint)
    • Line 11: warning: exported type KeyError should have comment or be unexported (golint)
    • Line 26: warning: exported type Obj should have comment or be unexported (golint)
    • Line 35: warning: exported method Obj.Ignoring should have comment or be unexported (golint)
    • Line 45: warning: exported method Obj.Set should have comment or be unexported (golint)
    • Line 57: warning: exported method Obj.Put should have comment or be unexported (golint)
    • Line 65: warning: exported method Obj.Obj should have comment or be unexported (golint)
    • Line 72: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 79: warning: exported method Obj.CObj should have comment or be unexported (golint)
    • Line 88: warning: exported method Obj.MObj should have comment or be unexported (golint)
    • Line 92: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 101: warning: exported method Obj.Arr should have comment or be unexported (golint)
    • Line 108: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 115: warning: exported method Obj.CArr should have comment or be unexported (golint)
    • Line 124: warning: exported method Obj.MArr should have comment or be unexported (golint)
    • Line 128: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 137: warning: exported method Obj.Bool should have comment or be unexported (golint)
    • Line 141: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 148: warning: exported method Obj.MBool should have comment or be unexported (golint)
    • Line 152: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 161: warning: exported method Obj.F64 should have comment or be unexported (golint)
    • Line 165: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 172: warning: exported method Obj.MF64 should have comment or be unexported (golint)
    • Line 176: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 185: warning: exported method Obj.F32 should have comment or be unexported (golint)
    • Line 196: warning: exported method Obj.MF32 should have comment or be unexported (golint)
    • Line 209: warning: exported method Obj.Int should have comment or be unexported (golint)
    • Line 220: warning: exported method Obj.MInt should have comment or be unexported (golint)
    • Line 233: warning: exported method Obj.Uint32 should have comment or be unexported (golint)
    • Line 244: warning: exported method Obj.MUint32 should have comment or be unexported (golint)
    • Line 257: warning: exported method Obj.Int32 should have comment or be unexported (golint)
    • Line 268: warning: exported method Obj.Int64 should have comment or be unexported (golint)
    • Line 279: warning: exported method Obj.MUint64 should have comment or be unexported (golint)
    • Line 292: warning: exported method Obj.Uint64 should have comment or be unexported (golint)
    • Line 303: warning: exported method Obj.MInt16 should have comment or be unexported (golint)
    • Line 316: warning: exported method Obj.MInt32 should have comment or be unexported (golint)
    • Line 329: warning: exported method Obj.MInt64 should have comment or be unexported (golint)
    • Line 342: warning: exported method Obj.Str should have comment or be unexported (golint)
    • Line 346: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 353: warning: exported method Obj.MStr should have comment or be unexported (golint)
    • Line 357: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 366: warning: exported method Obj.Time should have comment or be unexported (golint)
    • Line 377: warning: exported method Obj.MTime 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!