Preparing report...

Report for github.com/kit101/drone-plugin-gitee-pulls

(v1.0.0)

A+    Excellent!    Found 10 issues across 19 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!


golint47%

Golint is a linter for Go source code.

    • plugins/comment.go
    • Line 24: warning: exported type CommentPlugin should have comment or be unexported (golint)
    • Line 43: warning: exported function NewCommentPlugin should have comment or be unexported (golint)
    • plugins/plugins.go
    • Line 11: warning: exported type Plugin should have comment or be unexported (golint)
    • Line 20: warning: exported function NewPlugin should have comment or be unexported (golint)
    • main.go
    • Line 227: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • provider/client.go
    • Line 17: warning: exported type Client should have comment or be unexported (golint)
    • Line 36: warning: exported function NewClient should have comment or be unexported (golint)
    • config/config.go
    • Line 6: warning: exported type BuildStatus should have comment or be unexported (golint)
    • Line 7: warning: exported type Config should have comment or be unexported (golint)
    • Line 24: warning: exported type Comment should have comment or be unexported (golint)
    • Line 27: warning: exported type Label should have comment or be unexported (golint)
    • Line 33: warning: exported type Test should have comment or be unexported (golint)
    • Line 38: warning: exported function NewConfig should have comment or be unexported (golint)
    • Line 44: warning: exported method Config.IsPullRequest should have comment or be unexported (golint)
    • Line 51: warning: exported const BuildStatusUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 61: warning: exported function BuildStatusOfValue should have comment or be unexported (golint)
    • plugins/test.go
    • Line 8: warning: exported type TestPlugin should have comment or be unexported (golint)
    • Line 21: warning: exported function NewTestPlugin should have comment or be unexported (golint)
    • Line 34: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • provider/label.go
    • Line 10: warning: exported type LabelService should have comment or be unexported (golint)
    • Line 23: warning: exported type Label should have comment or be unexported (golint)
    • provider/pr.go
    • Line 9: warning: exported type PullRequestService should have comment or be unexported (golint)
    • plugins/label.go
    • Line 12: warning: exported type LabelPlugin should have comment or be unexported (golint)
    • Line 25: warning: exported function NewLabelPlugin should have comment or be unexported (golint)
    • Line 63: warning: exported function GetLabelName should have comment or be unexported (golint)
    • Line 67: warning: exported function GetLabelColor should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!