Skip to content

PMM-7 Lint fix.

PMM-7 Lint fix. #5713

Triggered via pull request December 20, 2023 11:37
@JiriCtvrtkaJiriCtvrtka
synchronize #2717
lint-fix
Status Failure
Total duration 6m 12s
Artifacts

main.yml

on: pull_request
Merge Gatekeeper
15s
Merge Gatekeeper
Slack Notification success
0s
Slack Notification success
Slack Notification failure
7s
Slack Notification failure
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Checks: managed/models/service_helpers_test.go#L143
undefined: teardown
Checks: managed/models/service_helpers_test.go#L147
undefined: teardown (typecheck)
Checks: agent/config/config_test.go#L156
string `--config-file=` has 6 occurrences, make it a constant (goconst)
Checks: managed/models/agent_helpers.go#L580
string `/agent_id/` has 4 occurrences, make it a constant (goconst)
Checks: managed/models/agent_helpers.go#L607
string ` it doesn't support it, minimum supported version=%q` has 3 occurrences, make it a constant (goconst)
Checks: managed/models/agent_model.go#L441
string `.TextFiles.` has 5 occurrences, make it a constant (goconst)
Checks: managed/models/agent_helpers.go#L606
string `cannot use push_metrics_enabled with pmm_agent version=%q,` has 3 occurrences, make it a constant (goconst)
Checks: managed/services/supervisord/supervisord.go#L548
string `.ini` has 4 occurrences, make it a constant (goconst)
Checks: api-tests/server/auth_test.go#L262
string `api-` has 3 occurrences, make it a constant (goconst)
Checks: managed/services/server/server_test.go#L359
string `rpc error: code = InvalidArgument desc = ` has 3 occurrences, make it a constant (goconst)