Preparing report...

Report for github.com/outblocks/outblocks-cli

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


gocyclo94%

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.


golint22%

Golint is a linter for Go source code.

    • outblocks-cli/pkg/config/app.go
    • Line 13: warning: exported type App should have comment or be unexported (golint)
    • Line 28: warning: exported type BasicApp should have comment or be unexported (golint)
    • Line 44: warning: exported method BasicApp.Normalize should have comment or be unexported (golint)
    • Line 80: warning: exported method BasicApp.Check should have comment or be unexported (golint)
    • Line 142: warning: exported method BasicApp.Type should have comment or be unexported (golint)
    • Line 146: warning: exported method BasicApp.Path should have comment or be unexported (golint)
    • Line 150: warning: exported method BasicApp.PluginType should have comment or be unexported (golint)
    • Line 167: warning: exported method BasicApp.DeployPlugin should have comment or be unexported (golint)
    • Line 171: warning: exported method BasicApp.DNSPlugin should have comment or be unexported (golint)
    • Line 175: warning: exported method BasicApp.RunPlugin should have comment or be unexported (golint)
    • Line 179: warning: exported method BasicApp.Name should have comment or be unexported (golint)
    • Line 183: warning: exported method BasicApp.URL should have comment or be unexported (golint)
    • Line 187: warning: exported method BasicApp.ID should have comment or be unexported (golint)
    • outblocks-cli/pkg/config/plugin.go
    • Line 10: warning: exported type Plugin should have comment or be unexported (golint)
    • Line 20: warning: exported method Plugin.VerRange should have comment or be unexported (golint)
    • Line 24: warning: exported method Plugin.Order should have comment or be unexported (golint)
    • Line 28: warning: exported method Plugin.Normalize should have comment or be unexported (golint)
    • outblocks-cli/pkg/actions/deploy.go
    • Line 23: warning: exported type Deploy should have comment or be unexported (golint)
    • Line 28: warning: exported type DeployOptions should have comment or be unexported (golint)
    • Line 33: warning: exported function NewDeploy should have comment or be unexported (golint)
    • Line 40: warning: exported method Deploy.Run should have comment or be unexported (golint)
    • outblocks-cli/pkg/plugins/client/client.go
    • Line 19: warning: exported type Client should have comment or be unexported (golint)
    • Line 37: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 146: warning: exported type ResponseWithError should have comment or be unexported (golint)
    • Line 247: warning: exported type ResponseWithHeader should have comment or be unexported (golint)
    • Line 394: warning: exported method Client.Stop should have comment or be unexported (golint)
    • outblocks-cli/pkg/cli/context.go
    • Line 9: warning: exported type Context should have comment or be unexported (golint)
    • Line 14: warning: exported method Context.Debug should have comment or be unexported (golint)
    • Line 18: warning: exported method Context.WithContext should have comment or be unexported (golint)
    • Line 25: warning: exported method Context.SetContext should have comment or be unexported (golint)
    • outblocks-cli/pkg/cli/environment.go
    • Line 11: warning: exported const EnvPrefix should have comment or be unexported (golint)
    • Line 13: warning: exported type Environment should have comment or be unexported (golint)
    • Line 19: warning: exported type EnvVar should have comment or be unexported (golint)
    • Line 25: warning: exported function NewEnvironment should have comment or be unexported (golint)
    • Line 36: warning: exported method Environment.AddVar should have comment or be unexported (golint)
    • Line 40: warning: exported method Environment.AddVarWithDefault should have comment or be unexported (golint)
    • Line 48: warning: exported method Environment.Info should have comment or be unexported (golint)
    • Line 58: warning: exported method EnvVar.Info should have comment or be unexported (golint)
    • Line 68: warning: exported method Environment.BindCLIFlag should have comment or be unexported (golint)
    • outblocks-cli/pkg/lockfile/lockfile.go
    • Line 12: warning: exported type Lockfile should have comment or be unexported (golint)
    • Line 19: warning: exported method Lockfile.Validate should have comment or be unexported (golint)
    • Line 23: warning: exported function LoadLockfile should have comment or be unexported (golint)
    • Line 37: warning: exported function LoadLockfileData should have comment or be unexported (golint)
    • Line 50: warning: exported method Lockfile.PluginByName should have comment or be unexported (golint)
    • outblocks-cli/pkg/config/app_service.go
    • Line 12: warning: exported const TypeService should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type ServiceApp should have comment or be unexported (golint)
    • Line 19: warning: exported function LoadServiceAppData should have comment or be unexported (golint)
    • outblocks-cli/pkg/config/app_static.go
    • Line 14: warning: exported const TypeStatic should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported var StaticAppRoutings should have comment or be unexported (golint)
    • Line 23: warning: exported type StaticApp should have comment or be unexported (golint)
    • Line 29: warning: exported type StaticAppBuild should have comment or be unexported (golint)
    • Line 34: warning: exported function LoadStaticAppData should have comment or be unexported (golint)
    • Line 49: warning: exported method StaticApp.PluginType should have comment or be unexported (golint)
    • Line 62: warning: exported method StaticApp.Normalize should have comment or be unexported (golint)
    • outblocks-cli/pkg/plugins/downloader_vcs.go
    • Line 13: warning: exported type VCSDownloader should have comment or be unexported (golint)
    • Line 16: warning: exported function NewVCSDownloader should have comment or be unexported (golint)
    • Line 20: warning: exported type DownloadedPlugin should have comment or be unexported (golint)
    • Line 26: warning: exported method VCSDownloader.Download should have comment or be unexported (golint)
    • outblocks-cli/pkg/config/state.go
    • Line 13: warning: exported const StateLocal should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type State should have comment or be unexported (golint)
    • Line 26: warning: exported method State.IsLocal should have comment or be unexported (golint)
    • Line 30: warning: exported method State.LocalPath should have comment or be unexported (golint)
    • Line 44: warning: exported method State.LoadLocal should have comment or be unexported (golint)
    • Line 56: warning: exported method State.SaveLocal should have comment or be unexported (golint)
    • Line 65: warning: exported method State.Normalize should have comment or be unexported (golint)
    • Line 81: warning: exported method State.Check should have comment or be unexported (golint)
    • Line 102: warning: exported method State.Plugin should have comment or be unexported (golint)
    • outblocks-cli/pkg/logger/logger.go
    • Line 11: warning: exported type LogLevel should have comment or be unexported (golint)
    • Line 14: warning: exported const LogLevelDebug should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type Log should have comment or be unexported (golint)
    • Line 28: warning: exported function NewLogger should have comment or be unexported (golint)
    • Line 70: warning: exported method Log.Printf should have comment or be unexported (golint)
    • Line 74: warning: exported method Log.Println should have comment or be unexported (golint)
    • Line 78: warning: exported method Log.Printo should have comment or be unexported (golint)
    • Line 82: warning: exported method Log.Debugf should have comment or be unexported (golint)
    • Line 90: warning: exported method Log.Debugln should have comment or be unexported (golint)
    • Line 98: warning: exported method Log.Infof should have comment or be unexported (golint)
    • Line 102: warning: exported method Log.Infoln should have comment or be unexported (golint)
    • Line 106: warning: exported method Log.Successf should have comment or be unexported (golint)
    • Line 110: warning: exported method Log.Successln should have comment or be unexported (golint)
    • Line 114: warning: exported method Log.Warnf should have comment or be unexported (golint)
    • Line 122: warning: exported method Log.Warnln should have comment or be unexported (golint)
    • Line 130: warning: exported method Log.Errorf should have comment or be unexported (golint)
    • Line 140: warning: exported method Log.Errorln should have comment or be unexported (golint)
    • Line 144: warning: exported method Log.SetLevel should have comment or be unexported (golint)
    • Line 165: warning: exported method Log.Level should have comment or be unexported (golint)
    • Line 169: warning: exported method Log.Spinner should have comment or be unexported (golint)
    • Line 173: warning: exported method Log.ProgressBar should have comment or be unexported (golint)
    • Line 177: warning: exported method Log.Table should have comment or be unexported (golint)
    • outblocks-cli/cmd/executor.go
    • Line 20: warning: exported type Executor should have comment or be unexported (golint)
    • Line 34: warning: exported function NewExecutor should have comment or be unexported (golint)
    • Line 58: warning: exported method Executor.Execute should have comment or be unexported (golint)
    • Line 118: warning: exported method Executor.Log should have comment or be unexported (golint)
    • outblocks-cli/pkg/config/app_function.go
    • Line 12: warning: exported const TypeFunction should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type FunctionApp should have comment or be unexported (golint)
    • Line 19: warning: exported function LoadFunctionAppData should have comment or be unexported (golint)
    • outblocks-cli/pkg/lockfile/plugin.go
    • Line 8: warning: exported type Plugin should have comment or be unexported (golint)
    • Line 14: warning: exported method Plugin.Matches should have comment or be unexported (golint)
    • Line 18: warning: exported method Plugin.Validate should have comment or be unexported (golint)
    • outblocks-cli/pkg/actions/force_unlock.go
    • Line 10: warning: exported type ForceUnlock should have comment or be unexported (golint)
    • Line 14: warning: exported function NewForceUnlock should have comment or be unexported (golint)
    • Line 20: warning: exported method ForceUnlock.Run should have comment or be unexported (golint)
    • outblocks-cli/pkg/plugins/plugin.go
    • Line 18: warning: exported type Plugin should have comment or be unexported (golint)
    • Line 39: warning: exported type Action should have comment or be unexported (golint)
    • Line 42: warning: exported const ActionDeploy should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: exported method Plugin.Validate should have comment or be unexported (golint)
    • Line 56: warning: exported method Plugin.Locked should have comment or be unexported (golint)
    • Line 64: warning: exported method Plugin.Client should have comment or be unexported (golint)
    • Line 68: warning: exported method Plugin.HasAction should have comment or be unexported (golint)
    • Line 93: warning: exported method Plugin.SupportsType should have comment or be unexported (golint)
    • Line 103: warning: exported method Plugin.SupportsApp should have comment or be unexported (golint)
    • Line 113: warning: exported method Plugin.Prepare should have comment or be unexported (golint)
    • Line 140: warning: exported method Plugin.Stop should have comment or be unexported (golint)
    • outblocks-cli/pkg/plugins/plugin_type.go
    • Line 5: warning: exported type PluginType should have comment or be unexported (golint)
    • Line 10: warning: exported method PluginType.Validate should have comment or be unexported (golint)
    • Line 16: warning: exported type PluginMatch should have comment or be unexported (golint)
    • outblocks-cli/internal/fileutil/file.go
    • Line 13: warning: exported function FileExists should have comment or be unexported (golint)
    • Line 18: warning: exported function FindYAMLGoingUp should have comment or be unexported (golint)
    • Line 38: warning: exported function FindYAML should have comment or be unexported (golint)
    • Line 50: warning: exported function FindMatchingBaseDir should have comment or be unexported (golint)
    • Line 74: warning: exported function FindSubdirsOfMatching should have comment or be unexported (golint)
    • Line 98: warning: exported function FindYAMLFiles should have comment or be unexported (golint)
    • Line 124: warning: exported function YAMLError should have comment or be unexported (golint)
    • Line 143: warning: exported function CheckDir should have comment or be unexported (golint)
    • outblocks-cli/pkg/config/project.go
    • Line 19: warning: exported const ProjectYAMLName should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported var DefaultKnownTypes should have comment or be unexported (golint)
    • Line 32: warning: exported type Project should have comment or be unexported (golint)
    • Line 50: warning: exported method Project.Validate should have comment or be unexported (golint)
    • Line 57: warning: exported function LoadProjectConfig should have comment or be unexported (golint)
    • Line 92: warning: exported function LoadProjectConfigData should have comment or be unexported (golint)
    • Line 113: warning: exported method Project.LoadApps should have comment or be unexported (golint)
    • Line 123: warning: exported method Project.LoadFiles should have comment or be unexported (golint)
    • Line 141: warning: exported function KnownType should have comment or be unexported (golint)
    • Line 160: warning: exported method Project.LoadFile should have comment or be unexported (golint)
    • Line 212: warning: exported method Project.RegisterApp should have comment or be unexported (golint)
    • Line 228: warning: exported method Project.FindDependency should have comment or be unexported (golint)
    • Line 238: warning: exported method Project.SetPlugins should have comment or be unexported (golint)
    • Line 242: warning: exported method Project.LoadedPlugins should have comment or be unexported (golint)
    • Line 246: warning: exported method Project.PluginLock should have comment or be unexported (golint)
    • Line 250: warning: exported method Project.YAMLData should have comment or be unexported (golint)
    • Line 254: warning: exported method Project.FindDNSPlugin should have comment or be unexported (golint)
    • Line 266: warning: exported method Project.FindLoadedPlugin should have comment or be unexported (golint)
    • outblocks-cli/pkg/config/app_need.go
    • Line 10: warning: exported type AppNeed should have comment or be unexported (golint)
    • Line 16: warning: exported method AppNeed.Normalize should have comment or be unexported (golint)
    • Line 27: warning: exported method AppNeed.Dependency should have comment or be unexported (golint)
    • Line 31: warning: exported method AppNeed.PluginType should have comment or be unexported (golint)
    • outblocks-cli/pkg/config/dependency.go
    • Line 12: warning: exported type Dependency should have comment or be unexported (golint)
    • Line 22: warning: exported method Dependency.Validate should have comment or be unexported (golint)
    • Line 28: warning: exported method Dependency.PluginType should have comment or be unexported (golint)
    • Line 38: warning: exported method Dependency.Normalize should have comment or be unexported (golint)
    • Line 49: warning: exported method Dependency.Check should have comment or be unexported (golint)
    • Line 90: warning: exported method Dependency.DeployPlugin should have comment or be unexported (golint)
    • Line 94: warning: exported method Dependency.RunPlugin should have comment or be unexported (golint)
    • Line 98: warning: exported method Dependency.ID should have comment or be unexported (golint)
    • outblocks-cli/pkg/config/vars.go
    • Line 10: warning: exported type YAMLEvaluator should have comment or be unexported (golint)
    • Line 14: warning: exported function NewYAMLEvaluator should have comment or be unexported (golint)
    • Line 47: warning: exported method YAMLEvaluator.Expand should have comment or be unexported (golint)
    • outblocks-cli/pkg/plugins/downloader_github.go
    • Line 20: warning: exported type GitHubDownloader should have comment or be unexported (golint)
    • Line 25: warning: exported function NewGitHubDownloader should have comment or be unexported (golint)
    • Line 43: warning: exported var GitHubRegex should have comment or be unexported (golint)
    • Line 45: warning: exported method GitHubDownloader.Download should have comment or be unexported (golint)
    • outblocks-cli/pkg/plugins/loader.go
    • Line 22: warning: exported const DefaultPluginSourceFmt should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported type Loader should have comment or be unexported (golint)
    • Line 36: warning: exported function NewLoader should have comment or be unexported (golint)
    • Line 48: warning: exported method Loader.LoadPlugin should have comment or be unexported (golint)
    • Line 69: warning: exported method Loader.DownloadPlugin should have comment or be unexported (golint)
    • outblocks-cli/pkg/config/dns.go
    • Line 10: warning: exported type DNS should have comment or be unexported (golint)
    • Line 17: warning: exported method DNS.Normalize should have comment or be unexported (golint)
    • Line 27: warning: exported method DNS.Check 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!