Preparing report...

Report for github.com/cosmo-workspace/cosmo

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


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.


golint38%

Golint is a linter for Go source code.

    • cosmo/internal/controllers/template_controller.go
    • Line 18: warning: exported const TmplControllerFieldManager should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported method TemplateReconciler.Reconcile should have comment or be unexported (golint)
    • Line 67: warning: exported method TemplateReconciler.SetupWithManager should have comment or be unexported (golint)
    • cosmo/pkg/wsnet/url.go
    • Line 13: warning: comment on exported const URLVarPortName should be of the form "URLVarPortName ..." (golint)
    • Line 15: warning: exported const URLVarPortNumber should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: comment on exported const URLVarLoadBalancer should be of the form "URLVarLoadBalancer ..." (golint)
    • Line 25: warning: comment on exported const URLVarNodePortNumber should be of the form "URLVarNodePortNumber ..." (golint)
    • Line 29: warning: comment on exported type URLBase should be of the form "URLBase ..." (with optional leading article) (golint)
    • Line 33: warning: exported type URLVars should have comment or be unexported (golint)
    • Line 49: warning: exported function NewURLVars should have comment or be unexported (golint)
    • Line 61: warning: exported method URLBase.GenURL should have comment or be unexported (golint)
    • Line 81: warning: exported function GenerateIngressHost should have comment or be unexported (golint)
    • Line 144: warning: exported method URLVars.Dump should have comment or be unexported (golint)
    • cosmo/pkg/transformer/scaling.go
    • Line 9: warning: exported type ScalingTransformer should have comment or be unexported (golint)
    • Line 14: warning: exported function NewScalingTransformer should have comment or be unexported (golint)
    • Line 18: warning: exported method ScalingTransformer.Transform should have comment or be unexported (golint)
    • cosmo/internal/controllers/instance_controller.go
    • Line 26: warning: exported const InstControllerFieldManager should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported method InstanceReconciler.Reconcile should have comment or be unexported (golint)
    • Line 237: warning: exported method InstanceReconciler.SetupWithManager should have comment or be unexported (golint)
    • cosmo/pkg/auth/session/session.go
    • Line 14: warning: exported type Info should have comment or be unexported (golint)
    • Line 19: warning: exported function Set should have comment or be unexported (golint)
    • Line 25: warning: exported function Get should have comment or be unexported (golint)
    • Line 40: warning: exported function NewStore should have comment or be unexported (golint)
    • cosmo/internal/dashboard/workspace_handler.go
    • Line 30: warning: exported method Server.PostWorkspace should have comment or be unexported (golint)
    • Line 64: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 80: warning: exported method Server.GetWorkspaces should have comment or be unexported (golint)
    • Line 111: warning: exported method Server.GetWorkspace should have comment or be unexported (golint)
    • Line 127: warning: exported method Server.DeleteWorkspace should have comment or be unexported (golint)
    • Line 143: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 157: warning: exported method Server.PatchWorkspace should have comment or be unexported (golint)
    • Line 187: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • cosmo/pkg/transformer/metadata.go
    • Line 13: warning: exported type MetadataTransformer should have comment or be unexported (golint)
    • Line 19: warning: exported function NewMetadataTransformer should have comment or be unexported (golint)
    • Line 23: warning: exported method MetadataTransformer.Transform should have comment or be unexported (golint)
    • cosmo/pkg/transformer/jsonpatch.go
    • Line 13: warning: exported type JSONPatchTransformer should have comment or be unexported (golint)
    • Line 18: warning: exported function NewJSONPatchTransformer should have comment or be unexported (golint)
    • Line 22: warning: exported method JSONPatchTransformer.Transform should have comment or be unexported (golint)
    • cosmo/pkg/transformer/network.go
    • Line 12: warning: exported type NetworkTransformer should have comment or be unexported (golint)
    • Line 17: warning: exported function NewNetworkTransformer should have comment or be unexported (golint)
    • Line 21: warning: exported method NetworkTransformer.Transform should have comment or be unexported (golint)
    • cosmo/internal/dashboard/user_sub_handler.go
    • Line 14: warning: exported method Server.PutUserRole should have comment or be unexported (golint)
    • Line 40: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 53: warning: exported method Server.PutUserPassword should have comment or be unexported (golint)
    • cosmo/internal/dashboard/auth_middleware.go
    • Line 69: warning: exported var ErrNotAuthorized should have comment or be unexported (golint)
    • Line 84: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 96: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • cosmo/pkg/clog/clog.go
    • Line 20: warning: exported const LEVEL_INFO should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported function LogrIntoContext should have comment or be unexported (golint)
    • Line 29: warning: exported function IntoContext should have comment or be unexported (golint)
    • Line 33: warning: exported function FromContext should have comment or be unexported (golint)
    • Line 41: warning: exported function NewLogger should have comment or be unexported (golint)
    • Line 45: warning: exported type Logger should have comment or be unexported (golint)
    • Line 50: warning: exported method Logger.Enabled should have comment or be unexported (golint)
    • Line 54: warning: exported method Logger.WithName should have comment or be unexported (golint)
    • Line 58: warning: exported method Logger.WithValues should have comment or be unexported (golint)
    • Line 62: warning: exported method Logger.WithCaller should have comment or be unexported (golint)
    • Line 66: warning: exported method Logger.Debug should have comment or be unexported (golint)
    • Line 70: warning: exported method Logger.DebugAll should have comment or be unexported (golint)
    • Line 80: warning: exported method Logger.Info should have comment or be unexported (golint)
    • Line 84: warning: exported type NamedObject should have comment or be unexported (golint)
    • Line 89: warning: exported method Logger.DumpObject should have comment or be unexported (golint)
    • Line 111: warning: exported method Logger.PrintObjectDiff should have comment or be unexported (golint)
    • Line 117: warning: exported function Diff should have comment or be unexported (golint)
    • Line 121: warning: exported function PrintObjectDiff should have comment or be unexported (golint)
    • cosmo/api/workspace/v1alpha1/user.go
    • Line 10: warning: exported function UserNamespace should have comment or be unexported (golint)
    • Line 14: warning: exported function UserIDByNamespace should have comment or be unexported (golint)
    • Line 21: warning: comment on exported type User should be of the form "User ..." (with optional leading article) (golint)
    • Line 35: warning: exported const UserAdminRole should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported method UserRole.IsAdmin should have comment or be unexported (golint)
    • Line 42: warning: exported method UserRole.IsValid should have comment or be unexported (golint)
    • Line 61: warning: exported const UserAuthTypeKosmoSecert should have comment (or a comment on this block) or be unexported (golint)
    • Line 68: warning: exported method UserAuthType.IsValid should have comment or be unexported (golint)
    • Line 81: warning: exported function ConvertUserNamespaceToUser should have comment or be unexported (golint)
    • cosmo/internal/controllers/workspace_status_controller.go
    • Line 27: warning: exported const WsStatControllerFieldManager should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: comment on exported method WorkspaceStatusReconciler.Reconcile should be of the form "Reconcile ..." (golint)
    • Line 116: warning: exported method WorkspaceStatusReconciler.SetupWithManager should have comment or be unexported (golint)
    • Line 162: warning: exported method WorkspaceStatusReconciler.GenWorkspaceURLMap should have comment or be unexported (golint)
    • cosmo/pkg/kosmo/user.go
    • Line 19: warning: exported const DefaultServiceAccount should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported method Client.CreateUser should have comment or be unexported (golint)
    • Line 88: warning: exported method Client.UpdateUser should have comment or be unexported (golint)
    • Line 107: warning: exported method Client.DeleteUser should have comment or be unexported (golint)
    • Line 123: warning: exported method Client.GetUser should have comment or be unexported (golint)
    • Line 131: warning: exported method Client.GetUserNamespace should have comment or be unexported (golint)
    • Line 142: warning: exported method Client.ListUsers should have comment or be unexported (golint)
    • cosmo/pkg/kosmo/utils.go
    • Line 19: warning: exported var DeploymentGVK should have comment or be unexported (golint)
    • Line 36: warning: exported type GVKSetter should have comment or be unexported (golint)
    • Line 56: warning: exported type Comparable should have comment or be unexported (golint)
    • Line 86: warning: exported function WithPrintDiff should have comment or be unexported (golint)
    • Line 106: warning: exported function PodStatusReason should have comment or be unexported (golint)
    • cosmo/pkg/cmdutil/options.go
    • Line 34: warning: exported type CliOptions should have comment or be unexported (golint)
    • Line 45: warning: exported type NamespacedCliOptions should have comment or be unexported (golint)
    • Line 51: warning: exported type UserNamespacedCliOptions should have comment or be unexported (golint)
    • Line 56: warning: exported function NewCliOptions should have comment or be unexported (golint)
    • Line 60: warning: exported function NewNamespacedCliOptions should have comment or be unexported (golint)
    • Line 64: warning: exported function NewUserNamespacedCliOptions should have comment or be unexported (golint)
    • Line 68: warning: exported method CliOptions.Validate should have comment or be unexported (golint)
    • Line 72: warning: exported method CliOptions.Complete should have comment or be unexported (golint)
    • Line 109: warning: exported method NamespacedCliOptions.Validate should have comment or be unexported (golint)
    • Line 116: warning: exported method NamespacedCliOptions.Complete should have comment or be unexported (golint)
    • Line 130: warning: exported method UserNamespacedCliOptions.Validate should have comment or be unexported (golint)
    • Line 140: warning: exported method UserNamespacedCliOptions.Complete should have comment or be unexported (golint)
    • cosmo/api/core/v1alpha1/template_types.go
    • Line 18: warning: comment on exported type Template should be of the form "Template ..." (with optional leading article) (golint)
    • Line 30: warning: comment on exported type TemplateList should be of the form "TemplateList ..." (with optional leading article) (golint)
    • cosmo/internal/dashboard/user_handler.go
    • Line 33: warning: exported method Server.PostUser should have comment or be unexported (golint)
    • Line 73: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 115: warning: exported method Server.GetUsers should have comment or be unexported (golint)
    • Line 137: warning: comment on exported method Server.GetUser should be of the form "GetUser ..." (golint)
    • Line 153: warning: exported method Server.DeleteUser should have comment or be unexported (golint)
    • Line 169: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • cosmo/pkg/template/template_builder.go
    • Line 13: warning: exported type TemplateBuilder should have comment or be unexported (golint)
    • Line 18: warning: exported function NewTemplateBuilder should have comment or be unexported (golint)
    • Line 25: warning: exported method TemplateBuilder.Build should have comment or be unexported (golint)
    • Line 41: warning: exported function StringToUnstructured should have comment or be unexported (golint)
    • Line 51: warning: exported function UnstructuredToJSONBytes should have comment or be unexported (golint)
    • cosmo/pkg/auth/kosmo_authorizer.go
    • Line 15: warning: exported function NewKosmoSecretAuthorizer should have comment or be unexported (golint)
    • Line 19: warning: exported method KosmoSecretAuthorizer.Authorize should have comment or be unexported (golint)
    • cosmo/api/core/v1alpha1/instance_types.go
    • Line 21: warning: comment on exported type Instance should be of the form "Instance ..." (with optional leading article) (golint)
    • Line 36: warning: comment on exported type InstanceList should be of the form "InstanceList ..." (with optional leading article) (golint)
    • Line 117: warning: exported method ObjectRef.IsTarget should have comment or be unexported (golint)
    • Line 121: warning: exported method ObjectRef.SetName should have comment or be unexported (golint)
    • Line 125: warning: exported method ObjectRef.SetGroupVersionKind should have comment or be unexported (golint)
    • Line 130: warning: exported method ObjectRef.GroupVersionKind should have comment or be unexported (golint)
    • Line 139: warning: exported method ObjectRef.GetName should have comment or be unexported (golint)
    • cosmo/pkg/template/label.go
    • Line 5: warning: exported type LabelHolder should have comment or be unexported (golint)
    • Line 10: warning: exported function SetTemplateType should have comment or be unexported (golint)
    • Line 19: warning: exported function GetTemplateType should have comment or be unexported (golint)
    • cosmo/api/openapi/dashboard/v1alpha1/routers.go
    • Line 189: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 213: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • cosmo/api/workspace/v1alpha1/workspace_types.go
    • Line 17: warning: comment on exported type Workspace should be of the form "Workspace ..." (with optional leading article) (golint)
    • Line 32: warning: comment on exported type WorkspaceList should be of the form "WorkspaceList ..." (with optional leading article) (golint)
    • Line 68: warning: exported method NetworkRule.Default should have comment or be unexported (golint)
    • Line 80: warning: exported method NetworkRule.ServicePort should have comment or be unexported (golint)
    • Line 89: warning: exported method NetworkRule.IngressRule should have comment or be unexported (golint)
    • Line 118: warning: exported function NetworkRulesByServiceAndIngress should have comment or be unexported (golint)
    • cosmo/internal/webhooks/instance_webhook.go
    • Line 22: warning: exported type InstanceMutationWebhookHandler should have comment or be unexported (golint)
    • Line 30: warning: exported method InstanceMutationWebhookHandler.SetupWebhookWithManager should have comment or be unexported (golint)
    • Line 37: warning: exported method InstanceMutationWebhookHandler.Handle should have comment or be unexported (golint)
    • Line 127: warning: exported method InstanceMutationWebhookHandler.InjectDecoder should have comment or be unexported (golint)
    • Line 132: warning: exported type InstanceValidationWebhookHandler should have comment or be unexported (golint)
    • Line 140: warning: exported method InstanceValidationWebhookHandler.SetupWebhookWithManager should have comment or be unexported (golint)
    • Line 147: warning: exported method InstanceValidationWebhookHandler.Handle should have comment or be unexported (golint)
    • Line 161: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 198: warning: exported method InstanceValidationWebhookHandler.InjectDecoder should have comment or be unexported (golint)
    • cosmo/internal/dashboard/util.go
    • Line 11: warning: exported type StoreStatusResponseWriter should have comment or be unexported (golint)
    • Line 16: warning: exported method StoreStatusResponseWriter.StatusCode should have comment or be unexported (golint)
    • Line 20: warning: exported method StoreStatusResponseWriter.WriteHeader should have comment or be unexported (golint)
    • Line 25: warning: exported method StoreStatusResponseWriter.StatusString should have comment or be unexported (golint)
    • Line 29: warning: exported type HTTPRequestLogger should have comment or be unexported (golint)
    • Line 33: warning: exported function NewHTTPRequestLogger should have comment or be unexported (golint)
    • Line 37: warning: exported method HTTPRequestLogger.Middleware should have comment or be unexported (golint)
    • cosmo/pkg/kosmo/client.go
    • Line 20: warning: exported type Client should have comment or be unexported (golint)
    • Line 24: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 28: warning: exported function NewClientByRestConfig should have comment or be unexported (golint)
    • Line 43: warning: exported method Client.Apply should have comment or be unexported (golint)
    • Line 60: warning: exported method Client.GetUnstructured should have comment or be unexported (golint)
    • Line 71: warning: exported method Client.GetInstance should have comment or be unexported (golint)
    • Line 84: warning: exported method Client.ListInstances should have comment or be unexported (golint)
    • Line 92: warning: exported method Client.ListInstancesByType should have comment or be unexported (golint)
    • Line 108: warning: exported method Client.ListTemplates should have comment or be unexported (golint)
    • Line 115: warning: exported method Client.ListTemplatesByType should have comment or be unexported (golint)
    • Line 130: warning: exported method Client.GetTemplate should have comment or be unexported (golint)
    • cosmo/internal/authproxy/reconciler.go
    • Line 25: warning: exported const EnvInstance should have comment (or a comment on this block) or be unexported (golint)
    • Line 43: warning: exported method NetworkRuleReconciler.Reconcile should have comment or be unexported (golint)
    • Line 137: warning: exported method NetworkRuleReconciler.SetupWithManager should have comment or be unexported (golint)
    • cosmo/api/workspace/v1alpha1/auth-proxy.go
    • Line 40: warning: exported function AuthProxyRole should have comment or be unexported (golint)
    • Line 54: warning: exported function AuthProxyRoleBindings should have comment or be unexported (golint)
    • Line 80: warning: exported function AuthProxyRoleBindingApplyConfiguration should have comment or be unexported (golint)
    • cosmo/internal/controllers/workspace_controller.go
    • Line 25: warning: exported const WsControllerFieldManager should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: comment on exported method WorkspaceReconciler.Reconcile should be of the form "Reconcile ..." (golint)
    • Line 92: warning: exported method WorkspaceReconciler.SetupWithManager should have comment or be unexported (golint)
    • cosmo/internal/authproxy/proxy/manager.go
    • Line 67: warning: exported method Manager.Initialize should have comment or be unexported (golint)
    • Line 103: warning: exported method Manager.CreateNewProxy should have comment or be unexported (golint)
    • Line 174: warning: exported method Manager.GetRunningProxy should have comment or be unexported (golint)
    • Line 182: warning: exported method Manager.ShutdownProxy should have comment or be unexported (golint)
    • Line 216: warning: exported method Manager.GC should have comment or be unexported (golint)
    • cosmo/pkg/cmdutil/cmdutil.go
    • Line 20: warning: exported const KustomizationFile should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported function GetKubeConfig should have comment or be unexported (golint)
    • Line 27: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 34: warning: exported function GetDefaultNamespace should have comment or be unexported (golint)
    • Line 55: warning: exported function KustomizeBuildCmd should have comment or be unexported (golint)
    • Line 67: warning: exported function ExecKustomize should have comment or be unexported (golint)
    • Line 98: warning: exported function CreateFile should have comment or be unexported (golint)
    • Line 115: warning: exported function RemoveFile should have comment or be unexported (golint)
    • Line 123: warning: exported function PrintfColorErr should have comment or be unexported (golint)
    • Line 127: warning: exported function PrintfColorInfo should have comment or be unexported (golint)
    • cosmo/internal/cmd/template/kustomize.go
    • Line 12: warning: exported const DefaultPackagedFile should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported var SecretFileDefaultMode should have comment or be unexported (golint)
    • Line 20: warning: exported function NewKustomize should have comment or be unexported (golint)
    • Line 44: warning: exported function StructToYaml should have comment or be unexported (golint)
    • cosmo/pkg/transformer/utils.go
    • Line 22: warning: exported function NestedMap should have comment or be unexported (golint)
    • Line 39: warning: exported function NestedSlice should have comment or be unexported (golint)
    • Line 65: warning: exported function NestedMapDelete should have comment or be unexported (golint)
    • Line 86: warning: exported function Name should have comment or be unexported (golint)
    • cosmo/pkg/auth/http_authorizer.go
    • Line 21: warning: exported function NewHTTPAuthorizer should have comment or be unexported (golint)
    • Line 39: warning: exported method HTTPAuthorizer.Authorize should have comment or be unexported (golint)
    • cosmo/api/openapi/dashboard/v1alpha1/helpers.go
    • Line 30: warning: comment on exported function AssertRecurseInterfaceRequired should be of the form "AssertRecurseInterfaceRequired ..." (golint)
    • Line 36: warning: comment on exported function AssertRecurseValueRequired should be of the form "AssertRecurseValueRequired ..." (golint)
    • cosmo/api/workspace/v1alpha1/config.go
    • Line 10: warning: exported var ErrNoAnnotations should have comment or be unexported (golint)
    • Line 25: warning: exported const DefaultWorkspaceResourceName should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported method Config.Default should have comment or be unexported (golint)
    • Line 44: warning: exported function AddWorkspaceTemplateVars should have comment or be unexported (golint)
    • Line 55: warning: exported function SetConfigOnTemplateAnnotations should have comment or be unexported (golint)
    • Line 68: warning: exported function ConfigFromTemplateAnnotations should have comment or be unexported (golint)
    • cosmo/internal/authproxy/proxy/server.go
    • Line 60: warning: exported method ProxyServer.SetupSessionStore should have comment or be unexported (golint)
    • Line 65: warning: exported method ProxyServer.SetupReverseProxy should have comment or be unexported (golint)
    • Line 80: warning: exported method ProxyServer.SetupAuthorizer should have comment or be unexported (golint)
    • Line 84: warning: exported method ProxyServer.GetListenerPort should have comment or be unexported (golint)
    • Line 95: warning: exported method ProxyServer.Start should have comment or be unexported (golint)
    • cosmo/pkg/template/vars.go
    • Line 9: warning: exported const DefaultVarsInstance should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported method TemplateBuilder.ReplaceDefaultVars should have comment or be unexported (golint)
    • Line 21: warning: exported method TemplateBuilder.ReplaceCustomVars should have comment or be unexported (golint)
    • Line 31: warning: exported function FixupTemplateVarKey should have comment or be unexported (golint)
    • Line 42: warning: exported var ErrInvalidVars should have comment or be unexported (golint)
    • Line 45: warning: exported function ValidCustomVars should have comment or be unexported (golint)
    • cosmo/internal/dashboard/auth_handler.go
    • Line 23: warning: exported method Server.Verify should have comment or be unexported (golint)
    • Line 41: warning: exported method Server.Logout should have comment or be unexported (golint)
    • Line 50: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 62: warning: exported method Server.Login should have comment or be unexported (golint)
    • cosmo/internal/webhooks/workspace_webhook.go
    • Line 28: warning: exported type WorkspaceMutationWebhookHandler should have comment or be unexported (golint)
    • Line 36: warning: exported method WorkspaceMutationWebhookHandler.SetupWebhookWithManager should have comment or be unexported (golint)
    • Line 91: warning: exported method WorkspaceMutationWebhookHandler.InjectDecoder should have comment or be unexported (golint)
    • Line 96: warning: exported type WorkspaceValidationWebhookHandler should have comment or be unexported (golint)
    • Line 104: warning: exported method WorkspaceValidationWebhookHandler.SetupWebhookWithManager should have comment or be unexported (golint)
    • Line 141: warning: exported method WorkspaceValidationWebhookHandler.InjectDecoder should have comment or be unexported (golint)
    • Line 153: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • cosmo/pkg/kosmo/password.go
    • Line 20: warning: exported method Client.VerifyPassword should have comment or be unexported (golint)
    • Line 48: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 58: warning: exported function BytesEqual should have comment or be unexported (golint)
    • Line 62: warning: exported method Client.IsDefaultPassword should have comment or be unexported (golint)
    • Line 83: warning: exported method Client.GetDefaultPassword should have comment or be unexported (golint)
    • Line 116: warning: exported method Client.ResetPassword should have comment or be unexported (golint)
    • Line 132: warning: exported method Client.RegisterPassword should have comment or be unexported (golint)
    • cosmo/pkg/kosmo/workspace.go
    • Line 19: warning: exported var ErrNoItems should have comment or be unexported (golint)
    • Line 22: warning: exported method Client.GetWorkspaceByUserID should have comment or be unexported (golint)
    • Line 26: warning: exported method Client.GetWorkspace should have comment or be unexported (golint)
    • Line 39: warning: exported method Client.ListWorkspacesByUserID should have comment or be unexported (golint)
    • Line 43: warning: exported method Client.ListWorkspaces should have comment or be unexported (golint)
    • Line 51: warning: exported method Client.ListWorkspacePods should have comment or be unexported (golint)
    • Line 68: warning: exported method Client.GetWorkspaceServicesAndIngress should have comment or be unexported (golint)
    • Line 108: warning: exported method Client.GetWorkspaceConfig 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!


misspell99%

Misspell Finds commonly misspelled English words