Preparing report...

Report for github.com/kataras/iris-cli

A+    Excellent!    Found 9 issues across 27 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!


gocyclo81%

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.

    • iris-cli/project/project.go
    • Line 469: warning: cyclomatic complexity 42 of function (*Project).build() is high (> 15) (gocyclo)
    • Line 690: warning: cyclomatic complexity 33 of function (*Project).watch() is high (> 15) (gocyclo)
    • Line 224: warning: cyclomatic complexity 27 of function (*Project).unzip() is high (> 15) (gocyclo)

golint77%

Golint is a linter for Go source code.

    • iris-cli/utils/ioutil.go
    • Line 253: warning: exported const FileCreate should have comment (or a comment on this block) or be unexported (golint)
    • Line 259: warning: exported type Filter should have comment or be unexported (golint)
    • Line 261: warning: exported type Watcher should have comment or be unexported (golint)
    • Line 275: warning: exported method Watcher.AddRecursively should have comment or be unexported (golint)
    • Line 293: warning: exported method Watcher.Add should have comment or be unexported (golint)
    • Line 305: warning: exported method Watcher.Is should have comment or be unexported (golint)
    • Line 309: warning: exported method Watcher.Close should have comment or be unexported (golint)
    • Line 314: warning: exported method Watcher.Closed should have comment or be unexported (golint)
    • Line 318: warning: exported method Watcher.Pause should have comment or be unexported (golint)
    • Line 322: warning: exported method Watcher.Continue should have comment or be unexported (golint)
    • Line 360: warning: exported function NewWatcher should have comment or be unexported (golint)
    • iris-cli/project/livereload.go
    • Line 11: warning: exported type LiveReload should have comment or be unexported (golint)
    • Line 27: warning: exported function NewLiveReload should have comment or be unexported (golint)
    • Line 33: warning: exported method LiveReload.ListenAndServe should have comment or be unexported (golint)
    • Line 58: warning: exported method LiveReload.SendReloadSignal should have comment or be unexported (golint)
    • iris-cli/project/project.go
    • Line 28: warning: exported type Project should have comment or be unexported (golint)
    • Line 70: warning: exported type Watcher should have comment or be unexported (golint)
    • Line 126: warning: exported method Project.SaveToDisk should have comment or be unexported (golint)
    • Line 143: warning: exported var ErrProjectFileNotExist should have comment or be unexported (golint)
    • Line 145: warning: exported function LoadFromDisk should have comment or be unexported (golint)
    • Line 183: warning: exported method Project.Install should have comment or be unexported (golint)
    • Line 368: warning: exported method Project.Run should have comment or be unexported (golint)
    • Line 931: warning: exported const ActionRun should have comment (or a comment on this block) or be unexported (golint)
    • iris-cli/project/registry.go
    • Line 15: warning: exported const DefaultRegistryEndpoint should have comment or be unexported (golint)
    • Line 17: warning: exported type Registry should have comment or be unexported (golint)
    • Line 25: warning: exported function NewRegistry should have comment or be unexported (golint)
    • Line 33: warning: exported method Registry.Load should have comment or be unexported (golint)
    • iris-cli/utils/cmd_unix.go
    • Line 32: warning: exported function KillCommand should have comment or be unexported (golint)
    • Line 36: warning: exported function FormatExecutable should have comment or be unexported (golint)
    • Line 38: warning: exported function StartExecutable 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!