Preparing report...

Report for amuz.es/src/go/misc

(v0.0.0-20220321132555-3ac04b037720)

A+    Excellent!    Found 10 issues across 59 files

Tweet

gofmt96%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

    • sqls/link.go
    • Line 11: expected '(', found '[':1::warning: file is not gofmted with -s (gofmt)

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!


golint84%

Golint is a linter for Go source code.

    • types/bytes16.go
    • Line 21: warning: exported method Bytes16.MarshalTo should have comment or be unexported (golint)
    • Line 35: warning: exported method Bytes16.Compare should have comment or be unexported (golint)
    • Line 39: warning: exported method Bytes16.Equal should have comment or be unexported (golint)
    • Line 43: warning: comment on exported function ParseBytes16 should be of the form "ParseBytes16 ..." (golint)
    • Line 52: warning: exported method Bytes16.UnmarshalJSON should have comment or be unexported (golint)
    • Line 68: warning: exported method Bytes16.MarshalJSON should have comment or be unexported (golint)
    • Line 76: warning: exported method Bytes16.Size should have comment or be unexported (golint)
    • Line 83: warning: exported method Bytes16.FromHexString should have comment or be unexported (golint)
    • Line 87: 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 96: warning: exported method Bytes16.ToHexString should have comment or be unexported (golint)
    • types/time.go
    • Line 11: warning: exported type JSONTime should have comment or be unexported (golint)
    • Line 13: warning: exported method JSONTime.MarshalJSON should have comment or be unexported (golint)
    • Line 20: warning: exported method JSONTime.UnmarshalJSON should have comment or be unexported (golint)
    • types/uuid.go
    • Line 13: warning: exported type UUID should have comment or be unexported (golint)
    • Line 19: warning: exported method UUID.Marshal should have comment or be unexported (golint)
    • Line 23: warning: exported method UUID.MarshalTo should have comment or be unexported (golint)
    • Line 30: warning: exported method UUID.Unmarshal should have comment or be unexported (golint)
    • Line 38: warning: exported method UUID.Compare should have comment or be unexported (golint)
    • Line 42: warning: exported method UUID.Equal should have comment or be unexported (golint)
    • Line 45: warning: exported method UUID.UnmarshalJSON should have comment or be unexported (golint)
    • Line 62: warning: exported method UUID.MarshalJSON should have comment or be unexported (golint)
    • Line 70: warning: exported method UUID.Size should have comment or be unexported (golint)
    • Line 80: warning: exported function NewUUID should have comment or be unexported (golint)
    • Line 86: warning: exported method UUID.UUIDFromHexString should have comment or be unexported (golint)
    • Line 90: 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 99: warning: exported method UUID.ToHexString should have comment or be unexported (golint)
    • Line 122: warning: exported method UUID.Random should have comment or be unexported (golint)
    • Line 129: warning: exported method UUID.Clear should have comment or be unexported (golint)
    • Line 134: warning: exported method UUID.IsZero should have comment or be unexported (golint)
    • networking/ip.go
    • Line 10: warning: comment on exported function ParseIPv4 should be of the form "ParseIPv4 ..." (golint)
    • networking/local.go
    • Line 26: 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 31: warning: exported function ExtractIp should have comment or be unexported (golint)
    • Line 34: 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)
    • crypto/stream.go
    • Line 66: warning: exported function NewCryptoReader should have comment or be unexported (golint)
    • strutil/format.go
    • Line 124: warning: comment on exported function BytesPadSingle should be of the form "BytesPadSingle ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.

    • sqls/helper.go
    • Line 6: warning: expected '(', found '[' (ineffassign)
    • Line 6: warning: mixed named and unnamed parameters (ineffassign)
    • Line 6: warning: missing ',' in parameter list (ineffassign)
    • Line 6: warning: expected ')', found '*' (ineffassign)
    • Line 6: warning: missing ',' in parameter list (ineffassign)
    • Line 6: warning: expected ), found '.' (ineffassign)
    • sqls/link.go
    • Line 11: warning: expected '(', found '[' (ineffassign)
    • Line 11: warning: mixed named and unnamed parameters (ineffassign)
    • Line 11: warning: missing ',' in parameter list (ineffassign)
    • Line 11: warning: expected ')', found T (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!