Preparing report...

Report for github.com/MontFerret/lab

A    Great!    Found 35 issues across 39 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!


gocyclo92%

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.


golint15%

Golint is a linter for Go source code.

    • lab/testing/helpers.go
    • Line 5: warning: exported function ToMap should have comment or be unexported (golint)
    • Line 20: warning: exported function TryToMap should have comment or be unexported (golint)
    • lab/sources/http.go
    • Line 11: warning: exported type HTTP should have comment or be unexported (golint)
    • Line 15: warning: exported function NewHTTP should have comment or be unexported (golint)
    • Line 23: warning: exported method HTTP.Resolve should have comment or be unexported (golint)
    • lab/testing/unit.go
    • Line 13: warning: exported type Unit should have comment or be unexported (golint)
    • Line 18: warning: exported function NewUnit should have comment or be unexported (golint)
    • Line 22: warning: exported method Unit.Run should have comment or be unexported (golint)
    • lab/sources/error.go
    • Line 3: warning: exported type Error should have comment or be unexported (golint)
    • Line 9: warning: exported function NewError should have comment or be unexported (golint)
    • Line 16: warning: exported function NewErrorFrom should have comment or be unexported (golint)
    • lab/cdn/node.go
    • Line 12: warning: exported type NodeSettings should have comment or be unexported (golint)
    • Line 19: warning: exported type Node should have comment or be unexported (golint)
    • Line 27: warning: exported function NewNode should have comment or be unexported (golint)
    • Line 48: warning: exported method Node.ID should have comment or be unexported (golint)
    • Line 52: warning: exported method Node.Name should have comment or be unexported (golint)
    • Line 56: warning: exported method Node.Port should have comment or be unexported (golint)
    • Line 60: warning: exported method Node.IsRunning should have comment or be unexported (golint)
    • Line 64: warning: exported method Node.Start should have comment or be unexported (golint)
    • Line 75: warning: exported method Node.Stop should have comment or be unexported (golint)
    • lab/runtime/remote.go
    • Line 30: warning: exported type HTTPParams should have comment or be unexported (golint)
    • Line 36: warning: exported type Remote should have comment or be unexported (golint)
    • Line 43: warning: exported function NewRemote should have comment or be unexported (golint)
    • Line 125: warning: exported method Remote.Version should have comment or be unexported (golint)
    • Line 141: warning: exported method Remote.Run should have comment or be unexported (golint)
    • lab/runner/pool.go
    • Line 3: warning: exported type Pool should have comment or be unexported (golint)
    • Line 8: warning: exported function NewPool should have comment or be unexported (golint)
    • Line 15: warning: exported method Pool.Capacity should have comment or be unexported (golint)
    • Line 19: warning: exported method Pool.Size should have comment or be unexported (golint)
    • Line 23: warning: exported method Pool.Go should have comment or be unexported (golint)
    • lab/runner/runner.go
    • Line 16: warning: exported type Options should have comment or be unexported (golint)
    • Line 25: warning: exported type Runner should have comment or be unexported (golint)
    • Line 35: warning: exported function New should have comment or be unexported (golint)
    • Line 74: warning: exported method Runner.Run should have comment or be unexported (golint)
    • lab/runtime/runtime.go
    • Line 11: warning: exported type Options should have comment or be unexported (golint)
    • Line 17: warning: exported type Func should have comment or be unexported (golint)
    • Line 19: warning: exported type Runtime should have comment or be unexported (golint)
    • Line 25: warning: exported type FuncStruct should have comment or be unexported (golint)
    • Line 30: warning: exported function New should have comment or be unexported (golint)
    • Line 51: warning: exported function AsFunc should have comment or be unexported (golint)
    • Line 55: warning: exported method FuncStruct.Version should have comment or be unexported (golint)
    • Line 59: warning: exported method FuncStruct.Run should have comment or be unexported (golint)
    • lab/sources/file.go
    • Line 8: warning: exported type File should have comment or be unexported (golint)
    • Line 14: warning: exported method File.Resolve should have comment or be unexported (golint)
    • lab/sources/fs.go
    • Line 14: warning: exported type FileSystem should have comment or be unexported (golint)
    • Line 20: warning: exported function NewFileSystem should have comment or be unexported (golint)
    • Line 75: warning: exported method FileSystem.Resolve should have comment or be unexported (golint)
    • lab/runtime/binary.go
    • Line 14: warning: exported type Binary should have comment or be unexported (golint)
    • Line 20: warning: exported function NewBinary should have comment or be unexported (golint)
    • Line 24: warning: exported method Binary.Version should have comment or be unexported (golint)
    • Line 40: warning: exported method Binary.Run should have comment or be unexported (golint)
    • lab/runtime/builtin.go
    • Line 17: warning: exported type Builtin should have comment or be unexported (golint)
    • Line 22: warning: exported function NewBuiltin should have comment or be unexported (golint)
    • Line 28: warning: exported method Builtin.Version should have comment or be unexported (golint)
    • Line 32: warning: exported method Builtin.Run should have comment or be unexported (golint)
    • lab/runner/context.go
    • Line 10: warning: exported type Context should have comment or be unexported (golint)
    • Line 15: warning: exported function NewContext should have comment or be unexported (golint)
    • Line 22: warning: exported method Context.Deadline should have comment or be unexported (golint)
    • Line 26: warning: exported method Context.Done should have comment or be unexported (golint)
    • Line 30: warning: exported method Context.Err should have comment or be unexported (golint)
    • Line 34: warning: exported method Context.Value should have comment or be unexported (golint)
    • Line 38: warning: exported method Context.Params should have comment or be unexported (golint)
    • lab/testing/suite.go
    • Line 17: warning: exported type Suite should have comment or be unexported (golint)
    • Line 23: warning: exported type SuiteManifest should have comment or be unexported (golint)
    • Line 29: warning: exported type ScriptManifest should have comment or be unexported (golint)
    • Line 35: warning: exported type DataContext should have comment or be unexported (golint)
    • Line 39: warning: exported type DataContextValues should have comment or be unexported (golint)
    • Line 45: warning: exported function NewSuite should have comment or be unexported (golint)
    • Line 73: warning: exported method Suite.Run should have comment or be unexported (golint)
    • lab/sources/noop.go
    • Line 8: warning: exported type Noop should have comment or be unexported (golint)
    • Line 10: warning: exported function NewNoop should have comment or be unexported (golint)
    • Line 26: warning: exported method Noop.Resolve should have comment or be unexported (golint)
    • lab/cdn/helpers.go
    • Line 7: warning: exported function GetFreePort should have comment or be unexported (golint)
    • Line 25: warning: exported function GetOutboundIP should have comment or be unexported (golint)
    • lab/testing/case.go
    • Line 14: warning: exported type Options should have comment or be unexported (golint)
    • Line 19: warning: exported type Case should have comment or be unexported (golint)
    • Line 24: warning: exported function New should have comment or be unexported (golint)
    • lab/sources/aggregate.go
    • Line 8: warning: exported type Aggregate should have comment or be unexported (golint)
    • Line 12: warning: exported function NewAggregate should have comment or be unexported (golint)
    • Line 16: warning: exported method Aggregate.Add should have comment or be unexported (golint)
    • Line 57: warning: exported method Aggregate.Resolve should have comment or be unexported (golint)
    • lab/testing/params.go
    • Line 3: warning: exported type Params should have comment or be unexported (golint)
    • Line 8: warning: exported function NewParams should have comment or be unexported (golint)
    • Line 15: warning: exported method Params.SetSystemValue should have comment or be unexported (golint)
    • Line 19: warning: exported method Params.SetUserValue should have comment or be unexported (golint)
    • Line 23: warning: exported method Params.SetUserValues should have comment or be unexported (golint)
    • Line 29: warning: exported method Params.ToMap should have comment or be unexported (golint)
    • Line 37: warning: exported method Params.Clone should have comment or be unexported (golint)
    • lab/sources/source.go
    • Line 11: warning: exported type Source should have comment or be unexported (golint)
    • Line 16: warning: exported type SourceFactory should have comment or be unexported (golint)
    • Line 18: warning: exported type SourceType should have comment or be unexported (golint)
    • Line 22: warning: exported const SourceTypeUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported function New should have comment or be unexported (golint)
    • Line 65: warning: exported function Create should have comment or be unexported (golint)
    • Line 75: warning: exported function CreateFrom should have comment or be unexported (golint)
    • Line 96: warning: exported function GetType should have comment or be unexported (golint)
    • lab/reporters/silent.go
    • Line 9: warning: exported type Silent should have comment or be unexported (golint)
    • Line 11: warning: exported function NewSilent should have comment or be unexported (golint)
    • Line 15: warning: exported method Silent.Report should have comment or be unexported (golint)
    • lab/sources/git.go
    • Line 17: warning: exported type Git should have comment or be unexported (golint)
    • Line 24: warning: exported function NewGit should have comment or be unexported (golint)
    • Line 58: warning: exported function NewGitFrom should have comment or be unexported (golint)
    • Line 145: warning: exported method Git.Resolve should have comment or be unexported (golint)
    • lab/sources/helpers.go
    • Line 7: warning: exported function IsSupportedFile should have comment or be unexported (golint)
    • Line 16: warning: exported function ToDir should have comment or be unexported (golint)
    • lab/cdn/directory.go
    • Line 12: warning: exported type Directory should have comment or be unexported (golint)
    • Line 18: warning: exported function NewDirectoryFrom should have comment or be unexported (golint)
    • lab/cdn/manager.go
    • Line 13: warning: exported type Manager should have comment or be unexported (golint)
    • Line 20: warning: exported function New should have comment or be unexported (golint)
    • Line 33: warning: exported method Manager.IsRunning should have comment or be unexported (golint)
    • Line 37: warning: exported method Manager.Bind should have comment or be unexported (golint)
    • Line 54: warning: exported method Manager.Endpoints should have comment or be unexported (golint)
    • Line 64: warning: exported method Manager.Start should have comment or be unexported (golint)
    • Line 112: warning: exported method Manager.Stop should have comment or be unexported (golint)
    • lab/reporters/console.go
    • Line 14: warning: exported type Console should have comment or be unexported (golint)
    • Line 18: warning: exported function NewConsole should have comment or be unexported (golint)
    • Line 24: warning: exported method Console.Report should have comment or be unexported (golint)
    • lab/runner/result.go
    • Line 6: warning: exported type Result should have comment or be unexported (golint)
    • Line 14: warning: exported type Summary should have comment or be unexported (golint)
    • Line 21: warning: exported method Summary.HasErrors should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!