Preparing report...

Report for github.com/craftslab/actionflow

A+    Excellent!    Found 8 issues across 15 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!


golint46%

Golint is a linter for Go source code.

    • actionflow/config/config.go
    • Line 16: warning: exported var Build should have comment or be unexported (golint)
    • Line 20: warning: exported type Config should have comment or be unexported (golint)
    • Line 23: warning: exported function New should have comment or be unexported (golint)
    • actionflow/util/error.go
    • Line 19: warning: exported type HTTPError should have comment or be unexported (golint)
    • Line 24: warning: exported function NewError should have comment or be unexported (golint)
    • actionflow/auth/auth.go
    • Line 34: warning: exported type Auth should have comment or be unexported (golint)
    • Line 38: warning: exported type Login should have comment or be unexported (golint)
    • Line 43: warning: exported type User should have comment or be unexported (golint)
    • Line 47: warning: exported function New should have comment or be unexported (golint)
    • Line 51: warning: exported method Auth.Init should have comment or be unexported (golint)
    • actionflow/model/accounts.go
    • Line 19: warning: exported type Account should have comment or be unexported (golint)
    • Line 52: warning: exported function GetAccount should have comment or be unexported (golint)
    • Line 62: warning: exported function GetSelfAccount should have comment or be unexported (golint)
    • Line 72: warning: exported function QueryAccount should have comment or be unexported (golint)
    • actionflow/model/config.go
    • Line 20: warning: exported var Version should have comment or be unexported (golint)
    • Line 23: warning: exported function ServerVersion should have comment or be unexported (golint)
    • actionflow/router/router.go
    • Line 40: warning: exported type Router should have comment or be unexported (golint)
    • Line 46: warning: exported function New should have comment or be unexported (golint)
    • Line 50: warning: exported method Router.Run should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign93%

IneffAssign detects ineffectual assignments in Go code.

    • actionflow/cmd/cmd.go
    • Line 23: warning: no required module provides package github.com/craftslab/actionflow/docs; to add it: (ineffassign)
    • Line 23: warning: could not import github.com/craftslab/actionflow/docs (invalid package name: "") (ineffassign)
    • Line 23: warning: could not import github.com/craftslab/actionflow/docs (invalid package name: "") (ineffassign)
    • Line 23: warning: no required module provides package github.com/craftslab/actionflow/docs; to add it: (ineffassign)
    • Line 23: warning: could not import github.com/craftslab/actionflow/docs (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!