Preparing report...

Report for github.com/lyft/flytectl

A+    Excellent!    Found 77 issues across 208 files

Tweet

gofmt98%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


gocyclo99%

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.


golint64%

Golint is a linter for Go source code.

    • flytectl/pkg/pkce/token_cache_keyring.go
    • Line 18: warning: exported const KeyRingServiceUser should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported method TokenCacheKeyringProvider.SaveToken should have comment or be unexported (golint)
    • Line 41: warning: exported method TokenCacheKeyringProvider.GetToken should have comment or be unexported (golint)
    • flytectl/pkg/configutil/configutil.go
    • Line 11: warning: exported const AdminConfigTemplate should have comment (or a comment on this block) or be unexported (golint)
    • Line 52: warning: exported type ConfigTemplateSpec should have comment or be unexported (golint)
    • Line 58: warning: exported var FlytectlConfig should have comment or be unexported (golint)
    • flytectl/pkg/visualize/graphviz.go
    • Line 14: warning: comment on exported const StartNode should be of the form "StartNode ..." (golint)
    • Line 16: warning: exported const EndNode should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: comment on exported const SubgraphPrefix should be of the form "SubgraphPrefix ..." (golint)
    • Line 21: warning: comment on exported const DoubleCircleShape should be of the form "DoubleCircleShape ..." (golint)
    • Line 27: warning: comment on exported const ColorAttr should be of the form "ColorAttr ..." (golint)
    • Line 32: warning: comment on exported const LabelAttr should be of the form "LabelAttr ..." (golint)
    • Line 37: warning: comment on exported const ElseFail should be of the form "ElseFail ..." (golint)
    • flytectl/pkg/ext/attribute_matcher_deleter.go
    • Line 9: warning: exported method AdminDeleterExtClient.DeleteWorkflowAttributes should have comment or be unexported (golint)
    • Line 19: warning: exported method AdminDeleterExtClient.DeleteProjectDomainAttributes should have comment or be unexported (golint)
    • flytectl/cmd/update/project.go
    • Line 16: warning: comment on exported type ProjectConfig should be of the form "ProjectConfig ..." (with optional leading article) (golint)
    • Line 59: warning: exported var DefaultProjectConfig should have comment or be unexported (golint)
    • flytectl/pkg/ext/execution_fetcher.go
    • Line 11: warning: exported method AdminFetcherExtClient.FetchExecution should have comment or be unexported (golint)
    • Line 25: warning: exported method AdminFetcherExtClient.FetchNodeExecutionData should have comment or be unexported (golint)
    • Line 42: warning: exported method AdminFetcherExtClient.FetchNodeExecutionDetails should have comment or be unexported (golint)
    • Line 58: warning: exported method AdminFetcherExtClient.FetchTaskExecutionsOnNode should have comment or be unexported (golint)
    • Line 76: warning: exported method AdminFetcherExtClient.ListExecution should have comment or be unexported (golint)
    • flytectl/pkg/ext/task_fetcher.go
    • Line 13: warning: exported method AdminFetcherExtClient.FetchAllVerOfTask should have comment or be unexported (golint)
    • Line 28: warning: exported method AdminFetcherExtClient.FetchTaskLatestVersion should have comment or be unexported (golint)
    • Line 41: warning: exported method AdminFetcherExtClient.FetchTaskVersion should have comment or be unexported (golint)
    • flytectl/pkg/filters/util.go
    • Line 7: warning: exported function BuildResourceListRequestWithName should have comment or be unexported (golint)
    • Line 29: warning: exported function BuildProjectListRequest should have comment or be unexported (golint)
    • flytectl/pkg/ext/attribute_match_fetcher.go
    • Line 10: warning: exported method AdminFetcherExtClient.FetchWorkflowAttributes should have comment or be unexported (golint)
    • Line 27: warning: exported method AdminFetcherExtClient.FetchProjectDomainAttributes should have comment or be unexported (golint)
    • flytectl/cmd/core/cmd.go
    • Line 15: warning: exported type PFlagProvider should have comment or be unexported (golint)
    • Line 19: warning: exported type CommandEntry should have comment or be unexported (golint)
    • Line 28: warning: exported function AddCommands should have comment or be unexported (golint)
    • flytectl/cmd/get/execution_util.go
    • Line 30: warning: exported function WriteExecConfigToFile should have comment or be unexported (golint)
    • Line 43: warning: exported function CreateAndWriteExecConfigForTask should have comment or be unexported (golint)
    • Line 52: warning: exported function CreateAndWriteExecConfigForWorkflow should have comment or be unexported (golint)
    • Line 61: warning: exported function TaskInputs should have comment or be unexported (golint)
    • Line 81: warning: exported function ParamMapForTask should have comment or be unexported (golint)
    • Line 97: warning: exported function WorkflowParams should have comment or be unexported (golint)
    • Line 108: warning: exported function ParamMapForWorkflow should have comment or be unexported (golint)
    • flytectl/cmd/sandbox/start.go
    • Line 50: warning: exported const GeneratedManifest should have comment (or a comment on this block) or be unexported (golint)
    • Line 57: warning: exported var FlyteManifest should have comment or be unexported (golint)
    • Line 60: warning: exported type ExecResult should have comment or be unexported (golint)
    • flytectl/pkg/ext/attribute_match_updater.go
    • Line 9: warning: exported method AdminUpdaterExtClient.UpdateWorkflowAttributes should have comment or be unexported (golint)
    • Line 21: warning: exported method AdminUpdaterExtClient.UpdateProjectDomainAttributes should have comment or be unexported (golint)
    • flytectl/cmd/register/register_util.go
    • Line 47: warning: exported type Result should have comment or be unexported (golint)
    • Line 58: warning: exported var FlyteSnacksRelease should have comment or be unexported (golint)
    • Line 59: warning: exported var Client should have comment or be unexported (golint)
    • Line 69: warning: exported type Condition should have comment or be unexported (golint)
    • Line 281: warning: exported function DownloadFileFromHTTP should have comment or be unexported (golint)
    • flytectl/cmd/root.go
    • Line 110: warning: exported function GenerateDocs should have comment or be unexported (golint)
    • Line 120: warning: exported function GenReSTTree should have comment or be unexported (golint)
    • Line 129: warning: exported function ExecuteCmd should have comment or be unexported (golint)
    • flytectl/pkg/adminutils/config.go
    • Line 8: warning: exported var DefaultConfig should have comment or be unexported (golint)
    • Line 15: warning: exported type Config should have comment or be unexported (golint)
    • Line 20: warning: exported function GetConfig should have comment or be unexported (golint)
    • flytectl/pkg/util/util.go
    • Line 15: warning: exported const HTTPRequestErrorMessage should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported function GetRequest should have comment or be unexported (golint)
    • Line 38: warning: exported function ParseGithubTag should have comment or be unexported (golint)
    • Line 47: warning: exported function WriteIntoFile should have comment or be unexported (golint)
    • Line 63: warning: exported function IsVersionGreaterThan should have comment or be unexported (golint)
    • flytectl/pkg/printer/printer.go
    • Line 23: warning: comment on exported type OutputFormat should be of the form "OutputFormat ..." (with optional leading article) (golint)
    • Line 27: warning: exported const OutputFormatTABLE should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported const GraphVisualizationServiceURL should have comment or be unexported (golint)
    • Line 36: warning: exported function OutputFormats should have comment or be unexported (golint)
    • Line 44: warning: exported type Column should have comment or be unexported (golint)
    • Line 51: warning: exported type Printer should have comment or be unexported (golint)
    • Line 94: warning: exported method Printer.JSONToTable should have comment or be unexported (golint)
    • Line 127: warning: exported method Printer.PrintInterface should have comment or be unexported (golint)
    • Line 167: warning: exported method Printer.Print should have comment or be unexported (golint)
    • Line 217: warning: exported type PrintableProto should have comment or be unexported (golint)
    • Line 225: warning: exported method PrintableProto.MarshalJSON should have comment or be unexported (golint)
    • flytectl/cmd/update/named_entity.go
    • Line 19: warning: exported type NamedEntityConfig should have comment or be unexported (golint)
    • Line 25: warning: exported method NamedEntityConfig.UpdateNamedEntity should have comment or be unexported (golint)
    • flytectl/pkg/filters/type.go
    • Line 4: warning: exported var DefaultLimit should have comment or be unexported (golint)
    • Line 12: warning: exported type Filters should have comment or be unexported (golint)
    • flytectl/cmd/create/execution.go
    • Line 148: warning: exported type ExecutionType should have comment or be unexported (golint)
    • Line 151: warning: exported const Task should have comment (or a comment on this block) or be unexported (golint)
    • Line 156: warning: exported type ExecutionParams should have comment or be unexported (golint)
    • flytectl/cmd/core/cmd_ctx.go
    • Line 10: warning: exported type CommandContext should have comment or be unexported (golint)
    • Line 19: warning: exported function NewCommandContext should have comment or be unexported (golint)
    • Line 39: warning: exported method CommandContext.AdminClient should have comment or be unexported (golint)
    • Line 43: warning: exported method CommandContext.OutputPipe should have comment or be unexported (golint)
    • Line 47: warning: exported method CommandContext.InputPipe should have comment or be unexported (golint)
    • Line 51: warning: exported method CommandContext.AdminFetcherExt should have comment or be unexported (golint)
    • Line 55: warning: exported method CommandContext.AdminUpdaterExt should have comment or be unexported (golint)
    • Line 59: warning: exported method CommandContext.AdminDeleterExt should have comment or be unexported (golint)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!