Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
An error occurred while running this test (AddError: could not parse "_repos/src/github.com/improbable-eng/go-httpwares/fatal error: runtime: out of memory:1::warning: file is not gofmted with -s (gofmt)" - strconv.Atoi: parsing " runtime": invalid syntax)
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.
-
go-httpwares/metrics/prometheus/options.go
- Line 4: warning: don't use an underscore in package name (golint)
- Line 24: warning: exported function WithName should have comment or be unexported (golint)
- Line 30: warning: exported function WithLatency should have comment or be unexported (golint)
- Line 36: warning: exported function WithHostLabel should have comment or be unexported (golint)
- Line 42: warning: exported function WithPathLabel should have comment or be unexported (golint)
- Line 48: warning: exported function WithSizes should have comment or be unexported (golint)
-
go-httpwares/tags/options.go
- Line 4: warning: don't use an underscore in package name (golint)
- Line 23: warning: exported var DefaultServiceName should have comment or be unexported (golint)
- Line 47: warning: exported type Option should have comment or be unexported (golint)
-
go-httpwares/tags/context.go
- Line 4: warning: don't use an underscore in package name (golint)
- Line 51: warning: comment on exported function ExtractInboundFromCtx should be of the form "ExtractInboundFromCtx ..." (golint)
- Line 71: warning: comment on exported function ExtractOutboundFromCtx should be of the form "ExtractOutboundFromCtx ..." (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
An error occurred while running this test (exit status 3)
Misspell Finds commonly misspelled English words
No problems detected. Good job!