Preparing report...

Report for simonwaldherr.de/go/golibs

(v0.18.0)

A+    Excellent!    Found 11 issues across 100 files

Tweet

gofmt99%

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!


gocyclo92%

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.

    • as/as_test.go
    • Line 324: warning: cyclomatic complexity 17 of function Test_Uint() is high (> 15) (gocyclo)
    • Line 135: warning: cyclomatic complexity 17 of function Test_Float() is high (> 15) (gocyclo)
    • Line 225: warning: cyclomatic complexity 16 of function Test_Int() is high (> 15) (gocyclo)
    • file/file.go
    • Line 439: warning: cyclomatic complexity 17 of function getAbsolutePathHelper() is high (> 15) (gocyclo)
    • as/as.go
    • Line 227: warning: cyclomatic complexity 16 of function Float() is high (> 15) (gocyclo)
    • Line 406: warning: cyclomatic complexity 16 of function Uint() is high (> 15) (gocyclo)
    • Line 313: warning: cyclomatic complexity 16 of function Int() is high (> 15) (gocyclo)
    • ssl/ssl.go
    • Line 32: warning: cyclomatic complexity 16 of function Generate() is high (> 15) (gocyclo)
    • yoloDB/yolodb.go
    • Line 225: warning: cyclomatic complexity 33 of function (*Database).Update() is high (> 15) (gocyclo)
    • Line 110: warning: cyclomatic complexity 32 of function (*Database).Select() is high (> 15) (gocyclo)
    • Line 340: warning: cyclomatic complexity 30 of function (*Database).Delete() is high (> 15) (gocyclo)

ineffassign95%

IneffAssign detects ineffectual assignments in Go code.

    • file/file_test.go
    • Line 81: warning: ineffectual assignment to content (ineffassign)
    • Line 81: warning: ineffectual assignment to lastChar (ineffassign)
    • Line 81: warning: ineffectual assignment to pos (ineffassign)
    • Line 85: warning: ineffectual assignment to content (ineffassign)
    • Line 85: warning: ineffectual assignment to pos (ineffassign)
    • Line 106: warning: ineffectual assignment to content (ineffassign)
    • Line 314: warning: ineffectual assignment to err (ineffassign)
    • Line 392: warning: ineffectual assignment to err (ineffassign)
    • Line 396: warning: ineffectual assignment to err (ineffassign)
    • Line 400: warning: ineffectual assignment to err (ineffassign)
    • graphics/graphics_test.go
    • Line 89: warning: ineffectual assignment to err (ineffassign)
    • Line 90: warning: ineffectual assignment to err (ineffassign)
    • Line 111: warning: ineffectual assignment to err (ineffassign)
    • Line 112: warning: ineffectual assignment to err (ineffassign)
    • Line 133: warning: ineffectual assignment to err (ineffassign)
    • file/file.go
    • Line 171: warning: ineffectual assignment to err (ineffassign)
    • Line 484: warning: ineffectual assignment to err (ineffassign)
    • Line 171: warning: ineffectual assignment to err (ineffassign)
    • Line 484: warning: ineffectual assignment to err (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!