Preparing report...

Report for evgenykuznetsov.org/go/gphotoslibrary

(v1.0.1)

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


golint95%

Golint is a linter for Go source code.

    • /evgenykuznetsov.org/go/gphotoslibrary/library.go
    • Line 53: warning: exported function New should have comment or be unexported (golint)
    • Line 64: warning: exported type Service should have comment or be unexported (golint)
    • Line 83: warning: exported function NewAlbumsService should have comment or be unexported (golint)
    • Line 88: warning: exported type AlbumsService should have comment or be unexported (golint)
    • Line 92: warning: exported function NewMediaItemsService should have comment or be unexported (golint)
    • Line 97: warning: exported type MediaItemsService should have comment or be unexported (golint)
    • Line 101: warning: exported function NewSharedAlbumsService should have comment or be unexported (golint)
    • Line 106: warning: exported type SharedAlbumsService should have comment or be unexported (golint)
    • Line 110: warning: comment on exported type AddEnrichmentToAlbumRequest should be of the form "AddEnrichmentToAlbumRequest ..." (with optional leading article) (golint)
    • Line 136: warning: exported method AddEnrichmentToAlbumRequest.MarshalJSON should have comment or be unexported (golint)
    • Line 142: warning: exported type AddEnrichmentToAlbumResponse should have comment or be unexported (golint)
    • Line 168: warning: exported method AddEnrichmentToAlbumResponse.MarshalJSON should have comment or be unexported (golint)
    • Line 174: warning: comment on exported type Album should be of the form "Album ..." (with optional leading article) (golint)
    • Line 245: warning: exported method Album.MarshalJSON should have comment or be unexported (golint)
    • Line 251: warning: comment on exported type AlbumPosition should be of the form "AlbumPosition ..." (with optional leading article) (golint)
    • Line 291: warning: exported method AlbumPosition.MarshalJSON should have comment or be unexported (golint)
    • Line 297: warning: comment on exported type BatchCreateMediaItemsRequest should be of the form "BatchCreateMediaItemsRequest ..." (with optional leading article) (golint)
    • Line 340: warning: exported method BatchCreateMediaItemsRequest.MarshalJSON should have comment or be unexported (golint)
    • Line 346: warning: exported type BatchCreateMediaItemsResponse should have comment or be unexported (golint)
    • Line 373: warning: exported method BatchCreateMediaItemsResponse.MarshalJSON should have comment or be unexported (golint)
    • Line 379: warning: comment on exported type ContentFilter should be of the form "ContentFilter ..." (with optional leading article) (golint)
    • Line 497: warning: exported method ContentFilter.MarshalJSON should have comment or be unexported (golint)
    • Line 503: warning: comment on exported type ContributorInfo should be of the form "ContributorInfo ..." (with optional leading article) (golint)
    • Line 532: warning: exported method ContributorInfo.MarshalJSON should have comment or be unexported (golint)
    • Line 538: warning: comment on exported type CreateAlbumRequest should be of the form "CreateAlbumRequest ..." (with optional leading article) (golint)
    • Line 560: warning: exported method CreateAlbumRequest.MarshalJSON should have comment or be unexported (golint)
    • Line 566: warning: comment on exported type Date should be of the form "Date ..." (with optional leading article) (golint)
    • Line 606: warning: exported method Date.MarshalJSON should have comment or be unexported (golint)
    • Line 612: warning: comment on exported type DateFilter should be of the form "DateFilter ..." (with optional leading article) (golint)
    • Line 644: warning: exported method DateFilter.MarshalJSON should have comment or be unexported (golint)
    • Line 650: warning: comment on exported type DateRange should be of the form "DateRange ..." (with optional leading article) (golint)
    • Line 681: warning: exported method DateRange.MarshalJSON should have comment or be unexported (golint)
    • Line 687: warning: comment on exported type EnrichmentItem should be of the form "EnrichmentItem ..." (with optional leading article) (golint)
    • Line 709: warning: exported method EnrichmentItem.MarshalJSON should have comment or be unexported (golint)
    • Line 715: warning: comment on exported type Filters should be of the form "Filters ..." (with optional leading article) (golint)
    • Line 751: warning: exported method Filters.MarshalJSON should have comment or be unexported (golint)
    • Line 757: warning: comment on exported type JoinSharedAlbumRequest should be of the form "JoinSharedAlbumRequest ..." (with optional leading article) (golint)
    • Line 782: warning: exported method JoinSharedAlbumRequest.MarshalJSON should have comment or be unexported (golint)
    • Line 788: warning: comment on exported type JoinSharedAlbumResponse should be of the form "JoinSharedAlbumResponse ..." (with optional leading article) (golint)
    • Line 796: warning: comment on exported type LatLng should be of the form "LatLng ..." (with optional leading article) (golint)
    • Line 831: warning: exported method LatLng.MarshalJSON should have comment or be unexported (golint)
    • Line 837: warning: exported method LatLng.UnmarshalJSON should have comment or be unexported (golint)
    • Line 853: warning: exported type ListAlbumsResponse should have comment or be unexported (golint)
    • Line 883: warning: exported method ListAlbumsResponse.MarshalJSON should have comment or be unexported (golint)
    • Line 889: warning: exported type ListSharedAlbumsResponse should have comment or be unexported (golint)
    • Line 920: warning: exported method ListSharedAlbumsResponse.MarshalJSON should have comment or be unexported (golint)
    • Line 926: warning: comment on exported type Location should be of the form "Location ..." (with optional leading article) (golint)
    • Line 951: warning: exported method Location.MarshalJSON should have comment or be unexported (golint)
    • Line 957: warning: comment on exported type LocationEnrichment should be of the form "LocationEnrichment ..." (with optional leading article) (golint)
    • Line 979: warning: exported method LocationEnrichment.MarshalJSON should have comment or be unexported (golint)
    • Line 985: warning: comment on exported type MapEnrichment should be of the form "MapEnrichment ..." (with optional leading article) (golint)
    • Line 1011: warning: exported method MapEnrichment.MarshalJSON should have comment or be unexported (golint)
    • Line 1017: warning: comment on exported type MediaItem should be of the form "MediaItem ..." (with optional leading article) (golint)
    • Line 1078: warning: exported method MediaItem.MarshalJSON should have comment or be unexported (golint)
    • Line 1084: warning: comment on exported type MediaMetadata should be of the form "MediaMetadata ..." (with optional leading article) (golint)
    • Line 1120: warning: exported method MediaMetadata.MarshalJSON should have comment or be unexported (golint)
    • Line 1126: warning: comment on exported type MediaTypeFilter should be of the form "MediaTypeFilter ..." (with optional leading article) (golint)
    • Line 1169: warning: exported method MediaTypeFilter.MarshalJSON should have comment or be unexported (golint)
    • Line 1175: warning: comment on exported type NewEnrichmentItem should be of the form "NewEnrichmentItem ..." (with optional leading article) (golint)
    • Line 1206: warning: exported method NewEnrichmentItem.MarshalJSON should have comment or be unexported (golint)
    • Line 1212: warning: comment on exported type NewMediaItem should be of the form "NewMediaItem ..." (with optional leading article) (golint)
    • Line 1242: warning: exported method NewMediaItem.MarshalJSON should have comment or be unexported (golint)
    • Line 1248: warning: comment on exported type NewMediaItemResult should be of the form "NewMediaItemResult ..." (with optional leading article) (golint)
    • Line 1282: warning: exported method NewMediaItemResult.MarshalJSON should have comment or be unexported (golint)
    • Line 1288: warning: comment on exported type Photo should be of the form "Photo ..." (with optional leading article) (golint)
    • Line 1328: warning: exported method Photo.MarshalJSON should have comment or be unexported (golint)
    • Line 1334: warning: exported method Photo.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1350: warning: comment on exported type SearchMediaItemsRequest should be of the form "SearchMediaItemsRequest ..." (with optional leading article) (golint)
    • Line 1411: warning: exported method SearchMediaItemsRequest.MarshalJSON should have comment or be unexported (golint)
    • Line 1417: warning: exported type SearchMediaItemsResponse should have comment or be unexported (golint)
    • Line 1450: warning: exported method SearchMediaItemsResponse.MarshalJSON should have comment or be unexported (golint)
    • Line 1456: warning: comment on exported type ShareAlbumRequest should be of the form "ShareAlbumRequest ..." (with optional leading article) (golint)
    • Line 1480: warning: exported method ShareAlbumRequest.MarshalJSON should have comment or be unexported (golint)
    • Line 1486: warning: exported type ShareAlbumResponse should have comment or be unexported (golint)
    • Line 1511: warning: exported method ShareAlbumResponse.MarshalJSON should have comment or be unexported (golint)
    • Line 1517: warning: comment on exported type ShareInfo should be of the form "ShareInfo ..." (with optional leading article) (golint)
    • Line 1555: warning: exported method ShareInfo.MarshalJSON should have comment or be unexported (golint)
    • Line 1561: warning: comment on exported type SharedAlbumOptions should be of the form "SharedAlbumOptions ..." (with optional leading article) (golint)
    • Line 1592: warning: exported method SharedAlbumOptions.MarshalJSON should have comment or be unexported (golint)
    • Line 1598: warning: comment on exported type SimpleMediaItem should be of the form "SimpleMediaItem ..." (with optional leading article) (golint)
    • Line 1622: warning: exported method SimpleMediaItem.MarshalJSON should have comment or be unexported (golint)
    • Line 1628: warning: comment on exported type Status should be of the form "Status ..." (with optional leading article) (golint)
    • Line 1741: warning: exported method Status.MarshalJSON should have comment or be unexported (golint)
    • Line 1747: warning: comment on exported type TextEnrichment should be of the form "TextEnrichment ..." (with optional leading article) (golint)
    • Line 1769: warning: exported method TextEnrichment.MarshalJSON should have comment or be unexported (golint)
    • Line 1775: warning: comment on exported type Video should be of the form "Video ..." (with optional leading article) (golint)
    • Line 1817: warning: exported method Video.MarshalJSON should have comment or be unexported (golint)
    • Line 1823: warning: exported method Video.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1839: warning: exported type AlbumsAddEnrichmentCall should have comment or be unexported (golint)
    • Line 1843: warning: don't use underscores in Go names; struct field urlParams_ should be urlParams (golint)
    • Line 1844: warning: don't use underscores in Go names; struct field ctx_ should be ctx (golint)
    • Line 1845: warning: don't use underscores in Go names; struct field header_ should be header (golint)
    • Line 1848: warning: comment on exported method AlbumsService.AddEnrichment should be of the form "AddEnrichment ..." (golint)
    • Line 1977: warning: exported type AlbumsCreateCall should have comment or be unexported (golint)
    • Line 1980: warning: don't use underscores in Go names; struct field urlParams_ should be urlParams (golint)
    • Line 1981: warning: don't use underscores in Go names; struct field ctx_ should be ctx (golint)
    • Line 1982: warning: don't use underscores in Go names; struct field header_ should be header (golint)
    • Line 1985: warning: comment on exported method AlbumsService.Create should be of the form "Create ..." (golint)
    • Line 2099: warning: exported type AlbumsGetCall should have comment or be unexported (golint)
    • Line 2102: warning: don't use underscores in Go names; struct field urlParams_ should be urlParams (golint)
    • Line 2103: warning: don't use underscores in Go names; struct field ifNoneMatch_ should be ifNoneMatch (golint)
    • Line 2104: warning: don't use underscores in Go names; struct field ctx_ should be ctx (golint)
    • Line 2105: warning: don't use underscores in Go names; struct field header_ should be header (golint)
    • Line 2108: warning: comment on exported method AlbumsService.Get should be of the form "Get ..." (golint)
    • Line 2241: warning: exported type AlbumsListCall should have comment or be unexported (golint)
    • Line 2243: warning: don't use underscores in Go names; struct field urlParams_ should be urlParams (golint)
    • Line 2244: warning: don't use underscores in Go names; struct field ifNoneMatch_ should be ifNoneMatch (golint)
    • Line 2245: warning: don't use underscores in Go names; struct field ctx_ should be ctx (golint)
    • Line 2246: warning: don't use underscores in Go names; struct field header_ should be header (golint)
    • Line 2249: warning: comment on exported method AlbumsService.List should be of the form "List ..." (golint)
    • Line 2423: warning: exported type AlbumsShareCall should have comment or be unexported (golint)
    • Line 2427: warning: don't use underscores in Go names; struct field urlParams_ should be urlParams (golint)
    • Line 2428: warning: don't use underscores in Go names; struct field ctx_ should be ctx (golint)
    • Line 2429: warning: don't use underscores in Go names; struct field header_ should be header (golint)
    • Line 2432: warning: comment on exported method AlbumsService.Share should be of the form "Share ..." (golint)
    • Line 2562: warning: exported type MediaItemsBatchCreateCall should have comment or be unexported (golint)
    • Line 2565: warning: don't use underscores in Go names; struct field urlParams_ should be urlParams (golint)
    • Line 2566: warning: don't use underscores in Go names; struct field ctx_ should be ctx (golint)
    • Line 2567: warning: don't use underscores in Go names; struct field header_ should be header (golint)
    • Line 2570: warning: comment on exported method MediaItemsService.BatchCreate should be of the form "BatchCreate ..." (golint)
    • Line 2698: warning: exported type MediaItemsGetCall should have comment or be unexported (golint)
    • Line 2701: warning: don't use underscores in Go names; struct field urlParams_ should be urlParams (golint)
    • Line 2702: warning: don't use underscores in Go names; struct field ifNoneMatch_ should be ifNoneMatch (golint)
    • Line 2703: warning: don't use underscores in Go names; struct field ctx_ should be ctx (golint)
    • Line 2704: warning: don't use underscores in Go names; struct field header_ should be header (golint)
    • Line 2707: warning: comment on exported method MediaItemsService.Get should be of the form "Get ..." (golint)
    • Line 2840: warning: exported type MediaItemsSearchCall should have comment or be unexported (golint)
    • Line 2843: warning: don't use underscores in Go names; struct field urlParams_ should be urlParams (golint)
    • Line 2844: warning: don't use underscores in Go names; struct field ctx_ should be ctx (golint)
    • Line 2845: warning: don't use underscores in Go names; struct field header_ should be header (golint)
    • Line 2848: warning: comment on exported method MediaItemsService.Search should be of the form "Search ..." (golint)
    • Line 2998: warning: exported type SharedAlbumsJoinCall should have comment or be unexported (golint)
    • Line 3001: warning: don't use underscores in Go names; struct field urlParams_ should be urlParams (golint)
    • Line 3002: warning: don't use underscores in Go names; struct field ctx_ should be ctx (golint)
    • Line 3003: warning: don't use underscores in Go names; struct field header_ should be header (golint)
    • Line 3006: warning: comment on exported method SharedAlbumsService.Join should be of the form "Join ..." (golint)
    • Line 3118: warning: exported type SharedAlbumsListCall should have comment or be unexported (golint)
    • Line 3120: warning: don't use underscores in Go names; struct field urlParams_ should be urlParams (golint)
    • Line 3121: warning: don't use underscores in Go names; struct field ifNoneMatch_ should be ifNoneMatch (golint)
    • Line 3122: warning: don't use underscores in Go names; struct field ctx_ should be ctx (golint)
    • Line 3123: warning: don't use underscores in Go names; struct field header_ should be header (golint)
    • Line 3126: warning: comment on exported method SharedAlbumsService.List should be of the form "List ..." (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!


misspell99%

Misspell Finds commonly misspelled English words