Preparing report...

Report for github.com/maprost/gox

A    Great!    Found 31 issues across 32 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!


gocyclo96%

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.


golint25%

Golint is a linter for Go source code.

    • gox/internal/golang/compile.go
    • Line 10: warning: exported function Compile should have comment or be unexported (golint)
    • Line 13: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 43: warning: exported function CompileBinary should have comment or be unexported (golint)
    • gox/internal/golang/misc.go
    • Line 8: warning: exported function RemoveDockerContainer should have comment or be unexported (golint)
    • Line 12: warning: exported function PullDockerImage should have comment or be unexported (golint)
    • gox/internal/log/logger.go
    • Line 14: warning: exported function InitLogger should have comment or be unexported (golint)
    • Line 21: warning: exported function Debug should have comment or be unexported (golint)
    • Line 25: warning: exported function Info should have comment or be unexported (golint)
    • Line 29: warning: exported function Warn should have comment or be unexported (golint)
    • Line 33: warning: exported function Fatal should have comment or be unexported (golint)
    • Line 37: warning: exported function Print should have comment or be unexported (golint)
    • Line 41: warning: exported function Stream should have comment or be unexported (golint)
    • gox/internal/script/compose.go
    • Line 8: warning: exported function ComposeScript should have comment or be unexported (golint)
    • Line 20: warning: don't use underscores in Go names; var depends_on should be dependsOn (golint)
    • gox/internal/docker/misc.go
    • Line 10: warning: exported function Pull should have comment or be unexported (golint)
    • Line 16: warning: exported function StopAndRemove should have comment or be unexported (golint)
    • Line 34: warning: exported function RemoveImage should have comment or be unexported (golint)
    • Line 51: warning: exported function RemoveUnusedImages should have comment or be unexported (golint)
    • Line 69: warning: exported function Execute should have comment or be unexported (golint)
    • gox/gxarg/file.go
    • Line 5: warning: exported const Config should have comment or be unexported (golint)
    • Line 7: warning: exported function ConfigFile should have comment or be unexported (golint)
    • Line 11: warning: exported function ConfigFileVar should have comment or be unexported (golint)
    • Line 15: warning: exported function ConfigFileFlag should have comment or be unexported (golint)
    • Line 21: warning: exported function ConfigFileFlagVar should have comment or be unexported (golint)
    • gox/internal/docker/run.go
    • Line 8: warning: exported type RunBuilder should have comment or be unexported (golint)
    • Line 14: warning: exported function NewRunBuilder should have comment or be unexported (golint)
    • Line 45: warning: comment on exported method RunBuilder.EnvironmentVariable should be of the form "EnvironmentVariable ..." (golint)
    • gox/internal/args/flags.go
    • Line 8: warning: exported type DebugFlag should have comment or be unexported (golint)
    • Line 12: warning: exported method DebugFlag.DefineFlag should have comment or be unexported (golint)
    • Line 16: warning: exported type FileFlag should have comment or be unexported (golint)
    • Line 20: warning: exported method FileFlag.DefineFlag should have comment or be unexported (golint)
    • Line 24: warning: exported type HddFlag should have comment or be unexported (golint)
    • Line 28: warning: exported method HddFlag.DefineFlag should have comment or be unexported (golint)
    • gox/internal/db/factory.go
    • Line 5: warning: exported type Database should have comment or be unexported (golint)
    • Line 11: warning: exported function New should have comment or be unexported (golint)
    • gox/internal/golang/test.go
    • Line 11: warning: exported function Test should have comment or be unexported (golint)
    • Line 14: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • gox/internal/log/level.go
    • Line 3: warning: exported type Level should have comment or be unexported (golint)
    • Line 5: warning: exported const LevelDebug should have comment or be unexported (golint)
    • Line 6: warning: exported const LevelInfo should have comment or be unexported (golint)
    • Line 7: warning: exported const LevelWarn should have comment or be unexported (golint)
    • Line 8: warning: exported const LevelFatal should have comment or be unexported (golint)
    • Line 10: warning: exported const LevelDebugString should have comment or be unexported (golint)
    • Line 11: warning: exported const LevelInfoString should have comment or be unexported (golint)
    • Line 12: warning: exported const LevelWarnString should have comment or be unexported (golint)
    • Line 13: warning: exported const LevelFatalString should have comment or be unexported (golint)
    • Line 15: warning: exported var LevelToString should have comment or be unexported (golint)
    • gox/gxcfg/config.go
    • Line 3: warning: exported type Database should have comment or be unexported (golint)
    • Line 18: warning: exported method Database.Driver should have comment or be unexported (golint)
    • Line 22: warning: exported method Database.Database should have comment or be unexported (golint)
    • Line 26: warning: exported method Database.Host should have comment or be unexported (golint)
    • Line 30: warning: exported method Database.Port should have comment or be unexported (golint)
    • Line 34: warning: exported method Database.Username should have comment or be unexported (golint)
    • Line 38: warning: exported method Database.Password should have comment or be unexported (golint)
    • Line 42: warning: exported type Config should have comment or be unexported (golint)
    • Line 65: warning: exported function InitConfig should have comment or be unexported (golint)
    • Line 75: warning: exported function GetConfig should have comment or be unexported (golint)
    • gox/gxcfg/defaults.go
    • Line 5: warning: exported const FileInsideDockerContainer 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!


ineffassign50%

IneffAssign detects ineffectual assignments in Go code.

    • gox/internal/binrun.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/maprost/gox/internal/golang (invalid package name: "") (ineffassign)
    • gox/gxcfg/config_test.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/maprost/assertion (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/maprost/gox/gxcfg (invalid package name: "") (ineffassign)
    • gox/internal/build.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/maprost/gox/internal/docker (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/maprost/gox/internal/script (invalid package name: "") (ineffassign)
    • gox/internal/docker/image.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/maprost/gox/gxarg (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/maprost/gox/gxcfg (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/maprost/gox/internal/log (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/maprost/gox/internal/shell (invalid package name: "") (ineffassign)
    • gox/internal/db/postgres.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/maprost/gox/internal/docker (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/maprost/gox/internal/log (invalid package name: "") (ineffassign)
    • gox/internal/db/postgres_test.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/maprost/assertion (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/maprost/gox/gxcfg (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/maprost/gox/internal/db (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/maprost/gox/internal/log (invalid package name: "") (ineffassign)
    • gox/internal/golang/checkstyle.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/maprost/gox/gxcfg (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/maprost/gox/internal/docker (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/maprost/gox/internal/log (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/maprost/gox/internal/shell (invalid package name: "") (ineffassign)
    • gox/internal/base.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/maprost/gox/gxcfg (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/maprost/gox/internal/args (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/maprost/gox/internal/db (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/maprost/gox/internal/log (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/maprost/gox/internal/shell (invalid package name: "") (ineffassign)
    • gox/internal/docker/misc_test.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/maprost/assertion (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/maprost/gox/internal/docker (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/maprost/gox/internal/log (invalid package name: "") (ineffassign)
    • gox/main.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/maprost/gox/internal (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/maprost/gox/internal/args (invalid package name: "") (ineffassign)
    • gox/internal/args/flags.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/maprost/gox/gxarg (invalid package name: "") (ineffassign)
    • gox/internal/db/factory.go
    • Line 3: warning: cannot find package "." in: (ineffassign)
    • Line 3: warning: could not import github.com/maprost/gox/gxcfg (invalid package name: "") (ineffassign)
    • gox/internal/shell/terminal_test.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/maprost/assertion (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/maprost/gox/internal/log (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/maprost/gox/internal/shell (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!