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.
No problems detected. Good job!
Golint is a linter for Go source code.
-
docker_log_driver_loki/bridge/modules.go
- Line 84: warning: exported function Register should have comment or be unexported (golint)
- Line 96: warning: exported function Unregister should have comment or be unexported (golint)
- Line 110: warning: exported var AdapterFactories should have comment or be unexported (golint)
-
docker_log_driver_loki/extractors/grafana/grafana.go
- Line 10: warning: exported type GrafanaAdapter should have comment or be unexported (golint)
- Line 37: warning: exported type Factory should have comment or be unexported (golint)
- Line 39: warning: exported method Factory.New should have comment or be unexported (golint)
- Line 48: warning: exported method GrafanaAdapter.Extract should have comment or be unexported (golint)
-
docker_log_driver_loki/http.go
- Line 16: warning: exported type StartLoggingRequest should have comment or be unexported (golint)
- Line 21: warning: exported type StopLoggingRequest should have comment or be unexported (golint)
- Line 25: warning: exported type CapabilitiesResponse should have comment or be unexported (golint)
- Line 30: warning: exported type ReadLogsRequest should have comment or be unexported (golint)
-
docker_log_driver_loki/driver/driver.go
- Line 27: warning: exported type Driver should have comment or be unexported (golint)
- Line 67: warning: exported function NewDriver should have comment or be unexported (golint)
- Line 73: warning: exported method Driver.StartLogging should have comment or be unexported (golint)
- Line 131: warning: exported method Driver.StopLogging should have comment or be unexported (golint)
- Line 168: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 184: warning: exported method Driver.ReadLogs should have comment or be unexported (golint)
-
docker_log_driver_loki/bridge/bridge.go
- Line 8: warning: exported type Bridge should have comment or be unexported (golint)
- Line 13: warning: exported function New should have comment or be unexported (golint)
- Line 24: warning: exported method Bridge.Extract should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
Misspell Finds commonly misspelled English words
No problems detected. Good job!