Preparing report...

Report for github.com/elsaland/elsa

A+    Excellent!    Found 18 issues across 34 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!


golint55%

Golint is a linter for Go source code.

    • elsa/bundler/bundle.go
    • Line 21: warning: exported function BundleModule should have comment or be unexported (golint)
    • Line 62: warning: exported function BundleURL should have comment or be unexported (golint)
    • elsa/bundler/cache.go
    • Line 11: warning: exported type ElsaCache should have comment or be unexported (golint)
    • Line 15: warning: exported method ElsaCache.BuildFileName should have comment or be unexported (golint)
    • Line 21: warning: exported method ElsaCache.PathToUrl should have comment or be unexported (golint)
    • Line 27: warning: exported method ElsaCache.UrlToPath should have comment or be unexported (golint)
    • Line 33: warning: exported method ElsaCache.InCache should have comment or be unexported (golint)
    • Line 37: warning: exported method ElsaCache.Exists should have comment or be unexported (golint)
    • Line 44: warning: exported method ElsaCache.Create should have comment or be unexported (golint)
    • elsa/core/ops/fs.go
    • Line 17: warning: exported type FsDriver should have comment or be unexported (golint)
    • Line 24: warning: exported method FsDriver.ReadFile should have comment or be unexported (golint)
    • Line 30: warning: exported method FsDriver.WriteFile should have comment or be unexported (golint)
    • Line 36: warning: exported method FsDriver.Exists should have comment or be unexported (golint)
    • Line 42: warning: exported method FsDriver.DirExists should have comment or be unexported (golint)
    • Line 48: warning: exported method FsDriver.Cwd should have comment or be unexported (golint)
    • Line 54: warning: exported type FileInfo should have comment or be unexported (golint)
    • Line 62: warning: exported method FsDriver.Stat should have comment or be unexported (golint)
    • Line 77: warning: exported method FsDriver.Remove should have comment or be unexported (golint)
    • Line 83: warning: exported method FsDriver.Mkdir should have comment or be unexported (golint)
    • Line 98: warning: exported method FsDriver.Walk should have comment or be unexported (golint)
    • elsa/core/console_util.go
    • Line 26: warning: exported type Formatter should have comment or be unexported (golint)
    • Line 38: warning: exported function NewFormatter should have comment or be unexported (golint)
    • Line 78: warning: exported method Formatter.Marshal should have comment or be unexported (golint)
    • elsa/util/log.go
    • Line 8: warning: exported function LogError should have comment or be unexported (golint)
    • Line 12: warning: exported function LogInfo should have comment or be unexported (golint)
    • elsa/module/config.go
    • Line 22: warning: exported type Config should have comment or be unexported (golint)
    • Line 27: warning: exported var DefaultConfigPath should have comment or be unexported (golint)
    • Line 29: warning: exported function ConfigLoad should have comment or be unexported (golint)
    • Line 51: warning: exported function ConfigParse should have comment or be unexported (golint)
    • Line 69: warning: exported function ConfigExists should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.

    • elsa/cmd/root.go
    • Line 231: warning: ineffectual assignment to err (ineffassign)
    • Line 232: warning: ineffectual assignment to err (ineffassign)
    • Line 233: warning: ineffectual assignment to err (ineffassign)

misspell94%

Misspell Finds commonly misspelled English words