Preparing report...

Report for github.com/wuhan005/Houki

A+    Excellent!    Found 15 issues across 20 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


golint25%

Golint is a linter for Go source code.

    • Houki/internal/proxy/proxy.go
    • Line 23: warning: exported type Proxy should have comment or be unexported (golint)
    • Line 30: warning: exported function Initialize should have comment or be unexported (golint)
    • Line 46: warning: exported function IsEnable should have comment or be unexported (golint)
    • Line 50: warning: exported function Start should have comment or be unexported (golint)
    • Line 57: warning: exported function Stop should have comment or be unexported (golint)
    • Line 64: warning: exported method Proxy.SetCA should have comment or be unexported (golint)
    • Houki/internal/ca/ca.go
    • Line 23: warning: exported const CommonName should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported function Initialize should have comment or be unexported (golint)
    • Line 38: warning: exported function Get should have comment or be unexported (golint)
    • Line 48: warning: exported function Generate should have comment or be unexported (golint)
    • Houki/internal/db/db.go
    • Line 12: warning: exported var Modules should have comment or be unexported (golint)
    • Line 14: warning: exported function Initialize should have comment or be unexported (golint)
    • Houki/internal/module/parser.go
    • Line 19: warning: exported type Request should have comment or be unexported (golint)
    • Line 29: warning: exported type Response should have comment or be unexported (golint)
    • Line 53: warning: exported function NewModule should have comment or be unexported (golint)
    • Line 94: warning: exported function ParseFile should have comment or be unexported (golint)
    • Houki/internal/route/proxy/proxy.go
    • Line 15: warning: exported function GetStatus should have comment or be unexported (golint)
    • Line 21: warning: exported function Start should have comment or be unexported (golint)
    • Line 39: warning: exported function Stop should have comment or be unexported (golint)
    • Houki/internal/route/module/module.go
    • Line 14: warning: exported function ListModules should have comment or be unexported (golint)
    • Line 29: warning: exported function EnableModule should have comment or be unexported (golint)
    • Line 38: warning: exported function DisableModule should have comment or be unexported (golint)
    • Houki/internal/sse/stream.go
    • Line 17: warning: exported function Initialize should have comment or be unexported (golint)
    • Line 21: warning: exported function GetStream should have comment or be unexported (golint)
    • Line 42: warning: exported function Write should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!