Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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.
Golint is a linter for Go source code.
-
synthetic-monitoring-agent/internal/prober/icmp/icmp.go
- Line 17: warning: exported type Prober should have comment or be unexported (golint)
- Line 21: warning: exported function NewProber should have comment or be unexported (golint)
- Line 34: warning: exported method Prober.Name should have comment or be unexported (golint)
- Line 38: warning: exported method Prober.Probe should have comment or be unexported (golint)
-
synthetic-monitoring-agent/internal/pkg/prom/prom.go
- Line 44: warning: exported function IsHttpUnauthorized should have comment or be unexported (golint)
- Line 55: warning: exported function SendBytesWithBackoff should have comment or be unexported (golint)
- Line 95: warning: comment on exported function SendSamplesWithBackoff should be of the form "SendSamplesWithBackoff ..." (golint)
- Line 175: warning: exported type Client should have comment or be unexported (golint)
-
synthetic-monitoring-agent/internal/prober/dns/dns.go
- Line 18: warning: exported type Prober should have comment or be unexported (golint)
- Line 22: warning: exported function NewProber should have comment or be unexported (golint)
- Line 35: warning: exported method Prober.Name should have comment or be unexported (golint)
- Line 39: warning: exported method Prober.Probe should have comment or be unexported (golint)
-
synthetic-monitoring-agent/internal/pusher/pusher.go
- Line 35: warning: exported type Payload should have comment or be unexported (golint)
- Line 41: warning: exported type Publisher should have comment or be unexported (golint)
- Line 52: warning: exported function NewPublisher should have comment or be unexported (golint)
- Line 97: warning: exported method Publisher.Run should have comment or be unexported (golint)
-
synthetic-monitoring-agent/internal/prober/http/http.go
- Line 26: warning: exported type Prober should have comment or be unexported (golint)
- Line 31: warning: exported function NewProber should have comment or be unexported (golint)
- Line 49: warning: exported method Prober.Name should have comment or be unexported (golint)
- Line 53: warning: exported method Prober.Probe should have comment or be unexported (golint)
-
synthetic-monitoring-agent/internal/prober/tcp/tcp.go
- Line 19: warning: exported type Prober should have comment or be unexported (golint)
- Line 23: warning: exported function NewProber should have comment or be unexported (golint)
- Line 40: warning: exported method Prober.Name should have comment or be unexported (golint)
- Line 44: warning: exported method Prober.Probe should have comment or be unexported (golint)
-
synthetic-monitoring-agent/internal/scraper/scraper.go
- Line 34: warning: exported type Scraper should have comment or be unexported (golint)
- Line 50: warning: exported type TimeSeries should have comment or be unexported (golint)
- Line 51: warning: exported type Streams should have comment or be unexported (golint)
- Line 71: warning: exported function New should have comment or be unexported (golint)
- Line 146: warning: exported method Scraper.Run should have comment or be unexported (golint)
- Line 222: warning: exported method Scraper.Stop should have comment or be unexported (golint)
- Line 227: warning: exported method Scraper.CheckType should have comment or be unexported (golint)
- Line 231: warning: exported method Scraper.ConfigVersion should have comment or be unexported (golint)
-
synthetic-monitoring-agent/internal/checks/checks.go
- Line 59: warning: exported type TimeSeries should have comment or be unexported (golint)
- Line 60: warning: exported type Streams should have comment or be unexported (golint)
- Line 62: warning: exported type UpdaterOptions should have comment or be unexported (golint)
- Line 71: warning: exported function NewUpdater should have comment or be unexported (golint)
- Line 176: warning: exported method Updater.Run should have comment or be unexported (golint)
-
synthetic-monitoring-agent/internal/version/version.go
- Line 19: warning: exported function Short should have comment or be unexported (golint)
- Line 23: warning: exported function Commit should have comment or be unexported (golint)
- Line 27: warning: exported function Buildstamp should have comment or be unexported (golint)
- Line 31: warning: exported function UserAgent should have comment or be unexported (golint)
-
synthetic-monitoring-agent/pkg/pb/synthetic_monitoring/checks_extra.go
- Line 14: warning: package comment should be of the form "Package synthetic_monitoring ..." (golint)
- Line 17: warning: don't use an underscore in package name (golint)
- Line 31: warning: exported var ErrInvalidTenantId should have comment or be unexported (golint)
- Line 86: warning: exported const MaxCheckLabels should have comment (or a comment on this block) or be unexported (golint)
- Line 95: warning: exported const CheckTypeDns should have comment (or a comment on this block) or be unexported (golint)
- Line 102: warning: don't use underscores in Go names; var checkType_name should be checkTypeName (golint)
- Line 109: warning: don't use underscores in Go names; var checkType_value should be checkTypeValue (golint)
- Line 126: warning: exported function CheckTypeFromString should have comment or be unexported (golint)
- Line 141: warning: exported method Check.Validate should have comment or be unexported (golint)
- Line 256: warning: exported method Check.Type should have comment or be unexported (golint)
- Line 275: warning: exported method Check.ConfigVersion should have comment or be unexported (golint)
- Line 279: warning: exported method PingSettings.Validate should have comment or be unexported (golint)
- Line 287: warning: exported method HttpSettings.Validate should have comment or be unexported (golint)
- Line 309: warning: exported method DnsSettings.Validate should have comment or be unexported (golint)
- Line 321: warning: exported method TcpSettings.Validate should have comment or be unexported (golint)
- Line 325: warning: exported method Probe.Validate should have comment or be unexported (golint)
- Line 352: warning: exported method Label.Validate should have comment or be unexported (golint)
- Line 416: warning: exported method IpVersion.MarshalJSON should have comment or be unexported (golint)
- Line 424: warning: exported method IpVersion.UnmarshalJSON should have comment or be unexported (golint)
- Line 424: warning: receiver name out should be consistent with previous receiver name v for IpVersion (golint)
- Line 450: warning: exported method CompressionAlgorithm.MarshalJSON should have comment or be unexported (golint)
- Line 458: warning: exported method CompressionAlgorithm.UnmarshalJSON should have comment or be unexported (golint)
- Line 458: warning: receiver name out should be consistent with previous receiver name v for CompressionAlgorithm (golint)
- Line 467: warning: exported method HttpMethod.MarshalJSON should have comment or be unexported (golint)
- Line 475: warning: exported method HttpMethod.UnmarshalJSON should have comment or be unexported (golint)
- Line 475: warning: receiver name out should be consistent with previous receiver name v for HttpMethod (golint)
- Line 484: warning: exported method DnsRecordType.MarshalJSON should have comment or be unexported (golint)
- Line 492: warning: exported method DnsRecordType.UnmarshalJSON should have comment or be unexported (golint)
- Line 492: warning: receiver name out should be consistent with previous receiver name v for DnsRecordType (golint)
- Line 501: warning: exported method DnsProtocol.MarshalJSON should have comment or be unexported (golint)
- Line 509: warning: exported method DnsProtocol.UnmarshalJSON should have comment or be unexported (golint)
- Line 509: warning: receiver name out should be consistent with previous receiver name v for DnsProtocol (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!