Preparing report...

Report for xinhari.com/hari

(v0.0.0-20220409175401-fa1dda54e684)

A+    Excellent!    Found 37 issues across 179 files

Tweet

gofmt93%

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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


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.

    • client/web/web.go
    • Line 450: warning: cyclomatic complexity 22 of function Run() is high (> 15) (gocyclo)
    • Line 96: warning: cyclomatic complexity 16 of function (*srv).ServeHTTP() is high (> 15) (gocyclo)
    • service/runtime/service.go
    • Line 85: warning: cyclomatic complexity 18 of function runService() is high (> 15) (gocyclo)
    • Line 304: warning: cyclomatic complexity 16 of function getService() is high (> 15) (gocyclo)
    • cmd/cmd.go
    • Line 68: warning: cyclomatic complexity 24 of function setup() is high (> 15) (gocyclo)
    • cmd/protoc-gen-micro/generator/generator.go
    • Line 1393: warning: cyclomatic complexity 39 of function (*Generator).goTag() is high (> 15) (gocyclo)
    • Line 2123: warning: cyclomatic complexity 32 of function (*Generator).generateMessage() is high (> 15) (gocyclo)
    • Line 1529: warning: cyclomatic complexity 25 of function (*Generator).GoType() is high (> 15) (gocyclo)
    • Line 1904: warning: cyclomatic complexity 22 of function (*Generator).generateDefaultConstants() is high (> 15) (gocyclo)
    • Line 462: warning: cyclomatic complexity 16 of function (*Generator).CommandLineParameters() is high (> 15) (gocyclo)
    • cmd/protoc-gen-xinhari/generator/generator.go
    • Line 1393: warning: cyclomatic complexity 39 of function (*Generator).goTag() is high (> 15) (gocyclo)
    • Line 2123: warning: cyclomatic complexity 32 of function (*Generator).generateMessage() is high (> 15) (gocyclo)
    • Line 1529: warning: cyclomatic complexity 25 of function (*Generator).GoType() is high (> 15) (gocyclo)
    • Line 1904: warning: cyclomatic complexity 22 of function (*Generator).generateDefaultConstants() is high (> 15) (gocyclo)
    • Line 462: warning: cyclomatic complexity 16 of function (*Generator).CommandLineParameters() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell94%

Misspell Finds commonly misspelled English words

    • cmd/cmd.go
    • Line 270: warning: "overriden" is a misspelling of "overridden" (misspell)
    • Line 275: warning: "overriden" is a misspelling of "overridden" (misspell)