Preparing report...

Report for github.com/cbsinteractive/video-transcoding-api

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


gocyclo95%

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.


golint93%

Golint is a linter for Go source code.

    • video-transcoding-api/provider/flock/flock.go
    • Line 39: warning: exported type JobRequest should have comment or be unexported (golint)
    • Line 43: warning: exported type JobSpec should have comment or be unexported (golint)
    • Line 48: warning: exported type JobOutput should have comment or be unexported (golint)
    • Line 64: warning: exported type NewJobResponse should have comment or be unexported (golint)
    • Line 69: warning: exported type JobResponse should have comment or be unexported (golint)
    • Line 81: warning: exported type JobResponseOutput should have comment or be unexported (golint)
    • video-transcoding-api/client/transcodingapi/provider_dto.go
    • Line 9: warning: comment on exported type ProviderDescription should be of the form "ProviderDescription ..." (with optional leading article) (golint)
    • Line 17: warning: comment on exported type ProviderCapabilities should be of the form "ProviderCapabilities ..." (with optional leading article) (golint)
    • Line 24: warning: comment on exported type ProviderHealth should be of the form "ProviderHealth ..." (with optional leading article) (golint)
    • video-transcoding-api/db/types.go
    • Line 67: warning: exported type SidecarAssetKind should have comment or be unexported (golint)
    • Line 69: warning: exported const SidecarAssetKindDolbyVisionMetadata should have comment or be unexported (golint)
    • video-transcoding-api/provider/cloud.go
    • Line 3: warning: exported type Cloud should have comment or be unexported (golint)
    • Line 6: warning: exported const CloudAWS should have comment (or a comment on this block) or be unexported (golint)
    • Line 10: warning: exported type GCPCloudRegion should have comment or be unexported (golint)
    • Line 13: warning: exported const GCPRegionUSEast1 should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type AWSCloudRegion should have comment or be unexported (golint)
    • Line 23: warning: exported const AWSRegionUSEast1 should have comment (or a comment on this block) or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell99%

Misspell Finds commonly misspelled English words