Preparing report...

Report for github.com/meshery/meshery

A+    Excellent!    Found 72 issues across 197 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!


gocyclo91%

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.

    • meshery/models/grafana_helper.go
    • Line 138: warning: cyclomatic complexity 35 of function (*GrafanaClient).ProcessBoard() is high (> 15) (gocyclo)
    • Line 247: warning: cyclomatic complexity 21 of function (*GrafanaClient).GrafanaQuery() is high (> 15) (gocyclo)
    • meshery/mesheryctl/internal/cli/root/system/check.go
    • Line 451: warning: cyclomatic complexity 22 of function (*HealthChecker).runAdapterHealthChecks() is high (> 15) (gocyclo)
    • Line 368: warning: cyclomatic complexity 18 of function (*HealthChecker).runMesheryVersionHealthChecks() is high (> 15) (gocyclo)
    • Line 188: warning: cyclomatic complexity 16 of function (*HealthChecker).runDockerHealthChecks() is high (> 15) (gocyclo)

golint70%

Golint is a linter for Go source code.

    • meshery/handlers/extensions.go
    • Line 15: warning: exported method Handler.ExtensionsEndpointHandler should have comment or be unexported (golint)
    • Line 24: warning: exported method Handler.LoadExtensionFromPackage should have comment or be unexported (golint)
    • meshery/models/smi-test.go
    • Line 7: warning: exported type SmiResult should have comment or be unexported (golint)
    • Line 18: warning: exported type Detail should have comment or be unexported (golint)
    • meshery/mesheryctl/internal/cli/root/system/check.go
    • Line 37: warning: exported type HealthCheckOptions should have comment or be unexported (golint)
    • Line 57: warning: exported type HealthChecker should have comment or be unexported (golint)
    • Line 65: warning: exported function NewHealthChecker should have comment or be unexported (golint)
    • Line 165: warning: comment on exported method HealthChecker.RunPreflightHealthChecks should be of the form "RunPreflightHealthChecks ..." (golint)
    • meshery/internal/graphql/resolver/error.go
    • Line 8: warning: exported const ErrInvalidRequestCode should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported var ErrNilClient should have comment or be unexported (golint)
    • Line 30: warning: exported function ErrUpdateData should have comment or be unexported (golint)
    • Line 34: warning: exported function ErrDeleteData should have comment or be unexported (golint)
    • Line 38: warning: exported function ErrMeshsyncSubscription should have comment or be unexported (golint)
    • Line 42: warning: exported function ErrOperatorSubscription should have comment or be unexported (golint)
    • Line 46: warning: exported function ErrAddonSubscription should have comment or be unexported (golint)
    • Line 50: warning: exported function ErrControlPlaneSubscription should have comment or be unexported (golint)
    • Line 54: warning: exported function ErrPublishBroker should have comment or be unexported (golint)
    • Line 58: warning: exported function ErrMesheryClient should have comment or be unexported (golint)
    • meshery/models/pattern/patterns/application/argo/v1alpha1/types.go
    • Line 67: warning: exported method RolloutSpec.SetResolvedSelector should have comment or be unexported (golint)
    • Line 72: warning: exported method RolloutSpec.SetResolvedTemplate should have comment or be unexported (golint)
    • Line 77: warning: exported method RolloutSpec.MarshalJSON should have comment or be unexported (golint)
    • Line 121: warning: comment on exported const ManagedByRolloutsKey should be of the form "ManagedByRolloutsKey ..." (golint)
    • Line 365: warning: exported type RolloutExperimentStepAnalysisTemplateRef should have comment or be unexported (golint)
    • Line 497: warning: exported type RolloutAnalysisTemplate should have comment or be unexported (golint)
    • Line 524: warning: exported type FieldRef should have comment or be unexported (golint)
    • Line 715: warning: exported type RolloutAnalysisRunStatus should have comment or be unexported (golint)
    • meshery/mesheryctl/pkg/utils/helpers.go
    • Line 44: warning: exported const OperatorURL should have comment (or a comment on this block) or be unexported (golint)
    • Line 55: warning: comment on exported const EndpointProtocol should be of the form "EndpointProtocol ..." (golint)
    • Line 117: warning: exported var CfgFile should have comment or be unexported (golint)
    • Line 138: warning: exported function BackupConfigFile should have comment or be unexported (golint)
    • Line 236: warning: comment on exported function NavigateToBrowser should be of the form "NavigateToBrowser ..." (golint)
    • Line 520: warning: exported function CreateDefaultSpinner should have comment or be unexported (golint)
    • Line 528: warning: exported function GetSessionData should have comment or be unexported (golint)
    • meshery/handlers/error.go
    • Line 10: warning: exported const ErrInvalidK8SConfigCode should have comment (or a comment on this block) or be unexported (golint)
    • Line 83: warning: exported var ErrInvalidK8SConfig should have comment or be unexported (golint)
    • Line 97: warning: exported function ErrPrometheusScan should have comment or be unexported (golint)
    • Line 101: warning: exported function ErrGrafanaScan should have comment or be unexported (golint)
    • Line 105: warning: exported function ErrPrometheusQuery should have comment or be unexported (golint)
    • Line 109: warning: exported function ErrGrafanaQuery should have comment or be unexported (golint)
    • Line 113: warning: exported function ErrGrafanaBoards should have comment or be unexported (golint)
    • Line 117: warning: exported function ErrPrometheusBoards should have comment or be unexported (golint)
    • Line 121: warning: exported function ErrRecordPreferences should have comment or be unexported (golint)
    • Line 125: warning: exported function ErrKubeClient should have comment or be unexported (golint)
    • Line 129: warning: exported function ErrWorkloadDefinition should have comment or be unexported (golint)
    • Line 133: warning: exported function ErrTraitDefinition should have comment or be unexported (golint)
    • Line 137: warning: exported function ErrScopeDefinition should have comment or be unexported (golint)
    • Line 141: warning: exported function ErrPatternFile should have comment or be unexported (golint)
    • Line 145: warning: exported function ErrInvalidPattern should have comment or be unexported (golint)
    • Line 149: warning: exported function ErrExecutionPlan should have comment or be unexported (golint)
    • Line 153: warning: exported function ErrCompConfigPairs should have comment or be unexported (golint)
    • Line 157: warning: exported function ErrRequestBody should have comment or be unexported (golint)
    • Line 161: warning: exported function ErrMarshal should have comment or be unexported (golint)
    • Line 165: warning: exported function ErrUnmarshal should have comment or be unexported (golint)
    • Line 169: warning: exported function ErrEncoding should have comment or be unexported (golint)
    • Line 173: warning: exported function ErrParseBool should have comment or be unexported (golint)
    • Line 177: warning: exported function ErrStreamEvents should have comment or be unexported (golint)
    • Line 181: warning: exported function ErrStreamClient should have comment or be unexported (golint)
    • Line 185: warning: exported function ErrPublishSmiResults should have comment or be unexported (golint)
    • Line 189: warning: exported function ErrPluginOpen should have comment or be unexported (golint)
    • Line 193: warning: exported function ErrPluginLookup should have comment or be unexported (golint)
    • Line 197: warning: exported function ErrPluginRun should have comment or be unexported (golint)
    • Line 201: warning: exported function ErrParseForm should have comment or be unexported (golint)
    • Line 205: warning: exported function ErrQueryGet should have comment or be unexported (golint)
    • Line 209: warning: exported function ErrGetResult should have comment or be unexported (golint)
    • Line 213: warning: exported function ErrConvertToSpec should have comment or be unexported (golint)
    • Line 217: warning: exported function ErrFetchSMIResults should have comment or be unexported (golint)
    • Line 221: warning: exported function ErrFormFile should have comment or be unexported (golint)
    • Line 225: warning: exported function ErrReadConfig should have comment or be unexported (golint)
    • Line 229: warning: exported function ErrLoadConfig should have comment or be unexported (golint)
    • Line 233: warning: exported function ErrOpenFile should have comment or be unexported (golint)
    • Line 237: warning: exported function ErrKubeVersion should have comment or be unexported (golint)
    • Line 241: warning: exported function ErrRetrieveData should have comment or be unexported (golint)
    • Line 245: warning: exported function ErrOperationID should have comment or be unexported (golint)
    • Line 249: warning: exported function ErrApplyChange should have comment or be unexported (golint)
    • Line 253: warning: exported function ErrRetrieveMeshData should have comment or be unexported (golint)
    • Line 257: warning: exported function ErrApplicationFailure should have comment or be unexported (golint)
    • Line 261: warning: exported function ErrDecoding should have comment or be unexported (golint)
    • Line 265: warning: exported function ErrRetrieveUserToken should have comment or be unexported (golint)
    • Line 269: warning: exported function ErrFailToSave should have comment or be unexported (golint)
    • Line 272: warning: exported function ErrFailToDelete should have comment or be unexported (golint)
    • Line 276: warning: exported function ErrBlankName should have comment or be unexported (golint)
    • Line 280: warning: exported function ErrConversion should have comment or be unexported (golint)
    • Line 284: warning: exported function ErrLoadTest should have comment or be unexported (golint)
    • Line 288: warning: exported function ErrFetchKubernetes should have comment or be unexported (golint)
    • Line 292: warning: exported function ErrPanicRecovery should have comment or be unexported (golint)
    • Line 296: warning: exported function ErrFailToLoadExtensions should have comment or be unexported (golint)
    • Line 300: warning: exported function ErrInvalidLTURL should have comment or be unexported (golint)
    • Line 304: warning: exported function ErrVersionCompare should have comment or be unexported (golint)
    • Line 308: warning: exported function ErrSaveSession should have comment or be unexported (golint)
    • Line 312: warning: exported function ErrCreateDir should have comment or be unexported (golint)
    • meshery/models/meshery_results_persister.go
    • Line 12: warning: exported type MesheryResultsPersister should have comment or be unexported (golint)
    • Line 38: warning: exported method MesheryResultsPersister.GetResults should have comment or be unexported (golint)
    • Line 59: warning: exported method MesheryResultsPersister.GetAllResults should have comment or be unexported (golint)
    • Line 80: warning: exported method MesheryResultsPersister.GetResult should have comment or be unexported (golint)
    • Line 88: warning: exported method MesheryResultsPersister.WriteResult should have comment or be unexported (golint)
    • meshery/mesheryctl/internal/cli/root/config/config.go
    • Line 58: warning: comment on exported function SetContext should be of the form "SetContext ..." (golint)
    • Line 89: warning: exported method MesheryCtlConfig.CheckIfGivenContextIsValid should have comment or be unexported (golint)
    • Line 115: warning: exported method MesheryCtlConfig.GetCurrentContextName should have comment or be unexported (golint)
    • Line 129: warning: comment on exported method MesheryCtlConfig.GetContext should be of the form "GetContext ..." (golint)
    • Line 388: warning: exported function SetTokenToConfig should have comment or be unexported (golint)
    • meshery/mesheryctl/pkg/utils/testing.go
    • Line 20: warning: exported type TestHelper should have comment or be unexported (golint)
    • Line 25: warning: exported type MockURL should have comment or be unexported (golint)
    • Line 36: warning: exported function NewTestHelper should have comment or be unexported (golint)
    • Line 43: warning: exported type CmdTestInput should have comment or be unexported (golint)
    • Line 49: warning: exported type GoldenFile should have comment or be unexported (golint)
    • Line 55: warning: exported function NewGoldenFile should have comment or be unexported (golint)
    • Line 59: warning: comment on exported function Equals should be of the form "Equals ..." (golint)
    • Line 68: warning: comment on exported function GetBasePath should be of the form "GetBasePath ..." (golint)
    • Line 90: warning: comment on exported method GoldenFile.LoadByte should be of the form "LoadByte ..." (golint)
    • Line 112: warning: comment on exported method GoldenFile.WriteInByte should be of the form "WriteInByte ..." (golint)
    • Line 122: warning: comment on exported function SetupContextEnv should be of the form "SetupContextEnv ..." (golint)
    • Line 142: warning: comment on exported function SetupLogrusGrabTesting should be of the form "SetupLogrusGrabTesting ..." (golint)
    • Line 150: warning: comment on exported function SetupCustomContextEnv should be of the form "SetupCustomContextEnv ..." (golint)
    • Line 166: warning: comment on exported function StartMockery should be of the form "StartMockery ..." (golint)
    • Line 187: warning: comment on exported function StopMockery should be of the form "StopMockery ..." (golint)
    • Line 192: warning: comment on exported function SetFileLocationTesting should be of the form "SetFileLocationTesting ..." (golint)
    • meshery/models/pattern/patterns/application/argo/v1alpha1/analysis_types.go
    • Line 20: warning: comment on exported type ClusterAnalysisTemplateList should be of the form "ClusterAnalysisTemplateList ..." (with optional leading article) (golint)
    • Line 217: warning: exported type ValueFrom should have comment or be unexported (golint)
    • Line 225: warning: exported type SecretKeyRef should have comment or be unexported (golint)
    • Line 290: warning: exported type KayentaMetric should have comment or be unexported (golint)
    • Line 306: warning: exported type KayentaThreshold should have comment or be unexported (golint)
    • Line 311: warning: exported type KayentaScope should have comment or be unexported (golint)
    • Line 317: warning: exported type ScopeDetail should have comment or be unexported (golint)
    • Line 325: warning: exported type WebMetric should have comment or be unexported (golint)
    • Line 338: warning: exported type WebMetricHeader should have comment or be unexported (golint)
    • Line 343: warning: exported type DatadogMetric should have comment or be unexported (golint)
    • meshery/models/meshery_application_persister.go
    • Line 65: warning: exported method MesheryApplicationPersister.SaveMesheryApplication should have comment or be unexported (golint)
    • Line 97: warning: exported method MesheryApplicationPersister.GetMesheryApplication should have comment or be unexported (golint)
    • meshery/mesheryctl/pkg/utils/compose.go
    • Line 3: warning: exported type K8sCompose should have comment or be unexported (golint)
    • Line 11: warning: exported type Spec should have comment or be unexported (golint)
    • Line 18: warning: exported type Template should have comment or be unexported (golint)
    • Line 23: warning: exported type TemplateSpec should have comment or be unexported (golint)
    • Line 29: warning: exported type Containers should have comment or be unexported (golint)
    • Line 37: warning: exported type DockerCompose should have comment or be unexported (golint)
    • Line 42: warning: exported type Service should have comment or be unexported (golint)
    • Line 50: warning: exported type Volumes should have comment or be unexported (golint)
    • meshery/handlers/doc.go
    • Line 59: warning: comment on exported type IDParameterWrapper should be of the form "IDParameterWrapper ..." (with optional leading article) (golint)
    • Line 202: warning: comment on exported type UUIDParamsWrapper should be of the form "UUIDParamsWrapper ..." (with optional leading article) (golint)
    • meshery/models/default_local_provider.go
    • Line 155: warning: comment on exported method DefaultLocalProvider.FetchAllResults should be of the form "FetchAllResults ..." (golint)
    • Line 395: warning: exported method DefaultLocalProvider.SaveMesheryPatternResource should have comment or be unexported (golint)
    • Line 399: warning: exported method DefaultLocalProvider.GetMesheryPatternResource should have comment or be unexported (golint)
    • Line 404: warning: exported method DefaultLocalProvider.GetMesheryPatternResources should have comment or be unexported (golint)
    • Line 437: warning: exported method DefaultLocalProvider.DeleteMesheryResource should have comment or be unexported (golint)
    • meshery/models/schedule.go
    • Line 5: warning: comment on exported type SchedulesAPIResponse should be of the form "SchedulesAPIResponse ..." (with optional leading article) (golint)
    • meshery/models/remote_provider.go
    • Line 732: warning: exported method RemoteProvider.SaveMesheryPatternResource should have comment or be unexported (golint)
    • Line 779: warning: exported method RemoteProvider.GetMesheryPatternResource should have comment or be unexported (golint)
    • Line 820: warning: exported method RemoteProvider.GetMesheryPatternResources should have comment or be unexported (golint)
    • Line 900: warning: exported method RemoteProvider.DeleteMesheryResource should have comment or be unexported (golint)
    • Line 1124: warning: exported method RemoteProvider.RemotePatternFile should have comment or be unexported (golint)
    • Line 1401: warning: exported method RemoteProvider.RemoteFilterFile should have comment or be unexported (golint)
    • Line 1638: warning: exported method RemoteProvider.RemoteApplicationFile should have comment or be unexported (golint)
    • meshery/internal/channels/meshsync.go
    • Line 4: warning: exported var MeshSync should have comment or be unexported (golint)
    • Line 7: warning: exported function NewMeshSyncChannel should have comment or be unexported (golint)
    • Line 11: warning: exported type MeshSyncChannel should have comment or be unexported (golint)
    • Line 13: warning: exported method MeshSyncChannel.Stop should have comment or be unexported (golint)
    • meshery/helpers/error.go
    • Line 8: warning: exported const ErrErrNewDynamicClientGeneratorCode should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported function ErrNewDynamicClientGenerator should have comment or be unexported (golint)
    • Line 39: warning: exported function ErrInvalidK8SConfig should have comment or be unexported (golint)
    • Line 43: warning: exported function ErrClientConfig should have comment or be unexported (golint)
    • Line 47: warning: exported function ErrFetchKubernetesNodes should have comment or be unexported (golint)
    • Line 51: warning: exported function ErrFetchNodes should have comment or be unexported (golint)
    • Line 55: warning: exported function ErrFetchKubernetesVersion should have comment or be unexported (golint)
    • Line 59: warning: exported function ErrScanKubernetes should have comment or be unexported (golint)
    • Line 63: warning: exported function ErrRetrievePodList should have comment or be unexported (golint)
    • Line 67: warning: exported function ErrDetectServiceForDeploymentImage should have comment or be unexported (golint)
    • Line 71: warning: exported function ErrRetrieveNamespacesList should have comment or be unexported (golint)
    • Line 75: warning: exported function ErrGetNamespaceDeployments should have comment or be unexported (golint)
    • Line 79: warning: exported function ErrDetectServiceWithName should have comment or be unexported (golint)
    • Line 83: warning: exported function ErrGeneratingLoadTest should have comment or be unexported (golint)
    • Line 87: warning: exported function ErrRunningTest should have comment or be unexported (golint)
    • Line 91: warning: exported function ErrConvertingResultToMap should have comment or be unexported (golint)
    • Line 95: warning: exported function ErrUnmarshal should have comment or be unexported (golint)
    • Line 99: warning: exported function ErrGrpcSupport should have comment or be unexported (golint)
    • Line 103: warning: exported function ErrTransformingData should have comment or be unexported (golint)
    • Line 107: warning: exported function ErrRunningNighthawkServer should have comment or be unexported (golint)
    • Line 111: warning: exported function ErrAddAndValidateExtraHeader should have comment or be unexported (golint)
    • Line 115: warning: exported function ErrInClusterConfig should have comment or be unexported (golint)
    • Line 119: warning: exported function ErrNewKubeClientGenerator should have comment or be unexported (golint)
    • Line 123: warning: exported function ErrRestConfigFromKubeConfig should have comment or be unexported (golint)
    • Line 127: warning: exported function ErrClientSet should have comment or be unexported (golint)
    • Line 131: warning: exported function ErrStartingNighthawkServer should have comment or be unexported (golint)
    • Line 135: warning: exported function ErrNewKubeClient should have comment or be unexported (golint)
    • meshery/models/pattern/patterns/application/engine.go
    • Line 10: warning: exported type RolloutEngineGenericOptions should have comment or be unexported (golint)
    • Line 20: warning: exported type RolloutEngineGenericOptionsMetadata should have comment or be unexported (golint)
    • Line 25: warning: exported type RolloutEngineContainer should have comment or be unexported (golint)
    • Line 32: warning: exported type RolloutEngineContainerPort should have comment or be unexported (golint)
    • Line 37: warning: exported type RolloutEngineContainerResource should have comment or be unexported (golint)
    • Line 41: warning: exported type RolloutEngineCanaryOptions should have comment or be unexported (golint)
    • Line 46: warning: exported type RolloutEngineCanaryStep should have comment or be unexported (golint)
    • Line 51: warning: exported type RolloutEngineCanaryStepPause should have comment or be unexported (golint)
    • Line 56: warning: exported type RolloutEngine should have comment or be unexported (golint)
    • Line 62: warning: exported function NewRolloutEngine should have comment or be unexported (golint)
    • meshery/models/meshery_pattern_persister.go
    • Line 65: warning: exported method MesheryPatternPersister.SaveMesheryPattern should have comment or be unexported (golint)
    • Line 97: warning: exported method MesheryPatternPersister.GetMesheryPattern should have comment or be unexported (golint)
    • meshery/models/preference.go
    • Line 77: warning: comment on exported type PreferenceParams should be of the form "PreferenceParams ..." (with optional leading article) (golint)
    • Line 111: warning: comment on exported type GrafanaConfigParams should be of the form "GrafanaConfigParams ..." (with optional leading article) (golint)
    • meshery/internal/graphql/model/operator_helper.go
    • Line 23: warning: exported const Namespace should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported function Initialize should have comment or be unexported (golint)
    • Line 48: warning: exported function GetOperator should have comment or be unexported (golint)
    • Line 70: warning: exported function GetControllersInfo should have comment or be unexported (golint)
    • Line 126: warning: exported function SubscribeToBroker should have comment or be unexported (golint)
    • meshery/internal/graphql/model/error.go
    • Line 8: warning: exported const ErrInvalidRequestCode should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported var ErrEmptyHandler should have comment or be unexported (golint)
    • Line 27: warning: exported function ErrCreateData should have comment or be unexported (golint)
    • Line 31: warning: exported function ErrUpdateData should have comment or be unexported (golint)
    • Line 35: warning: exported function ErrDeleteData should have comment or be unexported (golint)
    • Line 39: warning: exported function ErrQuery should have comment or be unexported (golint)
    • Line 43: warning: exported function ErrMeshsyncSubscription should have comment or be unexported (golint)
    • Line 47: warning: exported function ErrSubscribeChannel should have comment or be unexported (golint)
    • Line 51: warning: exported function ErrPublishBroker should have comment or be unexported (golint)
    • Line 55: warning: exported function ErrMesheryClient should have comment or be unexported (golint)
    • meshery/models/error.go
    • Line 12: warning: exported const ErrGrafanaClientCode should have comment (or a comment on this block) or be unexported (golint)
    • Line 81: warning: exported var ErrResultID should have comment or be unexported (golint)
    • Line 104: warning: exported function ErrGrafanaClient should have comment or be unexported (golint)
    • Line 108: warning: exported function ErrPageSize should have comment or be unexported (golint)
    • Line 112: warning: exported function ErrPageNumber should have comment or be unexported (golint)
    • Line 116: warning: exported function ErrPerfID should have comment or be unexported (golint)
    • Line 120: warning: exported function ErrMarshal should have comment or be unexported (golint)
    • Line 124: warning: exported function ErrUnmarshal should have comment or be unexported (golint)
    • Line 128: warning: exported function ErrEncoding should have comment or be unexported (golint)
    • Line 132: warning: exported function ErrFetch should have comment or be unexported (golint)
    • Line 136: warning: exported function ErrPost should have comment or be unexported (golint)
    • Line 140: warning: exported function ErrDelete should have comment or be unexported (golint)
    • Line 144: warning: exported function ErrDecodeBase64 should have comment or be unexported (golint)
    • Line 148: warning: exported function ErrMarshalPKIX should have comment or be unexported (golint)
    • Line 152: warning: exported function ErrEncodingPEM should have comment or be unexported (golint)
    • Line 156: warning: exported function ErrPraseUnverified should have comment or be unexported (golint)
    • Line 160: warning: exported function ErrDataRead should have comment or be unexported (golint)
    • Line 164: warning: exported function ErrResultData should have comment or be unexported (golint)
    • Line 168: warning: exported function ErrUnableToPersistsResult should have comment or be unexported (golint)
    • Line 172: warning: exported function ErrGenerateUUID should have comment or be unexported (golint)
    • Line 176: warning: exported function ErrGrafanaOrg should have comment or be unexported (golint)
    • Line 180: warning: exported function ErrGrafanaBoards should have comment or be unexported (golint)
    • Line 184: warning: exported function ErrGrafanaDashboard should have comment or be unexported (golint)
    • Line 188: warning: exported function ErrGrafanaDataSource should have comment or be unexported (golint)
    • Line 192: warning: exported function ErrGrafanaData should have comment or be unexported (golint)
    • Line 196: warning: exported function ErrMakeDir should have comment or be unexported (golint)
    • Line 200: warning: exported function ErrFolderStat should have comment or be unexported (golint)
    • Line 204: warning: exported function ErrDBOpen should have comment or be unexported (golint)
    • Line 208: warning: exported function ErrDBRLock should have comment or be unexported (golint)
    • Line 212: warning: exported function ErrDBLock should have comment or be unexported (golint)
    • Line 216: warning: exported function ErrDBRead should have comment or be unexported (golint)
    • Line 220: warning: exported function ErrDBPut should have comment or be unexported (golint)
    • Line 224: warning: exported function ErrDBDelete should have comment or be unexported (golint)
    • Line 228: warning: exported function ErrCopy should have comment or be unexported (golint)
    • Line 232: warning: exported function ErrPrometheusGetNodes should have comment or be unexported (golint)
    • Line 236: warning: exported function ErrPrometheusStaticBoard should have comment or be unexported (golint)
    • Line 240: warning: exported function ErrPrometheusLabelSeries should have comment or be unexported (golint)
    • Line 244: warning: exported function ErrPrometheusQueryRange should have comment or be unexported (golint)
    • Line 248: warning: exported function ErrTokenRefresh should have comment or be unexported (golint)
    • Line 252: warning: exported function ErrGetToken should have comment or be unexported (golint)
    • Line 256: warning: exported function ErrTokenDecode should have comment or be unexported (golint)
    • Line 260: warning: exported function ErrTokenClientCheck should have comment or be unexported (golint)
    • Line 264: warning: exported function ErrTokenPrase should have comment or be unexported (golint)
    • Line 268: warning: exported function ErrJWKsKeys should have comment or be unexported (golint)
    • Line 272: warning: exported function ErrInvalidCapability should have comment or be unexported (golint)
    • Line 276: warning: exported function ErrFetchData should have comment or be unexported (golint)
    • Line 280: warning: exported function ErrSessionCopy should have comment or be unexported (golint)
    • meshery/models/pattern_resource_persister.go
    • Line 10: warning: exported type PatternResourcePersister should have comment or be unexported (golint)
    • Line 14: warning: exported type PatternResourcePage should have comment or be unexported (golint)
    • Line 21: warning: exported method PatternResourcePersister.SavePatternResource should have comment or be unexported (golint)
    • Line 34: warning: exported method PatternResourcePersister.DeletePatternResource should have comment or be unexported (golint)
    • Line 38: warning: exported method PatternResourcePersister.GetPatternResource should have comment or be unexported (golint)
    • Line 45: warning: exported method PatternResourcePersister.GetPatternResourceByAttributes should have comment or be unexported (golint)
    • Line 59: warning: exported method PatternResourcePersister.GetPatternResources should have comment or be unexported (golint)
    • Line 102: warning: exported method PatternResourcePersister.Exists should have comment or be unexported (golint)
    • meshery/internal/channels/broker.go
    • Line 6: warning: exported var BrokerPublish should have comment or be unexported (golint)
    • Line 10: warning: exported type BrokerPublishPayload should have comment or be unexported (golint)
    • Line 15: warning: exported function NewBrokerSubscribeChannel should have comment or be unexported (golint)
    • Line 19: warning: exported type BrokerSubscribeChannel should have comment or be unexported (golint)
    • Line 21: warning: exported method BrokerSubscribeChannel.Stop should have comment or be unexported (golint)
    • Line 25: warning: exported function NewBrokerPublishChannel should have comment or be unexported (golint)
    • Line 29: warning: exported type BrokerPublishChannel should have comment or be unexported (golint)
    • Line 31: warning: exported method BrokerPublishChannel.Stop should have comment or be unexported (golint)
    • meshery/mesheryctl/internal/cli/root/constants/constants.go
    • Line 22: warning: exported function GetMesheryctlVersion should have comment or be unexported (golint)
    • Line 26: warning: exported function GetMesheryctlCommitsha should have comment or be unexported (golint)
    • Line 30: warning: exported function GetMesheryctlReleaseChannel should have comment or be unexported (golint)
    • Line 34: warning: comment on exported function GetTokenLocation should be of the form "GetTokenLocation ..." (golint)
    • meshery/mesheryctl/internal/cli/root/system/error.go
    • Line 10: warning: exported const ErrHealthCheckFailedCode should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported function ErrHealthCheckFailed should have comment or be unexported (golint)
    • Line 25: warning: exported function ErrInvalidAdapter should have comment or be unexported (golint)
    • Line 29: warning: exported function ErrDownloadFile should have comment or be unexported (golint)
    • Line 33: warning: exported function ErrStopMeshery should have comment or be unexported (golint)
    • Line 37: warning: exported function ErrResetMeshconfig should have comment or be unexported (golint)
    • Line 41: warning: exported function ErrApplyManifest should have comment or be unexported (golint)
    • Line 45: warning: exported function ErrApplyOperatorManifest should have comment or be unexported (golint)
    • Line 49: warning: exported function ErrCreateDir should have comment or be unexported (golint)
    • Line 53: warning: exported function ErrUnmarshal should have comment or be unexported (golint)
    • meshery/models/bitcask_smiresults_persister.go
    • Line 58: warning: comment on exported method BitCaskSmiResultsPersister.GetResults should be of the form "GetResults ..." (golint)
    • Line 116: warning: comment on exported method BitCaskSmiResultsPersister.WriteResult should be of the form "WriteResult ..." (golint)
    • Line 136: warning: comment on exported method BitCaskSmiResultsPersister.CloseResultPersister should be of the form "CloseResultPersister ..." (golint)
    • meshery/models/providers.go
    • Line 23: warning: comment on exported type Router should be of the form "Router ..." (with optional leading article) (golint)
    • Line 109: warning: exported const PersistResults should have comment (or a comment on this block) or be unexported (golint)
    • meshery/models/pattern/utils/k8s.go
    • Line 131: warning: comment on exported function DeleteK8sResource should be of the form "DeleteK8sResource ..." (golint)
    • Line 150: warning: exported function CreateNamespace should have comment or be unexported (golint)
    • meshery/models/meshery_filter_persister.go
    • Line 65: warning: exported method MesheryFilterPersister.SaveMesheryFilter should have comment or be unexported (golint)
    • Line 97: warning: exported method MesheryFilterPersister.GetMesheryFilter should have comment or be unexported (golint)
    • Line 104: warning: exported method MesheryFilterPersister.GetMesheryFilterFile should have comment or be unexported (golint)
    • meshery/models/performance_profile_persister.go
    • Line 74: warning: exported method PerformanceProfilePersister.SavePerformanceProfile should have comment or be unexported (golint)
    • Line 78: warning: exported method PerformanceProfilePersister.GetPerformanceProfile 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!