Preparing report...

Report for github.com/fabian-z/eporto

A+    Excellent!    Found 3 issues across 4 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!


golint25%

Golint is a linter for Go source code.

    • eporto/products.go
    • Line 26: warning: exported type ProductsState should have comment or be unexported (golint)
    • Line 35: warning: exported type Product should have comment or be unexported (golint)
    • Line 56: warning: exported type Country should have comment or be unexported (golint)
    • Line 61: warning: exported type PplUpdate should have comment or be unexported (golint)
    • eporto/epservice/epservice.go
    • Line 5: warning: package comment should be of the form "Package epservice ..." (golint)
    • Line 24: warning: exported type VoucherLayout should have comment or be unexported (golint)
    • Line 27: warning: exported var VoucherLayoutAddressZone should have comment or be unexported (golint)
    • Line 31: warning: comment on exported type Flag should be of the form "Flag ..." (with optional leading article) (golint)
    • Line 34: warning: comment on exported type ShippingList should be of the form "ShippingList ..." (with optional leading article) (golint)
    • Line 38: warning: exported var ShippingList0 should have comment or be unexported (golint)
    • Line 43: warning: comment on exported type PageFormatId should be of the form "PageFormatId ..." (with optional leading article) (golint)
    • Line 46: warning: comment on exported type WalletBalance should be of the form "WalletBalance ..." (with optional leading article) (golint)
    • Line 49: warning: comment on exported type AuthenticateUserErrorCodes should be of the form "AuthenticateUserErrorCodes ..." (with optional leading article) (golint)
    • Line 53: warning: exported const AuthenticateUserErrorCodesUnkownUser should have comment (or a comment on this block) or be unexported (golint)
    • Line 57: warning: comment on exported type ShoppingCartValidationErrorCodes should be of the form "ShoppingCartValidationErrorCodes ..." (with optional leading article) (golint)
    • Line 61: warning: exported const ShoppingCartValidationErrorCodesInvalidUser should have comment (or a comment on this block) or be unexported (golint)
    • Line 84: warning: comment on exported type ProductCode should be of the form "ProductCode ..." (with optional leading article) (golint)
    • Line 87: warning: comment on exported type ProductPrice should be of the form "ProductPrice ..." (with optional leading article) (golint)
    • Line 93: warning: comment on exported type ImageID should be of the form "ImageID ..." (with optional leading article) (golint)
    • Line 96: warning: comment on exported type ShoppingCartPrice should be of the form "ShoppingCartPrice ..." (with optional leading article) (golint)
    • Line 99: warning: comment on exported type Link should be of the form "Link ..." (with optional leading article) (golint)
    • Line 102: warning: comment on exported type UserToken should be of the form "UserToken ..." (with optional leading article) (golint)
    • Line 105: warning: exported type ShopOrderId should have comment or be unexported (golint)
    • Line 107: warning: comment on exported type RetrieveOrderErrorCodes should be of the form "RetrieveOrderErrorCodes ..." (with optional leading article) (golint)
    • Line 111: warning: exported const RetrieveOrderErrorCodesUnknownShopOrderId should have comment (or a comment on this block) or be unexported (golint)
    • Line 114: warning: comment on exported type Orientation should be of the form "Orientation ..." (with optional leading article) (golint)
    • Line 118: warning: exported const OrientationLANDSCAPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 123: warning: comment on exported type PageType should be of the form "PageType ..." (with optional leading article) (golint)
    • Line 127: warning: exported const PageTypeREGULARPAGE should have comment (or a comment on this block) or be unexported (golint)
    • Line 136: warning: exported type CreateShopOrderIdRequest should have comment or be unexported (golint)
    • Line 142: warning: exported type CreateShopOrderIdResponse should have comment or be unexported (golint)
    • Line 148: warning: exported type AuthenticateUserRequest should have comment or be unexported (golint)
    • Line 158: warning: exported type AuthenticateUserResponse should have comment or be unexported (golint)
    • Line 177: warning: exported type RetrievePreviewVoucherPDFRequest should have comment or be unexported (golint)
    • Line 193: warning: exported type RetrievePreviewVoucherPNGRequest should have comment or be unexported (golint)
    • Line 206: warning: exported type RetrievePreviewVoucherResponse should have comment or be unexported (golint)
    • Line 213: warning: exported type MotiveLink should have comment or be unexported (golint)
    • Line 223: warning: exported type RetrievePrivateGalleryRequest should have comment or be unexported (golint)
    • Line 230: warning: exported type RetrievePrivateGalleryResponse should have comment or be unexported (golint)
    • Line 236: warning: exported type ShoppingCartResponse should have comment or be unexported (golint)
    • Line 251: warning: exported type ShoppingCart should have comment or be unexported (golint)
    • Line 259: warning: exported type VoucherList should have comment or be unexported (golint)
    • Line 265: warning: exported type CheckoutShoppingCartPNGRequest should have comment or be unexported (golint)
    • Line 289: warning: exported type CheckoutShoppingCartPDFRequest should have comment or be unexported (golint)
    • Line 316: warning: exported type ShoppingCartValidationErrorInfo should have comment or be unexported (golint)
    • Line 324: warning: exported type AuthenticateUserException should have comment or be unexported (golint)
    • Line 332: warning: exported type IdentifyException should have comment or be unexported (golint)
    • Line 338: warning: exported type InvalidProductException should have comment or be unexported (golint)
    • Line 344: warning: exported type InvalidPageFormatException should have comment or be unexported (golint)
    • Line 350: warning: exported type InvalidMotiveException should have comment or be unexported (golint)
    • Line 356: warning: exported type ShoppingCartValidationException should have comment or be unexported (golint)
    • Line 364: warning: exported type RetrievePublicGalleryRequest should have comment or be unexported (golint)
    • Line 368: warning: exported type RetrievePublicGalleryResponse should have comment or be unexported (golint)
    • Line 374: warning: exported type ImageItem should have comment or be unexported (golint)
    • Line 390: warning: exported type GalleryItem should have comment or be unexported (golint)
    • Line 406: warning: exported type Name should have comment or be unexported (golint)
    • Line 414: warning: exported type PersonName should have comment or be unexported (golint)
    • Line 430: warning: exported type CompanyName should have comment or be unexported (golint)
    • Line 439: warning: exported type Address should have comment or be unexported (golint)
    • Line 461: warning: exported type NamedAddress should have comment or be unexported (golint)
    • Line 469: warning: exported type ShoppingCartPosition should have comment or be unexported (golint)
    • Line 489: warning: exported type AddressBinding should have comment or be unexported (golint)
    • Line 497: warning: exported type RetrieveOrderException should have comment or be unexported (golint)
    • Line 505: warning: exported type RetrieveOrderRequest should have comment or be unexported (golint)
    • Line 515: warning: exported type RetrieveOrderResponse should have comment or be unexported (golint)
    • Line 528: warning: exported type VoucherPosition should have comment or be unexported (golint)
    • Line 538: warning: exported type Position should have comment or be unexported (golint)
    • Line 546: warning: exported type ShoppingCartPDFPosition should have comment or be unexported (golint)
    • Line 554: warning: exported type VoucherType should have comment or be unexported (golint)
    • Line 562: warning: exported type RetrievePageFormatsRequest should have comment or be unexported (golint)
    • Line 566: warning: exported type RetrievePageFormatsResponse should have comment or be unexported (golint)
    • Line 572: warning: exported type PageFormat should have comment or be unexported (golint)
    • Line 613: warning: exported type BorderDimension should have comment or be unexported (golint)
    • Line 625: warning: exported type Dimension should have comment or be unexported (golint)
    • Line 633: warning: exported type OneClickForAppPortTypeV3 should have comment or be unexported (golint)
    • Line 637: warning: exported function NewOneClickForAppPortTypeV3 should have comment or be unexported (golint)
    • Line 653: warning: exported function NewOneClickForAppPortTypeV3WithTLSConfig should have comment or be unexported (golint)
    • Line 669: warning: exported method OneClickForAppPortTypeV3.AddHeader should have comment or be unexported (golint)
    • Line 673: warning: comment on exported method OneClickForAppPortTypeV3.SetHeader should be of the form "SetHeader ..." (golint)
    • Line 678: warning: exported method OneClickForAppPortTypeV3.RetrievePublicGallery should have comment or be unexported (golint)
    • Line 693: warning: exported method OneClickForAppPortTypeV3.CheckoutShoppingCartPDF should have comment or be unexported (golint)
    • Line 708: warning: exported method OneClickForAppPortTypeV3.CheckoutShoppingCartPNG should have comment or be unexported (golint)
    • Line 722: warning: exported method OneClickForAppPortTypeV3.AuthenticateUser should have comment or be unexported (golint)
    • Line 738: warning: exported method OneClickForAppPortTypeV3.RetrievePreviewVoucherPDF should have comment or be unexported (golint)
    • Line 753: warning: exported method OneClickForAppPortTypeV3.RetrievePreviewVoucherPNG should have comment or be unexported (golint)
    • Line 767: warning: exported method OneClickForAppPortTypeV3.RetrievePrivateGallery should have comment or be unexported (golint)
    • Line 782: warning: exported method OneClickForAppPortTypeV3.RetrieveOrder should have comment or be unexported (golint)
    • Line 796: warning: exported method OneClickForAppPortTypeV3.CreateShopOrderId should have comment or be unexported (golint)
    • Line 806: warning: exported method OneClickForAppPortTypeV3.RetrievePageFormats should have comment or be unexported (golint)
    • Line 822: warning: exported type SOAPEnvelope should have comment or be unexported (golint)
    • Line 828: warning: exported type SOAPHeader should have comment or be unexported (golint)
    • Line 837: warning: exported type SOAPBody should have comment or be unexported (golint)
    • Line 844: warning: exported type SOAPFault should have comment or be unexported (golint)
    • Line 853: warning: exported type SOAPClient should have comment or be unexported (golint)
    • Line 860: warning: exported method SOAPBody.UnmarshalXML should have comment or be unexported (golint)
    • Line 914: warning: exported function NewSOAPClient should have comment or be unexported (golint)
    • Line 918: warning: exported function NewSOAPClientWithTLSConfig should have comment or be unexported (golint)
    • Line 926: warning: exported method SOAPClient.AddHeader should have comment or be unexported (golint)
    • Line 934: warning: exported method SOAPClient.Call should have comment or be unexported (golint)
    • Line 1018: warning: exported type AuthenticationData should have comment or be unexported (golint)
    • eporto/main.go
    • Line 37: warning: exported type StampData should have comment or be unexported (golint)
    • Line 147: warning: exported type Handler 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!