Preparing report...

Report for github.com/bitmark-inc/bitmark-sdk-go

A+    Excellent!    Found 21 issues across 33 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!


gocyclo90%

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.


golint39%

Golint is a linter for Go source code.

    • bitmark-sdk-go/utils/pack.go
    • Line 1: warning: package comment should be of the form "Package utils ..." (golint)
    • Line 28: warning: exported type Direction should have comment or be unexported (golint)
    • Line 31: warning: exported const Earlier should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported function Pack should have comment or be unexported (golint)
    • bitmark-sdk-go/account/account.go
    • Line 1: warning: package comment should be of the form "Package account ..." (golint)
    • Line 23: warning: exported type Version should have comment or be unexported (golint)
    • Line 26: warning: exported const V1 should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported const ChecksumLength should have comment (or a comment on this block) or be unexported (golint)
    • Line 80: warning: exported var ErrWrongNetwork should have comment or be unexported (golint)
    • Line 87: warning: exported type Account should have comment or be unexported (golint)
    • Line 97: warning: exported function New should have comment or be unexported (golint)
    • Line 122: warning: exported function FromSeed should have comment or be unexported (golint)
    • Line 184: warning: exported function FromRecoveryPhrase should have comment or be unexported (golint)
    • Line 267: warning: exported type AccountV1 should have comment or be unexported (golint)
    • Line 274: warning: exported function NewAccountV1 should have comment or be unexported (golint)
    • Line 290: warning: exported method AccountV1.Network should have comment or be unexported (golint)
    • Line 294: warning: exported method AccountV1.Seed should have comment or be unexported (golint)
    • Line 312: warning: exported method AccountV1.RecoveryPhrase should have comment or be unexported (golint)
    • Line 329: warning: exported method AccountV1.AccountNumber should have comment or be unexported (golint)
    • Line 336: warning: exported method AccountV1.Bytes should have comment or be unexported (golint)
    • Line 344: warning: exported method AccountV1.Sign should have comment or be unexported (golint)
    • Line 348: warning: exported method AccountV1.Version should have comment or be unexported (golint)
    • Line 352: warning: exported type AccountV2 should have comment or be unexported (golint)
    • Line 359: warning: exported function NewAccountV2 should have comment or be unexported (golint)
    • Line 420: warning: exported method AccountV2.Network should have comment or be unexported (golint)
    • Line 424: warning: exported method AccountV2.Seed should have comment or be unexported (golint)
    • Line 436: warning: exported method AccountV2.RecoveryPhrase should have comment or be unexported (golint)
    • Line 445: warning: exported method AccountV2.AccountNumber should have comment or be unexported (golint)
    • Line 452: warning: exported method AccountV2.Bytes should have comment or be unexported (golint)
    • Line 460: warning: exported method AccountV2.Sign should have comment or be unexported (golint)
    • Line 464: warning: exported method AccountV2.Version should have comment or be unexported (golint)
    • Line 468: warning: exported function ValidateAccountNumber should have comment or be unexported (golint)
    • Line 473: warning: exported function Verify should have comment or be unexported (golint)
    • bitmark-sdk-go/bitmark/params.go
    • Line 1: warning: package comment should be of the form "Package bitmark ..." (golint)
    • Line 20: warning: exported type OfferResponseAction should have comment or be unexported (golint)
    • Line 22: warning: exported const Accept should have comment or be unexported (golint)
    • Line 23: warning: exported const Reject should have comment or be unexported (golint)
    • Line 24: warning: exported const Cancel should have comment or be unexported (golint)
    • Line 28: warning: exported type QuantityOptions should have comment or be unexported (golint)
    • Line 33: warning: exported type IssuanceParams should have comment or be unexported (golint)
    • Line 37: warning: exported type IssueRequest should have comment or be unexported (golint)
    • Line 44: warning: exported function NewIssuanceParams should have comment or be unexported (golint)
    • Line 92: warning: exported type TransferParams should have comment or be unexported (golint)
    • Line 96: warning: exported type TransferRequest should have comment or be unexported (golint)
    • Line 110: warning: exported function NewTransferParams should have comment or be unexported (golint)
    • Line 139: warning: exported method TransferParams.Sign should have comment or be unexported (golint)
    • Line 148: warning: comment on exported type ShareRequest should be of the form "ShareRequest ..." (with optional leading article) (golint)
    • Line 189: warning: comment on exported type GrantRequest should be of the form "GrantRequest ..." (with optional leading article) (golint)
    • Line 234: warning: comment on exported type CountersignedGrantRequest should be of the form "CountersignedGrantRequest ..." (with optional leading article) (golint)
    • Line 296: warning: comment on exported type SwapRequest should be of the form "SwapRequest ..." (with optional leading article) (golint)
    • Line 348: warning: comment on exported type CountersignedSwapRequest should be of the form "CountersignedSwapRequest ..." (with optional leading article) (golint)
    • Line 361: warning: comment on exported type SwapResponseParams should be of the form "SwapResponseParams ..." (with optional leading article) (golint)
    • Line 399: warning: exported type OfferParams should have comment or be unexported (golint)
    • Line 406: warning: exported function NewOfferParams should have comment or be unexported (golint)
    • Line 441: warning: exported method OfferParams.Sign should have comment or be unexported (golint)
    • Line 450: warning: exported type CountersignedTransferRequest should have comment or be unexported (golint)
    • Line 458: warning: exported type ResponseParams should have comment or be unexported (golint)
    • Line 466: warning: exported function NewTransferResponseParams should have comment or be unexported (golint)
    • Line 475: warning: exported method ResponseParams.Sign should have comment or be unexported (golint)
    • bitmark-sdk-go/bitmark/structs.go
    • Line 1: warning: package comment should be of the form "Package bitmark ..." (golint)
    • Line 12: warning: exported type Bitmark should have comment or be unexported (golint)
    • Line 27: warning: exported type TransferOffer should have comment or be unexported (golint)
    • Line 36: warning: exported type Share should have comment or be unexported (golint)
    • Line 43: warning: exported type ShareOffer should have comment or be unexported (golint)
    • bitmark-sdk-go/tx/client.go
    • Line 1: warning: package comment should be of the form "Package tx ..." (golint)
    • Line 18: warning: exported function Get should have comment or be unexported (golint)
    • Line 39: warning: exported function GetWithAsset should have comment or be unexported (golint)
    • Line 62: warning: exported function List should have comment or be unexported (golint)
    • Line 88: warning: exported type QueryParamsBuilder should have comment or be unexported (golint)
    • Line 93: warning: exported function NewQueryParamsBuilder should have comment or be unexported (golint)
    • Line 97: warning: exported method QueryParamsBuilder.OwnedBy should have comment or be unexported (golint)
    • Line 102: warning: exported method QueryParamsBuilder.OwnedByWithTransient should have comment or be unexported (golint)
    • Line 108: warning: exported method QueryParamsBuilder.ReferencedBitmark should have comment or be unexported (golint)
    • Line 113: warning: exported method QueryParamsBuilder.ReferencedBlockNumber should have comment or be unexported (golint)
    • Line 118: warning: exported method QueryParamsBuilder.ReferencedAsset should have comment or be unexported (golint)
    • Line 123: warning: exported method QueryParamsBuilder.LoadAsset should have comment or be unexported (golint)
    • Line 128: warning: exported method QueryParamsBuilder.Pending should have comment or be unexported (golint)
    • Line 133: warning: exported method QueryParamsBuilder.Limit should have comment or be unexported (golint)
    • Line 141: warning: exported method QueryParamsBuilder.At should have comment or be unexported (golint)
    • Line 146: warning: exported method QueryParamsBuilder.To should have comment or be unexported (golint)
    • Line 155: warning: exported method QueryParamsBuilder.Build should have comment or be unexported (golint)
    • bitmark-sdk-go/asset/client.go
    • Line 1: warning: package comment should be of the form "Package asset ..." (golint)
    • Line 29: warning: exported function Register should have comment or be unexported (golint)
    • Line 50: warning: exported function Get should have comment or be unexported (golint)
    • Line 68: warning: exported function List should have comment or be unexported (golint)
    • Line 93: warning: exported type QueryParamsBuilder should have comment or be unexported (golint)
    • Line 98: warning: exported function NewQueryParamsBuilder should have comment or be unexported (golint)
    • Line 102: warning: exported method QueryParamsBuilder.RegisteredBy should have comment or be unexported (golint)
    • Line 107: warning: exported method QueryParamsBuilder.AssetIDs should have comment or be unexported (golint)
    • Line 114: warning: exported method QueryParamsBuilder.Pending should have comment or be unexported (golint)
    • Line 119: warning: exported method QueryParamsBuilder.Limit should have comment or be unexported (golint)
    • Line 127: warning: exported method QueryParamsBuilder.At should have comment or be unexported (golint)
    • Line 132: warning: exported method QueryParamsBuilder.To should have comment or be unexported (golint)
    • Line 137: warning: exported method QueryParamsBuilder.Build should have comment or be unexported (golint)
    • bitmark-sdk-go/asset/params.go
    • Line 1: warning: package comment should be of the form "Package asset ..." (golint)
    • Line 36: warning: exported var ErrInvalidNameLength should have comment or be unexported (golint)
    • Line 42: warning: exported type RegistrationParams should have comment or be unexported (golint)
    • Line 50: warning: exported function NewRegistrationParams should have comment or be unexported (golint)
    • Line 81: warning: exported method RegistrationParams.SetFingerprintFromFile should have comment or be unexported (golint)
    • Line 90: warning: exported method RegistrationParams.SetFingerprintFromReader should have comment or be unexported (golint)
    • Line 101: warning: exported method RegistrationParams.SetFingerprintFromReaders should have comment or be unexported (golint)
    • Line 123: warning: exported method RegistrationParams.SetFingerprintFromDataArray should have comment or be unexported (golint)
    • Line 159: warning: exported method RegistrationParams.SetFingerprintFromData should have comment or be unexported (golint)
    • Line 168: warning: exported method RegistrationParams.SetFingerprint should have comment or be unexported (golint)
    • Line 176: warning: exported method RegistrationParams.Sign should have comment or be unexported (golint)
    • bitmark-sdk-go/bitmark/client.go
    • Line 1: warning: package comment should be of the form "Package bitmark ..." (golint)
    • Line 24: warning: exported function Issue should have comment or be unexported (golint)
    • Line 54: warning: exported function Transfer should have comment or be unexported (golint)
    • Line 75: warning: exported function Offer should have comment or be unexported (golint)
    • Line 92: warning: exported function Respond should have comment or be unexported (golint)
    • Line 122: warning: exported function CreateShares should have comment or be unexported (golint)
    • Line 146: warning: exported function GrantShare should have comment or be unexported (golint)
    • Line 166: warning: exported function ReplyShareOffer should have comment or be unexported (golint)
    • Line 188: warning: exported function Get should have comment or be unexported (golint)
    • Line 209: warning: exported function GetWithAsset should have comment or be unexported (golint)
    • Line 232: warning: exported function List should have comment or be unexported (golint)
    • Line 258: warning: exported function GetShareBalance should have comment or be unexported (golint)
    • Line 279: warning: exported function ListShareOffers should have comment or be unexported (golint)
    • Line 305: warning: exported type QueryParamsBuilder should have comment or be unexported (golint)
    • Line 310: warning: exported function NewQueryParamsBuilder should have comment or be unexported (golint)
    • Line 314: warning: exported method QueryParamsBuilder.OwnedBy should have comment or be unexported (golint)
    • Line 319: warning: exported method QueryParamsBuilder.OwnedByWithTransient should have comment or be unexported (golint)
    • Line 325: warning: exported method QueryParamsBuilder.IssuedBy should have comment or be unexported (golint)
    • Line 330: warning: exported method QueryParamsBuilder.Pending should have comment or be unexported (golint)
    • Line 335: warning: exported method QueryParamsBuilder.OfferFrom should have comment or be unexported (golint)
    • Line 340: warning: exported method QueryParamsBuilder.OfferTo should have comment or be unexported (golint)
    • Line 345: warning: exported method QueryParamsBuilder.BitmarkIDs should have comment or be unexported (golint)
    • Line 352: warning: exported method QueryParamsBuilder.ReferencedAsset should have comment or be unexported (golint)
    • Line 357: warning: exported method QueryParamsBuilder.LoadAsset should have comment or be unexported (golint)
    • Line 362: warning: exported method QueryParamsBuilder.Limit should have comment or be unexported (golint)
    • Line 370: warning: exported method QueryParamsBuilder.At should have comment or be unexported (golint)
    • Line 375: warning: exported method QueryParamsBuilder.To should have comment or be unexported (golint)
    • Line 384: warning: exported method QueryParamsBuilder.Build should have comment or be unexported (golint)
    • bitmark-sdk-go/account/keypair.go
    • Line 1: warning: package comment should be of the form "Package account ..." (golint)
    • Line 18: warning: exported const AlgEd25519 should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type AsymmetricKey should have comment or be unexported (golint)
    • Line 28: warning: exported type AuthKey should have comment or be unexported (golint)
    • Line 34: warning: exported type ED25519AuthKey should have comment or be unexported (golint)
    • Line 38: warning: exported method ED25519AuthKey.PrivateKeyBytes should have comment or be unexported (golint)
    • Line 42: warning: exported method ED25519AuthKey.PublicKeyBytes should have comment or be unexported (golint)
    • Line 46: warning: exported method ED25519AuthKey.Algorithm should have comment or be unexported (golint)
    • Line 50: warning: exported method ED25519AuthKey.Sign should have comment or be unexported (golint)
    • Line 54: warning: exported function NewAuthKey should have comment or be unexported (golint)
    • Line 61: warning: exported type EncrKey should have comment or be unexported (golint)
    • Line 67: warning: exported type NaclBoxEncrKey should have comment or be unexported (golint)
    • Line 72: warning: exported method NaclBoxEncrKey.PrivateKeyBytes should have comment or be unexported (golint)
    • Line 76: warning: exported method NaclBoxEncrKey.PublicKeyBytes should have comment or be unexported (golint)
    • Line 80: warning: exported method NaclBoxEncrKey.Algorithm should have comment or be unexported (golint)
    • Line 84: warning: exported method NaclBoxEncrKey.Encrypt should have comment or be unexported (golint)
    • Line 97: warning: exported method NaclBoxEncrKey.Decrypt should have comment or be unexported (golint)
    • Line 112: warning: exported function NewEncrKey should have comment or be unexported (golint)
    • bitmark-sdk-go/test/base_test_suite.go
    • Line 1: warning: package comment should be of the form "Package test ..." (golint)
    • Line 20: warning: exported type BaseTestSuite should have comment or be unexported (golint)
    • Line 29: warning: exported method BaseTestSuite.SetupSuite should have comment or be unexported (golint)
    • Line 39: warning: exported method BaseTestSuite.TearDownTest should have comment or be unexported (golint)
    • bitmark-sdk-go/encoding/base58.go
    • Line 1: warning: package comment should be of the form "Package encoding ..." (golint)
    • Line 17: warning: exported function FromBase58 should have comment or be unexported (golint)
    • Line 50: warning: exported function ToBase58 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!