Preparing report...

Report for github.com/s3git/s3git

C    Needs some work    Found 15 issues across 15 files

Tweet

gofmt6%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


golint93%

Golint is a linter for Go source code.

    • s3git/cmd/root.go
    • Line 32: warning: exported const ENDPOINT should have comment or be unexported (golint)
    • Line 33: warning: exported const ACCESS_KEY should have comment or be unexported (golint)
    • Line 34: warning: exported const SECRET_KEY should have comment or be unexported (golint)
    • Line 40: warning: comment on exported var RootCmd should be of the form "RootCmd ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign13%

IneffAssign detects ineffectual assignments in Go code.

    • s3git/cmd/pull.go
    • Line 35: warning: undeclared name: s3git (ineffassign)
    • Line 21: warning: "github.com/s3git/s3git-go" imported but not used (ineffassign)
    • s3git/cmd/push.go
    • Line 35: warning: undeclared name: s3git (ineffassign)
    • Line 21: warning: "github.com/s3git/s3git-go" imported but not used (ineffassign)
    • s3git/cmd/remote.go
    • Line 45: warning: undeclared name: s3git (ineffassign)
    • Line 50: warning: undeclared name: s3git (ineffassign)
    • Line 51: warning: undeclared name: s3git (ineffassign)
    • Line 70: warning: undeclared name: s3git (ineffassign)
    • Line 88: warning: undeclared name: s3git (ineffassign)
    • Line 21: warning: "github.com/s3git/s3git-go" imported but not used (ineffassign)
    • s3git/cmd/snapshot.go
    • Line 50: warning: undeclared name: s3git (ineffassign)
    • Line 83: warning: undeclared name: s3git (ineffassign)
    • Line 110: warning: undeclared name: s3git (ineffassign)
    • Line 120: warning: undeclared name: s3git (ineffassign)
    • Line 121: warning: undeclared name: s3git (ineffassign)
    • Line 122: warning: undeclared name: s3git (ineffassign)
    • Line 123: warning: undeclared name: s3git (ineffassign)
    • Line 143: warning: undeclared name: s3git (ineffassign)
    • Line 21: warning: "github.com/s3git/s3git-go" imported but not used (ineffassign)
    • s3git/main.go
    • Line 21: warning: cannot find package "." in: (ineffassign)
    • Line 22: warning: cannot find package "." in: (ineffassign)
    • Line 21: warning: could not import github.com/s3git/s3git/cmd (invalid package name: "") (ineffassign)
    • Line 22: warning: could not import github.com/spf13/viper (invalid package name: "") (ineffassign)
    • s3git/cmd/log.go
    • Line 23: warning: cannot find package "." in: (ineffassign)
    • Line 23: warning: could not import github.com/fatih/color (invalid package name: "") (ineffassign)
    • Line 36: warning: undeclared name: s3git (ineffassign)
    • Line 41: warning: undeclared name: s3git (ineffassign)
    • Line 42: warning: undeclared name: s3git (ineffassign)
    • Line 21: warning: "github.com/s3git/s3git-go" imported but not used (ineffassign)
    • s3git/cmd/init.go
    • Line 52: warning: undeclared name: s3git (ineffassign)
    • Line 53: warning: undeclared name: s3git (ineffassign)
    • Line 54: warning: undeclared name: s3git (ineffassign)
    • Line 56: warning: undeclared name: s3git (ineffassign)
    • Line 23: warning: "github.com/s3git/s3git-go" imported but not used (ineffassign)
    • s3git/cmd/ls.go
    • Line 33: warning: undeclared name: s3git (ineffassign)
    • Line 22: warning: "github.com/s3git/s3git-go" imported but not used (ineffassign)
    • s3git/cmd/clone.go
    • Line 26: warning: cannot find package "." in: (ineffassign)
    • Line 28: warning: cannot find package "." in: (ineffassign)
    • Line 26: warning: could not import github.com/cheggaaa/pb (invalid package name: "") (ineffassign)
    • Line 28: warning: could not import github.com/spf13/viper (invalid package name: "") (ineffassign)
    • Line 105: warning: undeclared name: s3git (ineffassign)
    • Line 89: warning: undeclared name: s3git (ineffassign)
    • Line 90: warning: undeclared name: s3git (ineffassign)
    • Line 91: warning: undeclared name: s3git (ineffassign)
    • Line 92: warning: undeclared name: s3git (ineffassign)
    • Line 93: warning: undeclared name: s3git (ineffassign)
    • Line 94: warning: undeclared name: s3git (ineffassign)
    • Line 96: warning: undeclared name: s3git (ineffassign)
    • Line 25: warning: "github.com/s3git/s3git-go" imported but not used (ineffassign)
    • s3git/cmd/add.go
    • Line 24: warning: cannot find package "." in: (ineffassign)
    • Line 25: warning: cannot find package "." in: (ineffassign)
    • Line 24: warning: could not import github.com/s3git/s3git-go (invalid package name: "") (ineffassign)
    • Line 25: warning: could not import github.com/spf13/cobra (invalid package name: "") (ineffassign)
    • Line 35: warning: undeclared name: s3git (ineffassign)
    • Line 24: warning: "github.com/s3git/s3git-go" imported but not used (ineffassign)
    • s3git/cmd/cat.go
    • Line 38: warning: undeclared name: s3git (ineffassign)
    • Line 23: warning: "github.com/s3git/s3git-go" imported but not used (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!