Preparing report...

Report for github.com/appscode/searchlight

A+    Excellent!    Found 109 issues across 191 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!


gocyclo98%

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.


golint43%

Golint is a linter for Go source code.

    • searchlight/pkg/operator/migrations.go
    • Line 13: warning: exported method Operator.MigrateAlerts should have comment or be unexported (golint)
    • Line 28: warning: exported method Operator.MigrateClusterAlerts should have comment or be unexported (golint)
    • Line 52: warning: exported method Operator.MigratePodAlert should have comment or be unexported (golint)
    • Line 76: warning: exported method Operator.MigrateNodeAlert should have comment or be unexported (golint)
    • searchlight/test/e2e/framework/statefulset.go
    • Line 8: warning: should not use dot imports (golint)
    • Line 15: warning: exported method Invocation.StatefulSet should have comment or be unexported (golint)
    • Line 61: warning: exported method Framework.GetStatefulSet should have comment or be unexported (golint)
    • Line 65: warning: exported method Framework.CreateStatefulSet should have comment or be unexported (golint)
    • Line 69: warning: exported method Framework.DeleteStatefulSet should have comment or be unexported (golint)
    • Line 73: warning: exported method Framework.EventuallyStatefulSet should have comment or be unexported (golint)
    • searchlight/pkg/operator/config.go
    • Line 23: warning: exported type Config should have comment or be unexported (golint)
    • Line 34: warning: exported type OperatorConfig should have comment or be unexported (golint)
    • Line 45: warning: exported function NewOperatorConfig should have comment or be unexported (golint)
    • Line 51: warning: exported method OperatorConfig.New should have comment or be unexported (golint)
    • searchlight/apis/monitoring/v1alpha1/crd.go
    • Line 9: warning: exported var EnableStatusSubresource should have comment or be unexported (golint)
    • Line 12: warning: exported method ClusterAlert.CustomResourceDefinition should have comment or be unexported (golint)
    • Line 55: warning: exported method NodeAlert.CustomResourceDefinition should have comment or be unexported (golint)
    • Line 98: warning: exported method PodAlert.CustomResourceDefinition should have comment or be unexported (golint)
    • Line 141: warning: exported method Incident.CustomResourceDefinition should have comment or be unexported (golint)
    • Line 178: warning: exported method SearchlightPlugin.CustomResourceDefinition should have comment or be unexported (golint)
    • searchlight/pkg/server/server.go
    • Line 25: warning: exported var Scheme should have comment or be unexported (golint)
    • Line 48: warning: exported type SearchlightConfig should have comment or be unexported (golint)
    • Line 59: warning: exported method SearchlightServer.Run should have comment or be unexported (golint)
    • Line 69: warning: exported type CompletedConfig should have comment or be unexported (golint)
    • searchlight/test/e2e/framework/podalerts.go
    • Line 10: warning: should not use dot imports (golint)
    • Line 14: warning: exported method Invocation.PodAlert should have comment or be unexported (golint)
    • Line 30: warning: exported method Framework.CreatePodAlert should have comment or be unexported (golint)
    • Line 35: warning: exported method Framework.GetPodAlert should have comment or be unexported (golint)
    • Line 39: warning: exported method Framework.DeletePodAlert should have comment or be unexported (golint)
    • Line 85: warning: exported method Framework.EventuallyPodAlertIcingaService should have comment or be unexported (golint)
    • Line 123: warning: exported method Framework.CleanPodAlert should have comment or be unexported (golint)
    • searchlight/test/e2e/framework/notification.go
    • Line 14: warning: exported method Framework.ForceCheckClusterAlert should have comment or be unexported (golint)
    • Line 30: warning: exported method Framework.SendClusterAlertCustomNotification should have comment or be unexported (golint)
    • Line 43: warning: exported method Framework.AcknowledgeClusterAlertNotification should have comment or be unexported (golint)
    • searchlight/pkg/plugin/lib.go
    • Line 20: warning: comment on exported var PluginTypeMeta should be of the form "PluginTypeMeta ..." (golint)
    • Line 26: warning: exported function MarshallPlugin should have comment or be unexported (golint)
    • searchlight/apis/incidents/types.go
    • Line 27: warning: exported type Acknowledgement should have comment or be unexported (golint)
    • Line 35: warning: exported type AcknowledgementRequest should have comment or be unexported (golint)
    • Line 44: warning: exported type AcknowledgementResponse should have comment or be unexported (golint)
    • searchlight/test/e2e/framework/clusteralerts.go
    • Line 10: warning: should not use dot imports (golint)
    • Line 14: warning: exported method Invocation.ClusterAlert should have comment or be unexported (golint)
    • Line 31: warning: exported method Framework.CreateClusterAlert should have comment or be unexported (golint)
    • Line 36: warning: exported method Framework.GetClusterAlert should have comment or be unexported (golint)
    • Line 40: warning: exported method Framework.DeleteClusterAlert should have comment or be unexported (golint)
    • Line 51: warning: exported method Framework.EventuallyClusterAlertIcingaService should have comment or be unexported (golint)
    • Line 96: warning: exported method Framework.EventuallyClusterAlertIcingaNotification should have comment or be unexported (golint)
    • Line 120: warning: exported method Framework.CleanClusterAlert should have comment or be unexported (golint)
    • searchlight/test/e2e/framework/replicaset.go
    • Line 8: warning: should not use dot imports (golint)
    • Line 14: warning: exported method Invocation.ReplicaSet should have comment or be unexported (golint)
    • Line 35: warning: exported method Framework.GetReplicaSet should have comment or be unexported (golint)
    • Line 39: warning: exported method Framework.CreateReplicaSet should have comment or be unexported (golint)
    • Line 43: warning: exported method Framework.DeleteReplicaSet should have comment or be unexported (golint)
    • Line 47: warning: exported method Framework.EventuallyReplicaSet should have comment or be unexported (golint)
    • searchlight/pkg/eventer/recorder.go
    • Line 12: warning: comment on exported const EventReasonAlertInvalid should be of the form "EventReasonAlertInvalid ..." (golint)
    • Line 14: warning: exported const EventReasonSuccessfulCreate should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: comment on exported const EventReasonUpdating should be of the form "EventReasonUpdating ..." (golint)
    • Line 21: warning: comment on exported const EventReasonDeleting should be of the form "EventReasonDeleting ..." (golint)
    • Line 26: warning: comment on exported const EventReasonSync should be of the form "EventReasonSync ..." (golint)
    • Line 32: warning: exported function NewEventRecorder should have comment or be unexported (golint)
    • searchlight/plugins/check_volume/lib.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 203: warning: exported type AuthInfo should have comment or be unexported (golint)
    • Line 343: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 357: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 367: warning: exported function NewCmd should have comment or be unexported (golint)
    • searchlight/pkg/cmds/server/start.go
    • Line 12: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 16: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 26: warning: exported type SearchlightOptions should have comment or be unexported (golint)
    • Line 34: warning: exported function NewSearchlightOptions should have comment or be unexported (golint)
    • Line 52: warning: exported method SearchlightOptions.AddFlags should have comment or be unexported (golint)
    • Line 57: warning: exported method SearchlightOptions.Validate should have comment or be unexported (golint)
    • Line 61: warning: exported method SearchlightOptions.Complete should have comment or be unexported (golint)
    • Line 66: warning: exported method SearchlightOptions.Config should have comment or be unexported (golint)
    • Line 100: warning: exported method SearchlightOptions.Run should have comment or be unexported (golint)
    • searchlight/plugins/check_webhook/lib.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 26: warning: exported const FlagCheckCommand should have comment (or a comment on this block) or be unexported (golint)
    • Line 181: warning: exported function NewCmd should have comment or be unexported (golint)
    • searchlight/pkg/plugin/pod_alert.go
    • Line 8: warning: exported function GetPodStatusPlugin should have comment or be unexported (golint)
    • Line 28: warning: exported function GetPodVolumePlugin should have comment or be unexported (golint)
    • Line 65: warning: exported function GetPodExecPlugin should have comment or be unexported (golint)
    • searchlight/apis/monitoring/v1alpha1/incident.go
    • Line 8: warning: exported const ResourceKindIncident should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type Incident should have comment or be unexported (golint)
    • Line 28: warning: exported type IncidentStatus should have comment or be unexported (golint)
    • Line 37: warning: exported type IncidentNotificationType should have comment or be unexported (golint)
    • Line 47: warning: exported type IncidentNotification should have comment or be unexported (golint)
    • searchlight/pkg/cmds/server/options.go
    • Line 22: warning: exported type OperatorOptions should have comment or be unexported (golint)
    • Line 33: warning: exported function NewOperatorOptions should have comment or be unexported (golint)
    • Line 45: warning: exported method OperatorOptions.AddGoFlags should have comment or be unexported (golint)
    • Line 54: warning: exported method OperatorOptions.AddFlags should have comment or be unexported (golint)
    • Line 60: warning: exported method OperatorOptions.ApplyTo should have comment or be unexported (golint)
    • searchlight/test/e2e/framework/service.go
    • Line 10: warning: should not use dot imports (golint)
    • Line 16: warning: exported const TEST_HEADLESS_SERVICE should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported method Framework.CreateService should have comment or be unexported (golint)
    • Line 24: warning: exported method Framework.DeleteService should have comment or be unexported (golint)
    • Line 28: warning: exported method Framework.GetServiceEndpoint should have comment or be unexported (golint)
    • Line 73: warning: exported method Framework.EventuallyServiceLoadBalancer should have comment or be unexported (golint)
    • searchlight/apis/incidents/v1alpha1/types.go
    • Line 24: warning: exported const ResourceKindAcknowledgement should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported type Acknowledgement should have comment or be unexported (golint)
    • Line 42: warning: exported type AcknowledgementRequest should have comment or be unexported (golint)
    • Line 51: warning: exported type AcknowledgementResponse should have comment or be unexported (golint)
    • searchlight/test/e2e/framework/httpserver.go
    • Line 10: warning: should not use dot imports (golint)
    • Line 13: warning: exported type Message should have comment or be unexported (golint)
    • Line 18: warning: exported function StartServer should have comment or be unexported (golint)
    • Line 39: warning: exported method Framework.EventuallyHTTPServerResponse should have comment or be unexported (golint)
    • searchlight/plugins/check_node_exists/lib.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 88: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 94: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 104: warning: exported function NewCmd should have comment or be unexported (golint)
    • searchlight/apis/monitoring/v1alpha1/cluster_alert.go
    • Line 14: warning: exported const ResourceKindClusterAlert should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type ClusterAlert should have comment or be unexported (golint)
    • Line 76: warning: exported method ClusterAlert.GetName should have comment or be unexported (golint)
    • Line 80: warning: exported method ClusterAlert.GetNamespace should have comment or be unexported (golint)
    • Line 84: warning: exported method ClusterAlert.Command should have comment or be unexported (golint)
    • Line 88: warning: exported method ClusterAlert.GetCheckInterval should have comment or be unexported (golint)
    • Line 92: warning: exported method ClusterAlert.GetAlertInterval should have comment or be unexported (golint)
    • Line 96: warning: exported method ClusterAlert.IsValid should have comment or be unexported (golint)
    • Line 126: warning: exported method ClusterAlert.GetNotifierSecretName should have comment or be unexported (golint)
    • Line 130: warning: exported method ClusterAlert.GetReceivers should have comment or be unexported (golint)
    • Line 134: warning: exported method ClusterAlert.ObjectReference should have comment or be unexported (golint)
    • searchlight/test/e2e/framework/secret.go
    • Line 12: warning: exported method Invocation.GetWebHookSecret should have comment or be unexported (golint)
    • Line 22: warning: exported method Framework.CreateWebHookSecret should have comment or be unexported (golint)
    • Line 27: warning: exported method Invocation.GetIcingaApiPassword should have comment or be unexported (golint)
    • searchlight/pkg/icinga/pod.go
    • Line 8: warning: exported type PodHost should have comment or be unexported (golint)
    • Line 12: warning: exported function NewPodHost should have comment or be unexported (golint)
    • Line 30: warning: exported method PodHost.Apply should have comment or be unexported (golint)
    • Line 75: warning: exported method PodHost.Delete should have comment or be unexported (golint)
    • Line 84: warning: exported method PodHost.DeleteChecks should have comment or be unexported (golint)
    • searchlight/pkg/admission/plugin/admission.go
    • Line 16: warning: exported type CRDValidator should have comment or be unexported (golint)
    • Line 22: warning: exported method CRDValidator.Resource should have comment or be unexported (golint)
    • Line 31: warning: exported method CRDValidator.Initialize should have comment or be unexported (golint)
    • Line 44: warning: exported method CRDValidator.Admit should have comment or be unexported (golint)
    • searchlight/pkg/icinga/node.go
    • Line 8: warning: exported type NodeHost should have comment or be unexported (golint)
    • Line 14: warning: exported function NewNodeHost should have comment or be unexported (golint)
    • Line 39: warning: comment on exported method NodeHost.Apply should be of the form "Apply ..." (golint)
    • Line 84: warning: exported method NodeHost.Delete should have comment or be unexported (golint)
    • Line 93: warning: exported method NodeHost.DeleteChecks should have comment or be unexported (golint)
    • searchlight/pkg/icinga/cluster.go
    • Line 7: warning: exported type ClusterHost should have comment or be unexported (golint)
    • Line 11: warning: exported function NewClusterHost should have comment or be unexported (golint)
    • Line 28: warning: exported method ClusterHost.Apply should have comment or be unexported (golint)
    • Line 76: warning: exported method ClusterHost.Delete should have comment or be unexported (golint)
    • Line 84: warning: exported method ClusterHost.DeleteChecks should have comment or be unexported (golint)
    • searchlight/pkg/registry/acknowledgement/acknowledgement.go
    • Line 26: warning: exported type REST should have comment or be unexported (golint)
    • Line 37: warning: exported function NewREST should have comment or be unexported (golint)
    • Line 44: warning: exported method REST.NamespaceScoped should have comment or be unexported (golint)
    • Line 48: warning: exported method REST.New should have comment or be unexported (golint)
    • Line 52: warning: exported method REST.GroupVersionKind should have comment or be unexported (golint)
    • Line 56: warning: exported method REST.Categories should have comment or be unexported (golint)
    • Line 60: warning: exported method REST.Create should have comment or be unexported (golint)
    • Line 116: warning: exported method REST.Delete should have comment or be unexported (golint)
    • searchlight/test/e2e/framework/namespace.go
    • Line 8: warning: exported method Framework.Namespace should have comment or be unexported (golint)
    • Line 12: warning: exported method Framework.CreateNamespace should have comment or be unexported (golint)
    • Line 22: warning: exported method Framework.DeleteNamespace should have comment or be unexported (golint)
    • searchlight/apis/monitoring/v1alpha1/plugin.go
    • Line 12: warning: exported const ResourceKindSearchlightPlugin should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported type SearchlightPlugin should have comment or be unexported (golint)
    • Line 49: warning: exported type WebhookServiceSpec should have comment or be unexported (golint)
    • Line 56: warning: exported type VarType should have comment or be unexported (golint)
    • Line 59: warning: exported const VarTypeInteger should have comment (or a comment on this block) or be unexported (golint)
    • Line 66: warning: exported type PluginVarField should have comment or be unexported (golint)
    • Line 71: warning: exported type PluginVars should have comment or be unexported (golint)
    • Line 76: warning: exported type PluginArguments should have comment or be unexported (golint)
    • searchlight/apis/monitoring/v1alpha1/pod_alert.go
    • Line 14: warning: exported const ResourceKindPodAlert should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type PodAlert should have comment or be unexported (golint)
    • Line 80: warning: exported method PodAlert.GetName should have comment or be unexported (golint)
    • Line 84: warning: exported method PodAlert.GetNamespace should have comment or be unexported (golint)
    • Line 88: warning: exported method PodAlert.Command should have comment or be unexported (golint)
    • Line 92: warning: exported method PodAlert.GetCheckInterval should have comment or be unexported (golint)
    • Line 96: warning: exported method PodAlert.GetAlertInterval should have comment or be unexported (golint)
    • Line 100: warning: exported method PodAlert.IsValid should have comment or be unexported (golint)
    • Line 143: warning: exported method PodAlert.GetNotifierSecretName should have comment or be unexported (golint)
    • Line 147: warning: exported method PodAlert.GetReceivers should have comment or be unexported (golint)
    • Line 151: warning: exported method PodAlert.ObjectReference should have comment or be unexported (golint)
    • searchlight/test/e2e/framework/deployment.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 12: warning: exported method Invocation.Deployment should have comment or be unexported (golint)
    • Line 33: warning: exported method Framework.CreateDeployment should have comment or be unexported (golint)
    • Line 38: warning: exported method Framework.DeleteDeployment should have comment or be unexported (golint)
    • Line 42: warning: exported method Framework.EventuallyDeployment should have comment or be unexported (golint)
    • searchlight/apis/monitoring/v1alpha1/node_alert.go
    • Line 14: warning: exported const ResourceKindNodeAlert should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type NodeAlert should have comment or be unexported (golint)
    • Line 80: warning: exported method NodeAlert.GetName should have comment or be unexported (golint)
    • Line 84: warning: exported method NodeAlert.GetNamespace should have comment or be unexported (golint)
    • Line 88: warning: exported method NodeAlert.Command should have comment or be unexported (golint)
    • Line 92: warning: exported method NodeAlert.GetCheckInterval should have comment or be unexported (golint)
    • Line 96: warning: exported method NodeAlert.GetAlertInterval should have comment or be unexported (golint)
    • Line 100: warning: exported method NodeAlert.IsValid should have comment or be unexported (golint)
    • Line 134: warning: exported method NodeAlert.GetNotifierSecretName should have comment or be unexported (golint)
    • Line 138: warning: exported method NodeAlert.GetReceivers should have comment or be unexported (golint)
    • Line 142: warning: exported method NodeAlert.ObjectReference should have comment or be unexported (golint)
    • searchlight/client/clientset/versioned/typed/monitoring/v1alpha1/util/incident.go
    • Line 19: warning: exported function CreateOrPatchIncident should have comment or be unexported (golint)
    • Line 37: warning: exported function PatchIncident should have comment or be unexported (golint)
    • Line 41: warning: exported function PatchIncidentObject should have comment or be unexported (golint)
    • Line 64: warning: exported function TryUpdateIncident should have comment or be unexported (golint)
    • Line 85: warning: exported function UpdateIncidentStatus should have comment or be unexported (golint)
    • searchlight/pkg/plugin/cluster_alert.go
    • Line 8: warning: exported function GetComponentStatusPlugin should have comment or be unexported (golint)
    • Line 37: warning: exported function GetJsonPathPlugin should have comment or be unexported (golint)
    • Line 74: warning: exported function GetNodeExistsPlugin should have comment or be unexported (golint)
    • Line 106: warning: exported function GetPodExistsPlugin should have comment or be unexported (golint)
    • Line 139: warning: exported function GetEventPlugin should have comment or be unexported (golint)
    • Line 178: warning: exported function GetCACertPlugin should have comment or be unexported (golint)
    • Line 207: warning: exported function GetCertPlugin should have comment or be unexported (golint)
    • searchlight/plugins/check_pod_exists/lib.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 102: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 108: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 118: warning: exported function NewCmd should have comment or be unexported (golint)
    • searchlight/pkg/operator/controller.go
    • Line 26: warning: exported type Operator should have comment or be unexported (golint)
    • Line 89: warning: exported method Operator.RunInformers should have comment or be unexported (golint)
    • Line 122: warning: exported method Operator.Run should have comment or be unexported (golint)
    • searchlight/test/e2e/framework/framework.go
    • Line 12: warning: exported type Framework should have comment or be unexported (golint)
    • Line 23: warning: exported function New should have comment or be unexported (golint)
    • Line 36: warning: exported method Framework.SetIcingaClient should have comment or be unexported (golint)
    • Line 41: warning: exported method Framework.Invoke should have comment or be unexported (golint)
    • Line 48: warning: exported method Framework.KubeClient should have comment or be unexported (golint)
    • Line 52: warning: exported method Framework.MonitoringClient should have comment or be unexported (golint)
    • Line 56: warning: exported type Invocation should have comment or be unexported (golint)
    • searchlight/test/e2e/framework/nodealerts.go
    • Line 10: warning: should not use dot imports (golint)
    • Line 15: warning: exported method Invocation.NodeAlert should have comment or be unexported (golint)
    • Line 31: warning: exported method Framework.CreateNodeAlert should have comment or be unexported (golint)
    • Line 36: warning: exported method Framework.GetNodeAlert should have comment or be unexported (golint)
    • Line 40: warning: exported method Framework.DeleteNodeAlert should have comment or be unexported (golint)
    • Line 73: warning: exported method Framework.EventuallyNodeAlertIcingaService should have comment or be unexported (golint)
    • Line 111: warning: exported method Framework.CleanNodeAlert should have comment or be unexported (golint)
    • searchlight/pkg/icinga/client.go
    • Line 10: warning: exported type Config should have comment or be unexported (golint)
    • Line 19: warning: exported type Client should have comment or be unexported (golint)
    • Line 23: warning: exported type APIRequest should have comment or be unexported (golint)
    • Line 41: warning: exported type APIResponse should have comment or be unexported (golint)
    • Line 47: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 51: warning: exported method Client.SetEndpoint should have comment or be unexported (golint)
    • Line 56: warning: exported method Client.Hosts should have comment or be unexported (golint)
    • Line 60: warning: exported method Client.HostGroups should have comment or be unexported (golint)
    • Line 64: warning: exported method Client.Service should have comment or be unexported (golint)
    • Line 68: warning: exported method Client.Notifications should have comment or be unexported (golint)
    • Line 72: warning: exported method Client.Actions should have comment or be unexported (golint)
    • Line 76: warning: exported method Client.Check should have comment or be unexported (golint)
    • Line 87: warning: exported method APIRequest.Get should have comment or be unexported (golint)
    • Line 98: warning: exported method APIRequest.Create should have comment or be unexported (golint)
    • Line 103: warning: exported method APIRequest.Update should have comment or be unexported (golint)
    • Line 108: warning: exported method APIRequest.Delete should have comment or be unexported (golint)
    • Line 113: warning: exported method APIRequest.Params should have comment or be unexported (golint)
    • searchlight/test/e2e/framework/pod.go
    • Line 8: warning: should not use dot imports (golint)
    • Line 17: warning: exported const TestSourceDataVolumeName should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported method Invocation.Pod should have comment or be unexported (golint)
    • Line 34: warning: exported method Framework.CreatePod should have comment or be unexported (golint)
    • Line 38: warning: exported method Framework.DeletePod should have comment or be unexported (golint)
    • Line 42: warning: exported method Framework.EventuallyPodRunning should have comment or be unexported (golint)
    • Line 56: warning: exported method Invocation.PodTemplate should have comment or be unexported (golint)
    • Line 97: warning: exported method Framework.GetPodList should have comment or be unexported (golint)
    • searchlight/pkg/icinga/configurator.go
    • Line 20: warning: exported const ICINGA_ADDRESS should have comment (or a comment on this block) or be unexported (golint)
    • Line 66: warning: exported type Configurator should have comment or be unexported (golint)
    • Line 72: warning: exported method Configurator.ConfigFile should have comment or be unexported (golint)
    • Line 76: warning: exported method Configurator.LoadConfig should have comment or be unexported (golint)
    • searchlight/pkg/icinga/types.go
    • Line 17: warning: exported const TypePod should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type IcingaHost should have comment or be unexported (golint)
    • Line 29: warning: exported function IsValidHostType should have comment or be unexported (golint)
    • Line 37: warning: exported method IcingaHost.Name should have comment or be unexported (golint)
    • Line 49: warning: exported method IcingaHost.GetAlert should have comment or be unexported (golint)
    • Line 61: warning: exported function ParseHost should have comment or be unexported (golint)
    • Line 89: warning: exported type IcingaObject should have comment or be unexported (golint)
    • Line 94: warning: exported type ResponseObject should have comment or be unexported (golint)
    • Line 107: warning: exported function IVar should have comment or be unexported (golint)
    • Line 111: warning: exported type State should have comment or be unexported (golint)
    • Line 114: warning: exported const OK should have comment (or a comment on this block) or be unexported (golint)
    • Line 120: warning: exported function Output should have comment or be unexported (golint)
    • searchlight/apis/monitoring/v1alpha1/icinga.go
    • Line 13: warning: exported const CheckPodStatus should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported const CheckNodeVolume should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported const CheckComponentStatus should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: comment on exported type Registry should be of the form "Registry ..." (with optional leading article) (golint)
    • Line 38: warning: exported method Registry.Get should have comment or be unexported (golint)
    • Line 45: warning: exported method Registry.Insert should have comment or be unexported (golint)
    • Line 51: warning: exported method Registry.Delete should have comment or be unexported (golint)
    • Line 57: warning: comment on exported type IcingaCommand should be of the form "IcingaCommand ..." (with optional leading article) (golint)
    • Line 65: warning: exported var PodCommands should have comment or be unexported (golint)
    • Line 92: warning: exported function AlertType should have comment or be unexported (golint)
    • searchlight/plugins/check_event/lib.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 154: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 167: warning: exported function NewCmd should have comment or be unexported (golint)
    • searchlight/plugins/plugins.go
    • Line 6: warning: exported const FlagKubeConfig should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported type PluginInterface should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (signal: killed)