Preparing report...

Report for github.com/flanksource/canary-checker

A    Great!    Found 41 issues across 48 files

Tweet

gofmt97%

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!


gocyclo85%

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.


golint16%

Golint is a linter for Go source code.

    • canary-checker/checks/http.go
    • Line 52: warning: exported type HTTPChecker should have comment or be unexported (golint)
    • Line 56: warning: comment on exported method HTTPChecker.Type should be of the form "Type ..." (golint)
    • Line 61: warning: exported method HTTPChecker.SetClient should have comment or be unexported (golint)
    • Line 65: warning: exported method HTTPChecker.GetClient should have comment or be unexported (golint)
    • Line 69: warning: comment on exported method HTTPChecker.Run should be of the form "Run ..." (golint)
    • Line 79: warning: comment on exported method HTTPChecker.Check should be of the form "Check ..." (golint)
    • Line 296: warning: exported method HTTPChecker.ParseAuth should have comment or be unexported (golint)
    • Line 341: warning: exported function DNSLookup should have comment or be unexported (golint)
    • Line 392: warning: exported type HTTPCheckResult should have comment or be unexported (golint)
    • canary-checker/checks/ldap.go
    • Line 12: warning: exported type LdapChecker should have comment or be unexported (golint)
    • Line 14: warning: comment on exported method LdapChecker.Type should be of the form "Type ..." (golint)
    • Line 19: warning: comment on exported method LdapChecker.Run should be of the form "Run ..." (golint)
    • Line 29: warning: comment on exported method LdapChecker.Check should be of the form "Check ..." (golint)
    • canary-checker/checks/s3_bucket.go
    • Line 49: warning: exported type S3BucketChecker should have comment or be unexported (golint)
    • Line 52: warning: comment on exported method S3BucketChecker.Run should be of the form "Run ..." (golint)
    • Line 62: warning: comment on exported method S3BucketChecker.Type should be of the form "Type ..." (golint)
    • Line 67: warning: exported method S3BucketChecker.Check should have comment or be unexported (golint)
    • canary-checker/checks/docker_push.go
    • Line 17: warning: exported type DockerPushChecker should have comment or be unexported (golint)
    • Line 19: warning: exported method DockerPushChecker.Run should have comment or be unexported (golint)
    • Line 27: warning: comment on exported method DockerPushChecker.Type should be of the form "Type ..." (golint)
    • Line 32: warning: comment on exported method DockerPushChecker.Check should be of the form "Check ..." (golint)
    • canary-checker/checks/jmeter.go
    • Line 24: warning: exported type JmeterChecker should have comment or be unexported (golint)
    • Line 28: warning: exported method JmeterChecker.SetClient should have comment or be unexported (golint)
    • Line 32: warning: exported method JmeterChecker.GetClient should have comment or be unexported (golint)
    • Line 36: warning: exported method JmeterChecker.Type should have comment or be unexported (golint)
    • Line 40: warning: exported method JmeterChecker.Run should have comment or be unexported (golint)
    • Line 48: warning: exported method JmeterChecker.Check should have comment or be unexported (golint)
    • canary-checker/checks/timer.go
    • Line 8: warning: exported type Timer should have comment or be unexported (golint)
    • Line 12: warning: exported method Timer.Elapsed should have comment or be unexported (golint)
    • Line 16: warning: exported method Timer.Millis should have comment or be unexported (golint)
    • Line 24: warning: exported function NewTimer should have comment or be unexported (golint)
    • canary-checker/pkg/utils/template.go
    • Line 8: warning: exported type StructTemplater should have comment or be unexported (golint)
    • Line 12: warning: comment on exported method StructTemplater.Struct should be of the form "Struct ..." (golint)
    • Line 17: warning: exported method StructTemplater.StructField should have comment or be unexported (golint)
    • Line 24: warning: exported method StructTemplater.Template should have comment or be unexported (golint)
    • canary-checker/pkg/api.go
    • Line 14: warning: exported type Endpoint should have comment or be unexported (golint)
    • Line 18: warning: exported type JSONTime should have comment or be unexported (golint)
    • Line 20: warning: exported method JSONTime.MarshalJSON should have comment or be unexported (golint)
    • Line 25: warning: exported method JSONTime.UnmarshalJSON should have comment or be unexported (golint)
    • Line 36: warning: exported type CheckStatus should have comment or be unexported (golint)
    • Line 44: warning: exported type Check should have comment or be unexported (golint)
    • Line 61: warning: exported method Check.ID should have comment or be unexported (golint)
    • Line 65: warning: exported method Check.GetNamespace should have comment or be unexported (golint)
    • Line 72: warning: exported method Check.GetName should have comment or be unexported (golint)
    • Line 80: warning: exported type Checks should have comment or be unexported (golint)
    • Line 93: warning: exported method Check.ToString should have comment or be unexported (golint)
    • Line 97: warning: exported method Check.GetDescription should have comment or be unexported (golint)
    • Line 101: warning: exported type Config should have comment or be unexported (golint)
    • Line 122: warning: exported type Checker should have comment or be unexported (golint)
    • Line 140: warning: exported type CheckResult should have comment or be unexported (golint)
    • Line 151: warning: exported method CheckResult.GetDescription should have comment or be unexported (golint)
    • Line 171: warning: exported type MetricType should have comment or be unexported (golint)
    • Line 173: warning: exported type Metric should have comment or be unexported (golint)
    • Line 184: warning: exported method Endpoint.GetEndpoint should have comment or be unexported (golint)
    • canary-checker/pkg/aggregate/aggregate.go
    • Line 20: warning: exported var Servers should have comment or be unexported (golint)
    • Line 23: warning: exported type AggregateCheck should have comment or be unexported (golint)
    • Line 39: warning: exported type CheckHealth should have comment or be unexported (golint)
    • Line 44: warning: exported type AggregateChecks should have comment or be unexported (golint)
    • Line 59: warning: exported type Response should have comment or be unexported (golint)
    • Line 98: warning: exported function Handler should have comment or be unexported (golint)
    • canary-checker/cmd/docs.go
    • Line 32: warning: exported var APIDocs should have comment or be unexported (golint)
    • Line 95: warning: exported type Struct should have comment or be unexported (golint)
    • Line 119: warning: exported type StructField should have comment or be unexported (golint)
    • Line 124: warning: exported function NewStructField should have comment or be unexported (golint)
    • canary-checker/checks/docker.go
    • Line 51: warning: exported type DockerPullChecker should have comment or be unexported (golint)
    • Line 53: warning: exported method DockerPullChecker.Run should have comment or be unexported (golint)
    • Line 61: warning: comment on exported method DockerPullChecker.Type should be of the form "Type ..." (golint)
    • Line 81: warning: comment on exported method DockerPullChecker.Check should be of the form "Check ..." (golint)
    • canary-checker/checks/mssql.go
    • Line 14: warning: exported type MssqlChecker should have comment or be unexported (golint)
    • Line 16: warning: comment on exported method MssqlChecker.Type should be of the form "Type ..." (golint)
    • Line 21: warning: comment on exported method MssqlChecker.Run should be of the form "Run ..." (golint)
    • Line 31: warning: comment on exported method MssqlChecker.Check should be of the form "Check ..." (golint)
    • canary-checker/pkg/metrics/metrics.go
    • Line 17: warning: exported var CounterType should have comment or be unexported (golint)
    • Line 96: warning: exported function RemoveCheck should have comment or be unexported (golint)
    • Line 105: warning: exported function GetMetrics should have comment or be unexported (golint)
    • Line 124: warning: exported function Record should have comment or be unexported (golint)
    • canary-checker/api/v1/canary_types.go
    • Line 53: warning: exported method CanarySpec.GetAllChecks should have comment or be unexported (golint)
    • Line 115: warning: exported method CanarySpec.SetNamespaces should have comment or be unexported (golint)
    • Line 124: warning: exported method Canary.GetKey should have comment or be unexported (golint)
    • Line 128: warning: exported method Canary.GetDescription should have comment or be unexported (golint)
    • Line 135: warning: exported type CanaryStatusCondition should have comment or be unexported (golint)
    • Line 138: warning: exported var Passed should have comment or be unexported (golint)
    • Line 183: warning: exported method Canary.ID should have comment or be unexported (golint)
    • canary-checker/api/v1/conditions.go
    • Line 7: warning: exported type ConditionStatus should have comment or be unexported (golint)
    • Line 10: warning: exported const ConditionStatusTrue should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type Condition should have comment or be unexported (golint)
    • canary-checker/pkg/controllers/canary_controller.go
    • Line 66: warning: exported const FinalizerName should have comment or be unexported (golint)
    • Line 68: warning: comment on exported method CanaryReconciler.Reconcile should be of the form "Reconcile ..." (golint)
    • Line 146: warning: exported method CanaryReconciler.SetupWithManager should have comment or be unexported (golint)
    • Line 166: warning: exported method CanaryReconciler.Report should have comment or be unexported (golint)
    • Line 202: warning: exported method CanaryReconciler.Patch should have comment or be unexported (golint)
    • Line 209: warning: exported type CanaryJob should have comment or be unexported (golint)
    • Line 215: warning: exported method CanaryJob.GetNamespacedName should have comment or be unexported (golint)
    • Line 219: warning: exported method CanaryJob.Run should have comment or be unexported (golint)
    • Line 243: warning: exported method CanaryJob.LoadSecrets should have comment or be unexported (golint)
    • canary-checker/checks/icmp.go
    • Line 28: warning: exported type IcmpChecker should have comment or be unexported (golint)
    • Line 30: warning: comment on exported method IcmpChecker.Type should be of the form "Type ..." (golint)
    • Line 35: warning: comment on exported method IcmpChecker.Run should be of the form "Run ..." (golint)
    • Line 45: warning: comment on exported method IcmpChecker.Check should be of the form "Check ..." (golint)
    • canary-checker/checks/checker.go
    • Line 10: warning: exported type Checker should have comment or be unexported (golint)
    • Line 16: warning: exported var All should have comment or be unexported (golint)
    • Line 37: warning: exported type SetsClient should have comment or be unexported (golint)
    • canary-checker/checks/s3.go
    • Line 44: warning: exported type S3Checker should have comment or be unexported (golint)
    • Line 46: warning: comment on exported method S3Checker.Run should be of the form "Run ..." (golint)
    • Line 56: warning: comment on exported method S3Checker.Type should be of the form "Type ..." (golint)
    • Line 61: warning: exported method S3Checker.Check should have comment or be unexported (golint)
    • canary-checker/api/external/api.go
    • Line 5: warning: exported type Endpointer should have comment or be unexported (golint)
    • Line 9: warning: exported type Describable should have comment or be unexported (golint)
    • Line 13: warning: exported type WithType should have comment or be unexported (golint)
    • Line 17: warning: exported type Check should have comment or be unexported (golint)
    • canary-checker/checks/namespace.go
    • Line 31: warning: exported type NamespaceChecker should have comment or be unexported (golint)
    • Line 37: warning: exported function NewNamespaceChecker should have comment or be unexported (golint)
    • Line 54: warning: comment on exported method NamespaceChecker.Run should be of the form "Run ..." (golint)
    • Line 74: warning: comment on exported method NamespaceChecker.Type should be of the form "Type ..." (golint)
    • Line 115: warning: exported method NamespaceChecker.Check should have comment or be unexported (golint)
    • Line 227: warning: exported method NamespaceChecker.Cleanup should have comment or be unexported (golint)
    • canary-checker/checks/postgres.go
    • Line 14: warning: exported type PostgresChecker should have comment or be unexported (golint)
    • Line 16: warning: comment on exported method PostgresChecker.Type should be of the form "Type ..." (golint)
    • Line 21: warning: comment on exported method PostgresChecker.Run should be of the form "Run ..." (golint)
    • Line 31: warning: exported method PostgresChecker.Check should have comment or be unexported (golint)
    • canary-checker/cmd/run.go
    • Line 14: warning: exported var Run should have comment or be unexported (golint)
    • Line 38: warning: exported function RunChecks should have comment or be unexported (golint)
    • canary-checker/checks/helm.go
    • Line 24: warning: exported type HelmChecker should have comment or be unexported (golint)
    • Line 26: warning: exported type ResultWriter should have comment or be unexported (golint)
    • Line 28: warning: comment on exported method HelmChecker.Type should be of the form "Type ..." (golint)
    • Line 33: warning: exported method HelmChecker.Run should have comment or be unexported (golint)
    • Line 41: warning: exported method HelmChecker.Check should have comment or be unexported (golint)
    • canary-checker/checks/pod.go
    • Line 37: warning: exported type PodChecker should have comment or be unexported (golint)
    • Line 45: warning: exported function NewPodChecker should have comment or be unexported (golint)
    • Line 62: warning: comment on exported method PodChecker.Run should be of the form "Run ..." (golint)
    • Line 85: warning: comment on exported method PodChecker.Type should be of the form "Type ..." (golint)
    • Line 137: warning: exported method PodChecker.Check should have comment or be unexported (golint)
    • Line 256: warning: exported method PodChecker.Cleanup should have comment or be unexported (golint)
    • canary-checker/pkg/kube.go
    • Line 34: warning: exported function NewK8sClient should have comment or be unexported (golint)
    • Line 47: warning: exported function NewKommonsClient should have comment or be unexported (golint)
    • Line 57: warning: exported function GetClusterName should have comment or be unexported (golint)
    • Line 74: warning: exported function GetKubeconfig should have comment or be unexported (golint)
    • canary-checker/test/setup.go
    • Line 80: warning: exported type S3Config should have comment or be unexported (golint)
    • Line 118: warning: exported type S3Fixture should have comment or be unexported (golint)
    • Line 123: warning: exported type S3FixtureFile should have comment or be unexported (golint)
    • canary-checker/checks/containerd_pull.go
    • Line 28: warning: exported type ContainerdPullChecker should have comment or be unexported (golint)
    • Line 30: warning: exported method ContainerdPullChecker.Run should have comment or be unexported (golint)
    • Line 38: warning: comment on exported method ContainerdPullChecker.Type should be of the form "Type ..." (golint)
    • Line 43: warning: comment on exported method ContainerdPullChecker.Check should be of the form "Check ..." (golint)
    • canary-checker/checks/redis.go
    • Line 17: warning: exported type RedisChecker should have comment or be unexported (golint)
    • Line 19: warning: comment on exported method RedisChecker.Type should be of the form "Type ..." (golint)
    • Line 24: warning: comment on exported method RedisChecker.Run should be of the form "Run ..." (golint)
    • Line 34: warning: exported method RedisChecker.Check should have comment or be unexported (golint)
    • canary-checker/checks/restic.go
    • Line 25: warning: exported type ResticChecker should have comment or be unexported (golint)
    • Line 27: warning: exported method ResticChecker.Type should have comment or be unexported (golint)
    • Line 31: warning: exported method ResticChecker.Run should have comment or be unexported (golint)
    • Line 39: warning: exported method ResticChecker.Check should have comment or be unexported (golint)
    • canary-checker/pkg/cache/cache.go
    • Line 15: warning: exported var Size should have comment or be unexported (golint)
    • Line 23: warning: exported var Cache should have comment or be unexported (golint)
    • Line 28: warning: exported function GetConfig should have comment or be unexported (golint)
    • Line 32: warning: exported function AddCheck should have comment or be unexported (golint)
    • Line 36: warning: exported function RemoveCheck should have comment or be unexported (golint)
    • Line 40: warning: exported function GetChecks should have comment or be unexported (golint)
    • canary-checker/api/v1/checks.go
    • Line 10: warning: exported type JSONCheck should have comment or be unexported (golint)
    • Line 15: warning: exported type Authentication should have comment or be unexported (golint)
    • Line 20: warning: exported type HTTPCheck should have comment or be unexported (golint)
    • Line 51: warning: exported method HTTPCheck.SetNamespace should have comment or be unexported (golint)
    • Line 55: warning: exported method HTTPCheck.GetNamespace should have comment or be unexported (golint)
    • Line 59: warning: exported method HTTPCheck.GetEndpoint should have comment or be unexported (golint)
    • Line 63: warning: exported method HTTPCheck.GetDescription should have comment or be unexported (golint)
    • Line 67: warning: exported method HTTPCheck.GetType should have comment or be unexported (golint)
    • Line 71: warning: exported type TCPCheck should have comment or be unexported (golint)
    • Line 77: warning: exported method TCPCheck.GetEndpoint should have comment or be unexported (golint)
    • Line 81: warning: exported method TCPCheck.GetDescription should have comment or be unexported (golint)
    • Line 85: warning: exported method TCPCheck.GetType should have comment or be unexported (golint)
    • Line 89: warning: exported type ICMPCheck should have comment or be unexported (golint)
    • Line 97: warning: exported method ICMPCheck.GetEndpoint should have comment or be unexported (golint)
    • Line 101: warning: exported method ICMPCheck.GetDescription should have comment or be unexported (golint)
    • Line 105: warning: exported method ICMPCheck.GetType should have comment or be unexported (golint)
    • Line 109: warning: exported type Bucket should have comment or be unexported (golint)
    • Line 115: warning: exported type S3Check should have comment or be unexported (golint)
    • Line 125: warning: exported method S3Check.GetEndpoint should have comment or be unexported (golint)
    • Line 129: warning: exported method S3Check.GetDescription should have comment or be unexported (golint)
    • Line 133: warning: exported method S3Check.GetType should have comment or be unexported (golint)
    • Line 137: warning: exported type S3BucketCheck should have comment or be unexported (golint)
    • Line 157: warning: exported method S3BucketCheck.GetEndpoint should have comment or be unexported (golint)
    • Line 161: warning: exported method S3BucketCheck.GetDescription should have comment or be unexported (golint)
    • Line 165: warning: exported method S3BucketCheck.GetType should have comment or be unexported (golint)
    • Line 169: warning: exported type ResticCheck should have comment or be unexported (golint)
    • Line 188: warning: exported method ResticCheck.GetEndpoint should have comment or be unexported (golint)
    • Line 192: warning: exported method ResticCheck.GetDescription should have comment or be unexported (golint)
    • Line 196: warning: exported method ResticCheck.GetType should have comment or be unexported (golint)
    • Line 200: warning: exported type JmeterCheck should have comment or be unexported (golint)
    • Line 220: warning: exported method JmeterCheck.SetNamespace should have comment or be unexported (golint)
    • Line 224: warning: exported method JmeterCheck.GetNamespace should have comment or be unexported (golint)
    • Line 228: warning: exported method JmeterCheck.GetEndpoint should have comment or be unexported (golint)
    • Line 232: warning: exported method JmeterCheck.GetDescription should have comment or be unexported (golint)
    • Line 236: warning: exported method JmeterCheck.GetType should have comment or be unexported (golint)
    • Line 240: warning: exported type DockerPullCheck should have comment or be unexported (golint)
    • Line 249: warning: exported method DockerPullCheck.GetEndpoint should have comment or be unexported (golint)
    • Line 253: warning: exported method DockerPullCheck.GetDescription should have comment or be unexported (golint)
    • Line 257: warning: exported method DockerPullCheck.GetType should have comment or be unexported (golint)
    • Line 261: warning: exported type DockerPushCheck should have comment or be unexported (golint)
    • Line 268: warning: exported method DockerPushCheck.GetEndpoint should have comment or be unexported (golint)
    • Line 272: warning: exported method DockerPushCheck.GetDescription should have comment or be unexported (golint)
    • Line 276: warning: exported method DockerPushCheck.GetType should have comment or be unexported (golint)
    • Line 280: warning: exported type ContainerdPullCheck should have comment or be unexported (golint)
    • Line 289: warning: exported method ContainerdPullCheck.GetEndpoint should have comment or be unexported (golint)
    • Line 293: warning: exported method ContainerdPullCheck.GetDescription should have comment or be unexported (golint)
    • Line 297: warning: exported method ContainerdPullCheck.GetType should have comment or be unexported (golint)
    • Line 301: warning: exported type ContainerdPushCheck should have comment or be unexported (golint)
    • Line 308: warning: exported method ContainerdPushCheck.GetEndpoint should have comment or be unexported (golint)
    • Line 312: warning: exported method ContainerdPushCheck.GetDescription should have comment or be unexported (golint)
    • Line 316: warning: exported method ContainerdPushCheck.GetType should have comment or be unexported (golint)
    • Line 320: warning: exported type RedisCheck should have comment or be unexported (golint)
    • Line 328: warning: exported method RedisCheck.GetDescription should have comment or be unexported (golint)
    • Line 332: warning: exported method RedisCheck.GetType should have comment or be unexported (golint)
    • Line 336: warning: exported method RedisCheck.GetEndpoint should have comment or be unexported (golint)
    • Line 340: warning: exported type SQLCheck should have comment or be unexported (golint)
    • Line 349: warning: exported method SQLCheck.GetDriver should have comment or be unexported (golint)
    • Line 353: warning: exported method SQLCheck.GetQuery should have comment or be unexported (golint)
    • Line 357: warning: exported method SQLCheck.GetResult should have comment or be unexported (golint)
    • Line 361: warning: exported method SQLCheck.GetConnection should have comment or be unexported (golint)
    • Line 365: warning: exported method SQLCheck.GetEndpoint should have comment or be unexported (golint)
    • Line 369: warning: exported method SQLCheck.GetDescription should have comment or be unexported (golint)
    • Line 373: warning: exported method SQLCheck.GetType should have comment or be unexported (golint)
    • Line 377: warning: exported type PostgresCheck should have comment or be unexported (golint)
    • Line 381: warning: comment on exported method PostgresCheck.UnmarshalYAML should be of the form "UnmarshalYAML ..." (golint)
    • Line 399: warning: exported type MssqlCheck should have comment or be unexported (golint)
    • Line 403: warning: comment on exported method MssqlCheck.UnmarshalYAML should be of the form "UnmarshalYAML ..." (golint)
    • Line 421: warning: exported type PodCheck should have comment or be unexported (golint)
    • Line 442: warning: exported method PodCheck.GetDescription should have comment or be unexported (golint)
    • Line 446: warning: exported method PodCheck.GetEndpoint should have comment or be unexported (golint)
    • Line 454: warning: exported method PodCheck.GetType should have comment or be unexported (golint)
    • Line 458: warning: exported type LDAPCheck should have comment or be unexported (golint)
    • Line 468: warning: exported method LDAPCheck.GetEndpoint should have comment or be unexported (golint)
    • Line 472: warning: exported method LDAPCheck.GetDescription should have comment or be unexported (golint)
    • Line 476: warning: exported method LDAPCheck.GetType should have comment or be unexported (golint)
    • Line 480: warning: exported type NamespaceCheck should have comment or be unexported (golint)
    • Line 503: warning: exported method NamespaceCheck.GetDescription should have comment or be unexported (golint)
    • Line 507: warning: exported method NamespaceCheck.GetEndpoint should have comment or be unexported (golint)
    • Line 515: warning: exported method NamespaceCheck.GetType should have comment or be unexported (golint)
    • Line 519: warning: exported type DNSCheck should have comment or be unexported (golint)
    • Line 532: warning: exported method DNSCheck.GetEndpoint should have comment or be unexported (golint)
    • Line 536: warning: exported method DNSCheck.GetDescription should have comment or be unexported (golint)
    • Line 540: warning: exported method DNSCheck.GetType should have comment or be unexported (golint)
    • Line 544: warning: exported type HelmCheck should have comment or be unexported (golint)
    • Line 553: warning: exported method HelmCheck.GetEndpoint should have comment or be unexported (golint)
    • Line 557: warning: exported method HelmCheck.GetDescription should have comment or be unexported (golint)
    • Line 561: warning: exported method HelmCheck.GetType should have comment or be unexported (golint)
    • Line 565: warning: comment on exported type HTTP should be of the form "HTTP ..." (with optional leading article) (golint)
    • Line 594: warning: comment on exported type DNS should be of the form "DNS ..." (with optional leading article) (golint)
    • Line 611: warning: comment on exported type DockerPull should be of the form "DockerPull ..." (with optional leading article) (golint)
    • Line 631: warning: exported type DockerPush should have comment or be unexported (golint)
    • Line 635: warning: comment on exported type S3 should be of the form "S3 ..." (with optional leading article) (golint)
    • Line 658: warning: comment on exported type S3Bucket should be of the form "S3Bucket ..." (with optional leading article) (golint)
    • Line 682: warning: exported type TCP should have comment or be unexported (golint)
    • Line 686: warning: comment on exported type Pod should be of the form "Pod ..." (with optional leading article) (golint)
    • Line 768: warning: comment on exported type ICMP should be of the form "ICMP ..." (with optional leading article) (golint)
    • Line 786: warning: comment on exported type Postgres should be of the form "Postgres ..." (with optional leading article) (golint)
    • Line 801: warning: comment on exported type MsSQL should be of the form "MsSQL ..." (with optional leading article) (golint)
    • Line 816: warning: exported type Helm should have comment or be unexported (golint)
    • Line 820: warning: exported type SrvReply should have comment or be unexported (golint)
    • Line 839: warning: exported type Redis should have comment or be unexported (golint)
    • Line 858: warning: exported type Restic should have comment or be unexported (golint)
    • Line 884: warning: exported var AllChecks should have comment or be unexported (golint)
    • canary-checker/pkg/api/api.go
    • Line 27: warning: exported type Response should have comment or be unexported (golint)
    • Line 32: warning: exported var ServerName should have comment or be unexported (golint)
    • Line 34: warning: exported function Handler should have comment or be unexported (golint)
    • Line 77: warning: exported type TriggerData should have comment or be unexported (golint)
    • Line 82: warning: exported function TriggerCheckHandler should have comment or be unexported (golint)
    • Line 146: warning: exported type PrometheusGraphData should have comment or be unexported (golint)
    • Line 153: warning: exported type Timeseries should have comment or be unexported (golint)
    • Line 158: warning: exported function PrometheusGraphHandler should have comment or be unexported (golint)
    • canary-checker/checks/dns.go
    • Line 17: warning: exported type DNSChecker should have comment or be unexported (golint)
    • Line 19: warning: comment on exported method DNSChecker.Type should be of the form "Type ..." (golint)
    • Line 24: warning: exported method DNSChecker.Run should have comment or be unexported (golint)
    • Line 32: warning: exported method DNSChecker.Check should have comment or be unexported (golint)
    • canary-checker/checks/utils.go
    • Line 30: warning: exported function Failf should have comment or be unexported (golint)
    • Line 39: warning: exported function Success should have comment or be unexported (golint)
    • Line 48: warning: exported function Passf should have comment or be unexported (golint)
    • Line 57: warning: exported type NameGenerator should have comment or be unexported (golint)
    • Line 65: warning: exported method NameGenerator.NamespaceName should have comment or be unexported (golint)
    • Line 73: warning: exported method NameGenerator.PodName should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!