Preparing report...

Report for github.com/binhq/binbrew

A+    Excellent!    Found 13 issues across 16 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!


golint62%

Golint is a linter for Go source code.

    • binbrew/pkg/template/funcs.go
    • Line 17: warning: don't use underscores in Go names; func protobuf_goarch should be protobufGoarch (golint)
    • Line 30: warning: don't use underscores in Go names; func protobuf_goos should be protobufGoos (golint)
    • binbrew/pkg/ruleset.go
    • Line 43: warning: exported method BinaryTemplate.Resolve should have comment or be unexported (golint)
    • Line 127: warning: exported method RuleSet.Resolve should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign37%

IneffAssign detects ineffectual assignments in Go code.

    • binbrew/pkg/github/provider.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/Masterminds/semver (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/binhq/binbrew/pkg (invalid package name: "") (ineffassign)
    • binbrew/pkg/github/rules.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/binhq/binbrew/pkg/template (invalid package name: "") (ineffassign)
    • binbrew/pkg/provider.go
    • Line 3: warning: cannot find package "." in: (ineffassign)
    • Line 3: warning: could not import github.com/Masterminds/semver (invalid package name: "") (ineffassign)
    • binbrew/pkg/ruleset_test.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/Masterminds/semver (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/binhq/binbrew/pkg/template (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/stretchr/testify/assert (invalid package name: "") (ineffassign)
    • binbrew/cmd/get.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 6: warning: could not import github.com/binhq/binbrew/pkg (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/binhq/binbrew/pkg/github (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/spf13/cobra (invalid package name: "") (ineffassign)
    • binbrew/cmd/root.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)
    • binbrew/pkg/downloader.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/hashicorp/go-getter (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 39: warning: undeclared name: getter (ineffassign)
    • Line 8: warning: "github.com/hashicorp/go-getter" imported but not used (ineffassign)
    • binbrew/pkg/resolver_test.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/binhq/binbrew/pkg (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/binhq/binbrew/pkg/github (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/magiconair/properties/assert (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/stretchr/testify/require (invalid package name: "") (ineffassign)
    • binbrew/main.go
    • Line 3: warning: cannot find package "." in: (ineffassign)
    • Line 3: warning: could not import github.com/binhq/binbrew/cmd (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!