Preparing report...

Report for github.com/liamg/peridot

(v0.0.1)

A+    Excellent!    Found 24 issues across 52 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!


gocyclo94%

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.


golint55%

Golint is a linter for Go source code.

    • internal/pkg/module/file.go
    • Line 15: warning: exported type File should have comment or be unexported (golint)
    • Line 20: warning: exported function NewMemoryFile should have comment or be unexported (golint)
    • internal/pkg/module/runner.go
    • Line 13: warning: exported type Runner should have comment or be unexported (golint)
    • Line 23: warning: exported function NewRunner should have comment or be unexported (golint)
    • Line 30: warning: exported method Runner.Run should have comment or be unexported (golint)
    • internal/pkg/variable/list.go
    • Line 3: warning: exported type List should have comment or be unexported (golint)
    • Line 5: warning: exported method List.All should have comment or be unexported (golint)
    • Line 13: warning: exported method List.Len should have comment or be unexported (golint)
    • internal/pkg/config/module.go
    • Line 9: warning: exported type Module should have comment or be unexported (golint)
    • Line 19: warning: exported type Scripts should have comment or be unexported (golint)
    • Line 27: warning: exported type Script should have comment or be unexported (golint)
    • Line 32: warning: exported type InnerModule should have comment or be unexported (golint)
    • Line 40: warning: exported type Variable should have comment or be unexported (golint)
    • Line 46: warning: exported type File should have comment or be unexported (golint)
    • Line 52: warning: exported method Module.Validate should have comment or be unexported (golint)
    • internal/pkg/module/diff.go
    • Line 11: warning: exported type State should have comment or be unexported (golint)
    • Line 14: warning: exported const StateUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type ModuleDiff should have comment or be unexported (golint)
    • Line 29: warning: exported type FileDiff should have comment or be unexported (golint)
    • Line 39: warning: exported function Diff should have comment or be unexported (golint)
    • internal/pkg/config/init.go
    • Line 12: warning: exported var DefaultConfig should have comment or be unexported (golint)
    • Line 16: warning: exported function Init should have comment or be unexported (golint)
    • internal/pkg/config/path.go
    • Line 11: warning: exported const Filename should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported function Path should have comment or be unexported (golint)
    • internal/pkg/cmd/root.go
    • Line 7: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 34: warning: exported function Execute should have comment or be unexported (golint)
    • internal/pkg/log/debug.go
    • Line 14: warning: exported function Enable should have comment or be unexported (golint)
    • Line 18: warning: exported function Debug should have comment or be unexported (golint)
    • Line 25: warning: exported type Logger should have comment or be unexported (golint)
    • Line 30: warning: exported function NewLogger should have comment or be unexported (golint)
    • Line 41: warning: exported method Logger.Log should have comment or be unexported (golint)
    • internal/pkg/config/parse.go
    • Line 15: warning: exported function ParseVariables should have comment or be unexported (golint)
    • Line 28: warning: exported function Parse should have comment or be unexported (golint)
    • internal/pkg/config/root.go
    • Line 12: warning: exported type Config should have comment or be unexported (golint)
    • Line 18: warning: exported type Override should have comment or be unexported (golint)
    • Line 22: warning: exported function ParseRoot should have comment or be unexported (golint)
    • internal/pkg/module/diff.file.go
    • Line 16: warning: exported type FileOperation should have comment or be unexported (golint)
    • Line 19: warning: exported const OpUnknown should have comment (or a comment on this block) 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!