Preparing report...

Report for github.com/cbsinteractive/transcode-orchestrator

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


gocyclo96%

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.


golint92%

Golint is a linter for Go source code.

    • transcode-orchestrator/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)
    • transcode-orchestrator/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 49: warning: exported type JobOutput should have comment or be unexported (golint)
    • Line 65: warning: exported type NewJobResponse should have comment or be unexported (golint)
    • Line 70: warning: exported type JobResponse should have comment or be unexported (golint)
    • Line 82: warning: exported type JobResponseOutput should have comment or be unexported (golint)
    • transcode-orchestrator/db/types.go
    • Line 78: warning: exported method Job.RootFolder should have comment or be unexported (golint)
    • Line 88: warning: exported type SidecarAssetKind should have comment or be unexported (golint)
    • Line 90: warning: exported const SidecarAssetKindDolbyVisionMetadata should have comment or be unexported (golint)
    • Line 169: warning: exported const ChannelLayoutCenter should have comment (or a comment on this block) or be unexported (golint)
    • Line 225: warning: exported method PresetSummary.HasVideo should have comment or be unexported (golint)
    • Line 229: warning: exported method PresetSummary.HasAudio should have comment or be unexported (golint)
    • transcode-orchestrator/client/transcoding/job_dto.go
    • Line 13: warning: exported const ScanTypeUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported const ComputeClassTranscodeDefault should have comment (or a comment on this block) or be unexported (golint)
    • Line 104: warning: exported type CreateJobResponse should have comment or be unexported (golint)
    • Line 107: warning: exported type CancelJobRequest should have comment or be unexported (golint)
    • Line 110: warning: exported type CancelJobResponse should have comment or be unexported (golint)
    • transcode-orchestrator/client/transcoding/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)

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