Preparing report...

Report for github.com/sascha-andres/tardeploy

A    Great!    Found 17 issues across 14 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!


golint64%

Golint is a linter for Go source code.

    • tardeploy/symlink/symlink.go
    • Line 25: warning: exported function Recreate should have comment or be unexported (golint)
    • Line 36: warning: exported function Remove should have comment or be unexported (golint)
    • Line 45: warning: exported function Create should have comment or be unexported (golint)
    • tardeploy/trigger/trigger.go
    • Line 25: warning: comment on exported type Configuration should be of the form "Configuration ..." (with optional leading article) (golint)
    • Line 32: warning: exported method Configuration.BeforeRunTrigger should have comment or be unexported (golint)
    • Line 36: warning: exported method Configuration.AfterRunTrigger should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign-21%

IneffAssign detects ineffectual assignments in Go code.

    • tardeploy/symlink/symlink.go
    • Line 21: warning: could not import github.com/pkg/errors (invalid package name: "") (ineffassign)
    • Line 22: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)
    • tardeploy/configuration.go
    • Line 20: warning: cannot find package "." in: (ineffassign)
    • Line 21: warning: cannot find package "." in: (ineffassign)
    • Line 18: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 20: warning: could not import github.com/pkg/errors (invalid package name: "") (ineffassign)
    • Line 21: warning: could not import github.com/spf13/viper (invalid package name: "") (ineffassign)
    • Line 18: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 20: warning: could not import github.com/pkg/errors (invalid package name: "") (ineffassign)
    • Line 21: warning: could not import github.com/spf13/viper (invalid package name: "") (ineffassign)
    • tardeploy/backup/backup.go
    • Line 26: warning: cannot find package "." in: (ineffassign)
    • Line 25: warning: could not import github.com/pkg/errors (invalid package name: "") (ineffassign)
    • Line 26: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)
    • tardeploy/tardeploy/config.go
    • Line 28: warning: Fatal not declared by package backup (ineffassign)
    • Line 30: warning: Infof not declared by package backup (ineffassign)
    • Line 31: warning: Infof not declared by package backup (ineffassign)
    • Line 32: warning: Infof not declared by package backup (ineffassign)
    • Line 33: warning: Infof not declared by package backup (ineffassign)
    • Line 45: warning: Fatalf not declared by package backup (ineffassign)
    • tardeploy/trigger/trigger.go
    • Line 20: warning: could not import github.com/pkg/errors (invalid package name: "") (ineffassign)
    • Line 21: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)
    • tardeploy/tardeploy/main.go
    • Line 24: warning: cannot find package "." in: (ineffassign)
    • Line 24: warning: could not import github.com/google/gops/agent (invalid package name: "") (ineffassign)
    • Line 36: warning: SetLevel not declared by package backup (ineffassign)
    • Line 36: warning: DebugLevel not declared by package backup (ineffassign)
    • Line 39: warning: SetLevel not declared by package backup (ineffassign)
    • Line 39: warning: InfoLevel not declared by package backup (ineffassign)
    • Line 42: warning: SetLevel not declared by package backup (ineffassign)
    • Line 42: warning: WarnLevel not declared by package backup (ineffassign)
    • Line 45: warning: SetLevel not declared by package backup (ineffassign)
    • Line 45: warning: ErrorLevel not declared by package backup (ineffassign)
    • Line 48: warning: SetLevel not declared by package backup (ineffassign)
    • Line 48: warning: InfoLevel not declared by package backup (ineffassign)
    • Line 51: warning: Infof not declared by package backup (ineffassign)
    • Line 55: warning: WithField not declared by package backup (ineffassign)
    • Line 59: warning: Fatalln not declared by package backup (ineffassign)
    • Line 79: warning: Infof not declared by package backup (ineffassign)
    • Line 95: warning: Infof not declared by package backup (ineffassign)
    • Line 99: warning: Warnf not declared by package backup (ineffassign)
    • Line 103: warning: Warnf not declared by package backup (ineffassign)
    • Line 106: warning: Warnf not declared by package backup (ineffassign)
    • tardeploy/deflate/tarball.go
    • Line 23: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 27: warning: could not import github.com/pkg/errors (invalid package name: "") (ineffassign)
    • tardeploy/file/file.go
    • Line 26: warning: could not import github.com/pkg/errors (invalid package name: "") (ineffassign)
    • Line 28: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!