Preparing report...

Report for github.com/de1ux/prowler

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


gocyclo94%

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.


golint5%

Golint is a linter for Go source code.

    • prowler/common/colors.go
    • Line 13: warning: exported function ColorPr should have comment or be unexported (golint)
    • Line 22: warning: exported function ColorStatus should have comment or be unexported (golint)
    • Line 29: warning: exported function ColorIcon should have comment or be unexported (golint)
    • prowler/vcs/v1/bitbucket/client.go
    • Line 17: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 21: warning: exported type Client should have comment or be unexported (golint)
    • Line 40: warning: exported method Client.GetPullRequestsByRepo should have comment or be unexported (golint)
    • prowler/vcs/v1/client.go
    • Line 3: warning: exported type PullRequest should have comment or be unexported (golint)
    • Line 10: warning: exported type Client should have comment or be unexported (golint)
    • prowler/services/v1/travis/client.go
    • Line 8: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 12: warning: exported type Client should have comment or be unexported (golint)
    • Line 16: warning: exported method Client.GetStatusByPullRequest should have comment or be unexported (golint)
    • prowler/common/manifest.go
    • Line 8: warning: exported type Manifest should have comment or be unexported (golint)
    • Line 14: warning: exported type Entry should have comment or be unexported (golint)
    • prowler/vcs/v1/github/client.go
    • Line 15: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 19: warning: exported type Client should have comment or be unexported (golint)
    • Line 23: warning: exported method Client.GetPullRequestsByRepo should have comment or be unexported (golint)
    • prowler/services/v1/client.go
    • Line 7: warning: exported type State should have comment or be unexported (golint)
    • Line 10: warning: exported const Passing should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type Status should have comment or be unexported (golint)
    • Line 22: warning: exported type Client should have comment or be unexported (golint)
    • prowler/services/v1/bamboo/client.go
    • Line 26: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 30: warning: exported type Client should have comment or be unexported (golint)
    • Line 34: warning: exported method Client.GetStatusByPullRequest should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign17%

IneffAssign detects ineffectual assignments in Go code.

    • prowler/services/v1/bamboo/client.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/de1ux/prowler/services/v1 (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/de1ux/prowler/vcs/v1 (invalid package name: "") (ineffassign)
    • prowler/common/colors.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/de1ux/prowler/services/v1 (invalid package name: "") (ineffassign)
    • prowler/common/integration.go
    • 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 11: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/de1ux/prowler/services/v1/bamboo (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/de1ux/prowler/services/v1/travis (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/de1ux/prowler/vcs/v1/bitbucket (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/de1ux/prowler/vcs/v1/github (invalid package name: "") (ineffassign)
    • prowler/common/manifest.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/de1ux/prowler/vcs/v1 (invalid package name: "") (ineffassign)
    • prowler/services/v1/travis/client.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/de1ux/prowler/services/v1 (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/de1ux/prowler/vcs/v1 (invalid package name: "") (ineffassign)
    • prowler/prowler.go
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: could not import github.com/de1ux/prowler/common (invalid package name: "") (ineffassign)
    • prowler/common/config.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/de1ux/prowler/config/v1 (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!