Preparing report...

Report for github.com/yeqown/gitlab-flow

A+    Excellent!    Found 9 issues across 30 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!


gocyclo96%

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.


golint70%

Golint is a linter for Go source code.

    • gitlab-flow/internal/conf/conf.go
    • Line 75: warning: comment on exported function DefaultConfPath should be of the form "DefaultConfPath ..." (golint)
    • Line 99: warning: exported function DefaultCWD should have comment or be unexported (golint)
    • gitlab-flow/internal/gitlab-operator/gitlab_operator.go
    • Line 31: warning: comment on exported type CreateBranchRequest should be of the form "CreateBranchRequest ..." (with optional leading article) (golint)
    • Line 40: warning: exported type CreateBranchResult should have comment or be unexported (golint)
    • Line 45: warning: comment on exported type CreateMilestoneRequest should be of the form "CreateMilestoneRequest ..." (with optional leading article) (golint)
    • Line 52: warning: exported type CreateMilestoneResult should have comment or be unexported (golint)
    • Line 63: warning: exported type GetMilestoneResult should have comment or be unexported (golint)
    • Line 70: warning: comment on exported type GetMilestoneMergeRequestsRequest should be of the form "GetMilestoneMergeRequestsRequest ..." (with optional leading article) (golint)
    • Line 76: warning: exported type GetMilestoneMergeRequestsResult should have comment or be unexported (golint)
    • Line 80: warning: exported type MergeRequestShort should have comment or be unexported (golint)
    • Line 89: warning: comment on exported type GetMilestoneIssuesRequest should be of the form "GetMilestoneIssuesRequest ..." (with optional leading article) (golint)
    • Line 95: warning: exported type GetMilestoneIssuesResult should have comment or be unexported (golint)
    • Line 99: warning: exported type IssueShort should have comment or be unexported (golint)
    • Line 109: warning: comment on exported type CreateIssueRequest should be of the form "CreateIssueRequest ..." (with optional leading article) (golint)
    • Line 116: warning: exported type CreateIssueResult should have comment or be unexported (golint)
    • Line 122: warning: comment on exported type CreateMergeRequest should be of the form "CreateMergeRequest ..." (with optional leading article) (golint)
    • Line 129: warning: exported type CreateMergeResult should have comment or be unexported (golint)
    • Line 134: warning: comment on exported type ListMilestoneRequest should be of the form "ListMilestoneRequest ..." (with optional leading article) (golint)
    • Line 141: warning: exported type MilestoneShort should have comment or be unexported (golint)
    • Line 149: warning: exported type ListMilestoneResult should have comment or be unexported (golint)
    • Line 153: warning: comment on exported type ListProjectRequest should be of the form "ListProjectRequest ..." (with optional leading article) (golint)
    • Line 160: warning: exported type ProjectShort should have comment or be unexported (golint)
    • Line 166: warning: exported type ListProjectResult should have comment or be unexported (golint)
    • gitlab-flow/internal/flow_impl.go
    • Line 38: warning: exported function NewFlow should have comment or be unexported (golint)
    • Line 327: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • gitlab-flow/internal/repository/flow_repo.go
    • Line 52: warning: exported method ProjectDO.TableName should have comment or be unexported (golint)
    • Line 67: warning: exported method MilestoneDO.TableName should have comment or be unexported (golint)
    • Line 81: warning: exported method BranchDO.TableName should have comment or be unexported (golint)
    • Line 98: warning: exported method IssueDO.TableName should have comment or be unexported (golint)
    • Line 115: warning: exported method MergeRequestDO.TableName 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!