Preparing report...

Report for github.com/pinealctx/opensea-go

(v0.0.5)

A+    Excellent!    Found 20 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!


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!


golint33%

Golint is a linter for Go source code.

    • asset.go
    • Line 23: warning: exported type AssetRequest should have comment or be unexported (golint)
    • collection.go
    • Line 24: warning: exported type CollectionRequest should have comment or be unexported (golint)
    • Line 28: warning: exported type CollectionResponse should have comment or be unexported (golint)
    • orders.go
    • Line 23: warning: exported type OrderRequest should have comment or be unexported (golint)
    • Line 75: warning: exported type OrderResponse should have comment or be unexported (golint)
    • response.go
    • Line 10: warning: exported var ErrNotFound should have comment or be unexported (golint)
    • Line 12: warning: exported function WrapperRspError should have comment or be unexported (golint)
    • Line 26: warning: exported function ParseRsp should have comment or be unexported (golint)
    • model/bundle.go
    • Line 18: warning: exported type SellOrder should have comment or be unexported (golint)
    • Line 26: warning: exported type BundleAccount should have comment or be unexported (golint)
    • Line 31: warning: exported type SellOrderMetadata should have comment or be unexported (golint)
    • Line 35: warning: exported type SellOrderMetadataBundle should have comment or be unexported (golint)
    • model/collection.go
    • Line 69: warning: exported type PaymentToken should have comment or be unexported (golint)
    • Line 80: warning: exported type PrimaryAssetContract should have comment or be unexported (golint)
    • Line 105: warning: exported type CollectionStats should have comment or be unexported (golint)
    • Line 129: warning: exported type DisplayData should have comment or be unexported (golint)
    • events.go
    • Line 24: warning: exported type EventsRequest should have comment or be unexported (golint)
    • Line 53: warning: exported type EventsResponse should have comment or be unexported (golint)
    • option.go
    • Line 15: warning: exported type OptionFn should have comment or be unexported (golint)
    • Line 17: warning: exported function WithTestNet should have comment or be unexported (golint)
    • Line 23: warning: exported function WithProdNet should have comment or be unexported (golint)
    • Line 29: warning: exported function WithAPIKey should have comment or be unexported (golint)
    • assets.go
    • Line 23: warning: exported type AssetsRequest should have comment or be unexported (golint)
    • Line 52: warning: exported type AssetsResponse should have comment or be unexported (golint)
    • collections.go
    • Line 23: warning: exported type CollectionsRequest should have comment or be unexported (golint)
    • Line 33: warning: exported type CollectionsResponse should have comment or be unexported (golint)
    • model/contract.go
    • Line 8: warning: exported const Fungible should have comment (or a comment on this block) or be unexported (golint)
    • model/event.go
    • Line 15: warning: exported const ETBidEntered should have comment (or a comment on this block) or be unexported (golint)
    • model/order.go
    • Line 5: warning: exported type Side should have comment or be unexported (golint)
    • Line 8: warning: exported const SideBuy should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported type HowToCall should have comment or be unexported (golint)
    • Line 26: warning: exported const Call should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported type FeeMethod should have comment or be unexported (golint)
    • Line 33: warning: exported const ProtocolFee should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported type Order should have comment or be unexported (golint)
    • Line 86: warning: exported type Metadata should have comment or be unexported (golint)
    • model/trait.go
    • Line 3: warning: exported type TraitDisplayType should have comment or be unexported (golint)
    • Line 6: warning: exported const TraitDTNumber should have comment (or a comment on this block) or be unexported (golint)
    • bundles.go
    • Line 25: warning: exported type BundlesRequest should have comment or be unexported (golint)
    • Line 46: warning: exported type BundlesResponse should have comment or be unexported (golint)
    • contract.go
    • Line 23: warning: exported type ContractRequest should have comment or be unexported (golint)
    • model/account.go
    • Line 3: warning: exported type User should have comment or be unexported (golint)
    • Line 7: warning: exported type Account should have comment or be unexported (golint)
    • model/asset.go
    • Line 54: warning: exported type Transaction should have comment or be unexported (golint)
    • Line 65: warning: exported type LastSale should have comment or be unexported (golint)
    • Line 78: warning: exported type TopOwnership should have comment or be unexported (golint)
    • Line 83: warning: exported type AssetAddress should have comment or be unexported (golint)
    • Line 88: warning: exported type AssetToken should have comment or be unexported (golint)
    • opensea.go
    • Line 8: warning: exported type Client should have comment or be unexported (golint)
    • Line 12: warning: exported function New 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!