Preparing report...

Report for github.com/open-integration/oi

A+    Excellent!    Found 18 issues across 76 files

Tweet

gofmt98%

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!


golint77%

Golint is a linter for Go source code.

    • oi/catalog/services/http/endpoints/call/arguments.go
    • Line 11: warning: exported function UnmarshalCallArguments should have comment or be unexported (golint)
    • Line 17: warning: exported method CallArguments.Marshal should have comment or be unexported (golint)
    • Line 21: warning: exported type CallArguments should have comment or be unexported (golint)
    • Line 28: warning: exported type Header should have comment or be unexported (golint)
    • oi/pkg/service/service.go
    • Line 33: warning: exported function New should have comment or be unexported (golint)
    • Line 43: warning: exported method Service.Init should have comment or be unexported (golint)
    • Line 54: warning: exported method Service.Call should have comment or be unexported (golint)
    • Line 73: warning: exported method Service.Run should have comment or be unexported (golint)
    • Line 107: warning: exported method Service.RegisterEndpoint should have comment or be unexported (golint)
    • Line 119: warning: exported function UnmarshalRequestArgumentsInto should have comment or be unexported (golint)
    • Line 124: warning: exported function BuildSuccessfullResponse should have comment or be unexported (golint)
    • Line 135: warning: exported function BuildErrorResponse should have comment or be unexported (golint)
    • oi/pkg/utils/utils.go
    • Line 32: warning: exported function GetEnvOrDefault should have comment or be unexported (golint)
    • Line 40: warning: exported function GetEnvOrDie should have comment or be unexported (golint)
    • Line 48: warning: exported function DieOnError should have comment or be unexported (golint)
    • oi/catalog/services/slack/slack.go
    • Line 5: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 18: warning: exported function Run should have comment or be unexported (golint)
    • oi/catalog/services/http/http.go
    • Line 5: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 18: warning: exported function Run should have comment or be unexported (golint)
    • oi/catalog/services/github/endpoints/getissuecomments/returns.go
    • Line 11: warning: exported function UnmarshalGetIssueCommentsReturns should have comment or be unexported (golint)
    • Line 17: warning: exported method GetIssueCommentsReturns.Marshal should have comment or be unexported (golint)
    • Line 21: warning: exported type GetIssueCommentsReturns should have comment or be unexported (golint)
    • Line 25: warning: exported type IssueComment should have comment or be unexported (golint)
    • Line 39: warning: exported type Reactions should have comment or be unexported (golint)
    • Line 52: warning: exported type User should have comment or be unexported (golint)
    • Line 98: warning: exported type Timestamp should have comment or be unexported (golint)
    • Line 101: warning: exported type Plan should have comment or be unexported (golint)
    • Line 110: warning: exported type TextMatch should have comment or be unexported (golint)
    • Line 118: warning: exported type Match should have comment or be unexported (golint)
    • oi/catalog/services/github/endpoints/issuesearch/returns.go
    • Line 11: warning: exported function UnmarshalIssueSearchReturns should have comment or be unexported (golint)
    • Line 17: warning: exported method IssueSearchReturns.Marshal should have comment or be unexported (golint)
    • Line 21: warning: exported type IssueSearchReturns should have comment or be unexported (golint)
    • Line 25: warning: exported type Issue should have comment or be unexported (golint)
    • Line 57: warning: exported type User should have comment or be unexported (golint)
    • Line 103: warning: exported type Timestamp should have comment or be unexported (golint)
    • Line 106: warning: exported type Plan should have comment or be unexported (golint)
    • Line 115: warning: exported type TextMatch should have comment or be unexported (golint)
    • Line 123: warning: exported type Match should have comment or be unexported (golint)
    • Line 128: warning: exported type Label should have comment or be unexported (golint)
    • Line 138: warning: exported type Milestone should have comment or be unexported (golint)
    • Line 157: warning: exported type PullRequestLinks should have comment or be unexported (golint)
    • Line 164: warning: exported type Reactions should have comment or be unexported (golint)
    • Line 177: warning: exported type Repository should have comment or be unexported (golint)
    • Line 271: warning: exported type CodeOfConduct should have comment or be unexported (golint)
    • Line 278: warning: exported type License should have comment or be unexported (golint)
    • Line 293: warning: exported type Organization 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!