Preparing report...

Report for github.com/BoltApp/sleet

A+    Excellent!    Found 14 issues across 69 files

Tweet

gofmt97%

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!


golint85%

Golint is a linter for Go source code.

    • sleet/testing/auth_request.go
    • Line 77: warning: exported function BaseCaptureRequest should have comment or be unexported (golint)
    • Line 91: warning: exported function BaseVoidRequest should have comment or be unexported (golint)
    • Line 100: warning: exported function BaseRefundRequest should have comment or be unexported (golint)
    • sleet/gateways/orbital/types.go
    • Line 5: warning: exported type RequestType should have comment or be unexported (golint)
    • Line 8: warning: exported const RequestTypeNewOrder should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported type MessageType should have comment or be unexported (golint)
    • Line 16: warning: exported const MessageTypeAuth should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported const TerminalIDStratus should have comment or be unexported (golint)
    • Line 24: warning: exported type BIN should have comment or be unexported (golint)
    • Line 27: warning: exported const BINStratus should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported type IndustryType should have comment or be unexported (golint)
    • Line 34: warning: exported const IndustryTypeEcomm should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported type CardSecValInd should have comment or be unexported (golint)
    • Line 44: warning: exported const CardSecPresent should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: exported type ApprovalStatus should have comment or be unexported (golint)
    • Line 52: warning: exported const ApprovalStatusDeclined should have comment (or a comment on this block) or be unexported (golint)
    • Line 57: warning: exported type CVVResponseCode should have comment or be unexported (golint)
    • Line 60: warning: exported const CVVResponseMatched should have comment (or a comment on this block) or be unexported (golint)
    • Line 69: warning: exported type AVSResponseCode should have comment or be unexported (golint)
    • Line 72: warning: exported const AVSResponseNotChecked should have comment (or a comment on this block) or be unexported (golint)
    • Line 81: warning: exported type CurrencyCode should have comment or be unexported (golint)
    • Line 84: warning: exported const CurrencyCodeUSD should have comment (or a comment on this block) or be unexported (golint)
    • Line 90: warning: exported type CurrencyExponent should have comment or be unexported (golint)
    • Line 92: warning: exported const CurrencyExponentDefault should have comment or be unexported (golint)
    • Line 103: warning: exported type Request should have comment or be unexported (golint)
    • Line 115: warning: exported type Response should have comment or be unexported (golint)
    • Line 120: warning: exported type RequestBody should have comment or be unexported (golint)
    • Line 151: warning: exported type ResponseBody should have comment or be unexported (golint)
    • sleet/types.go
    • Line 166: warning: exported const RTAUStatusUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 174: warning: exported type RTAUResponse should have comment or be unexported (golint)
    • sleet/gateways/authorizenet/types.go
    • Line 3: warning: exported type TransactionType should have comment or be unexported (golint)
    • Line 6: warning: exported const TransactionTypeAuthOnly should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported const ResponseCodeApproved should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported const ResultCodeOK should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported const AVSResultNotPresent should have comment (or a comment on this block) or be unexported (golint)
    • Line 53: warning: exported const CVVResultMatched should have comment (or a comment on this block) or be unexported (golint)
    • Line 64: warning: exported const CAVVResultBadRequest should have comment (or a comment on this block) or be unexported (golint)
    • sleet/gateways/orbital/orbital.go
    • Line 14: warning: exported type Credentials should have comment or be unexported (golint)
    • Line 20: warning: exported type OrbitalClient should have comment or be unexported (golint)
    • Line 26: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 30: warning: exported function NewWithHttpClient should have comment or be unexported (golint)
    • Line 38: warning: exported method OrbitalClient.Authorize should have comment or be unexported (golint)
    • Line 69: warning: exported method OrbitalClient.Capture should have comment or be unexported (golint)
    • Line 96: warning: exported method OrbitalClient.Void should have comment or be unexported (golint)
    • Line 115: warning: exported method OrbitalClient.Refund should have comment or be unexported (golint)
    • sleet/gateways/firstdata/types.go
    • Line 7: warning: exported const RequestTypeAuth should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported const StatusApproved should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported const StateAuthorized should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: exported const CVVResponseMatched should have comment (or a comment on this block) or be unexported (golint)
    • Line 58: warning: exported const AVSResponseMatch should have comment (or a comment on this block) or be unexported (golint)
    • sleet/testing/utils.go
    • Line 21: warning: exported function NewTestHelper should have comment or be unexported (golint)
    • Line 25: warning: exported method TestHelper.ReadFile should have comment or be unexported (golint)
    • Line 37: warning: exported method TestHelper.Unmarshal should have comment or be unexported (golint)
    • Line 46: warning: exported method TestHelper.XmlUnmarshal 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!


misspell97%

Misspell Finds commonly misspelled English words