enable more linters #487
Annotations
4 errors and 7 warnings
lint:
expfmt/text_parse.go#L25
File is not `goimports`-ed with -local github.com/prometheus (goimports)
|
lint:
expfmt/text_parse.go#L388
ifElseChain: rewrite if-else to switch statement (gocritic)
|
lint:
expfmt/text_parse_test.go#L22
File is not `goimports`-ed with -local github.com/prometheus (goimports)
|
lint
issues found
|
lint
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/setup-go@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
|
lint:
expfmt/expfmt.go#L27
var-naming: don't use underscores in Go names; const OpenMetricsVersion_0_0_1 should be OpenMetricsVersion0_0_1 (revive)
|
lint:
expfmt/expfmt.go#L28
var-naming: don't use underscores in Go names; const OpenMetricsVersion_1_0_0 should be OpenMetricsVersion1_0_0 (revive)
|
lint:
expfmt/expfmt.go#L36
var-naming: don't use underscores in Go names; const FmtOpenMetrics_1_0_0 should be FmtOpenMetrics1_0_0 (revive)
|
lint:
expfmt/expfmt.go#L37
var-naming: don't use underscores in Go names; const FmtOpenMetrics_0_0_1 should be FmtOpenMetrics0_0_1 (revive)
|
lint:
promlog/log.go#L134
unexported-return: exported func NewDynamic returns unexported type *promlog.logger, which can be annoying to use (revive)
|
lint:
promlog/log.go#L145
unexported-return: exported func NewDynamicWithLogger returns unexported type *promlog.logger, which can be annoying to use (revive)
|