Preparing report...

Report for github.com/autowp/goautowp

(v1.54.0)

A+    Excellent!    Found 10 issues across 87 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!


gofmt100%

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

No problems detected. Good job!


gocyclo88%

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.

    • ip-extractor.go
    • Line 38: warning: cyclomatic complexity 16 of function (*IPExtractor).Extract() is high (> 15) (gocyclo)
    • comments-grpc.go
    • Line 114: warning: cyclomatic complexity 30 of function extractMessage() is high (> 15) (gocyclo)
    • Line 674: warning: cyclomatic complexity 28 of function (*CommentsGRPCServer).GetMessages() is high (> 15) (gocyclo)
    • Line 534: warning: cyclomatic complexity 22 of function (*CommentsGRPCServer).Add() is high (> 15) (gocyclo)
    • map-grpc.go
    • Line 40: warning: cyclomatic complexity 28 of function (*MapGRPCServer).GetPoints() is high (> 15) (gocyclo)
    • image/storage/storage.go
    • Line 254: warning: cyclomatic complexity 24 of function (*Storage).doFormatImage() is high (> 15) (gocyclo)
    • Line 859: warning: cyclomatic complexity 16 of function (*Storage).AddImageFromFile() is high (> 15) (gocyclo)
    • items/item-name-format.go
    • Line 99: warning: cyclomatic complexity 23 of function (*ItemNameFormatter).FormatHTML() is high (> 15) (gocyclo)
    • Line 37: warning: cyclomatic complexity 17 of function (*ItemNameFormatter).FormatText() is high (> 15) (gocyclo)
    • container.go
    • Line 515: warning: cyclomatic complexity 17 of function (*Container).GRPCServerWithServices() is high (> 15) (gocyclo)
    • items-grpc.go
    • Line 564: warning: cyclomatic complexity 16 of function (*ItemsGRPCServer).List() is high (> 15) (gocyclo)
    • items/repository.go
    • Line 562: warning: cyclomatic complexity 73 of function (*Repository).List() is high (> 15) (gocyclo)
    • Line 248: warning: cyclomatic complexity 33 of function (*Repository).applyItem() is high (> 15) (gocyclo)
    • image/sampler/sampler.go
    • Line 19: warning: cyclomatic complexity 36 of function (Sampler).ConvertImage() is high (> 15) (gocyclo)
    • Line 151: warning: cyclomatic complexity 20 of function (Sampler).cropImage() is high (> 15) (gocyclo)
    • comments/repository.go
    • Line 1001: warning: cyclomatic complexity 26 of function (*Repository).CleanBrokenMessages() is high (> 15) (gocyclo)
    • Line 648: warning: cyclomatic complexity 19 of function (*Repository).NotifySubscribers() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


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!