Preparing report...

Report for github.com/cshum/imagor

(v1.3.4)

A+    Excellent!    Found 16 issues across 83 files

Tweet

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!


gofmt98%

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


gocyclo87%

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.

    • blob.go
    • Line 214: warning: cyclomatic complexity 45 of function (*Blob).doInit() is high (> 15) (gocyclo)
    • vips/process.go
    • Line 32: warning: cyclomatic complexity 103 of function (*Processor).Process() is high (> 15) (gocyclo)
    • Line 331: warning: cyclomatic complexity 66 of function (*Processor).process() is high (> 15) (gocyclo)
    • Line 550: warning: cyclomatic complexity 16 of function (*Processor).export() is high (> 15) (gocyclo)
    • imagor.go
    • Line 243: warning: cyclomatic complexity 61 of function (*Imagor).Do() is high (> 15) (gocyclo)
    • Line 151: warning: cyclomatic complexity 19 of function (*Imagor).ServeHTTP() is high (> 15) (gocyclo)
    • vips/filter.go
    • Line 16: warning: cyclomatic complexity 38 of function (*Processor).watermark() is high (> 15) (gocyclo)
    • Line 300: warning: cyclomatic complexity 22 of function label() is high (> 15) (gocyclo)
    • Line 191: warning: cyclomatic complexity 17 of function (*Processor).fill() is high (> 15) (gocyclo)
    • imagor_test.go
    • Line 569: warning: cyclomatic complexity 20 of function TestWithLoadersStoragesProcessors() is high (> 15) (gocyclo)

ineffassign92%

IneffAssign detects ineffectual assignments in Go code.


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!