Skip to content

PMM-7 Lint fix.

PMM-7 Lint fix. #5817

Triggered via pull request January 8, 2024 08:31
@JiriCtvrtkaJiriCtvrtka
synchronize #2717
lint-fix
Status Failure
Total duration 10m 29s
Artifacts

main.yml

on: pull_request
Merge Gatekeeper
17s
Merge Gatekeeper
Slack Notification success
0s
Slack Notification success
Slack Notification failure
6s
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#L606
string `cannot use push_metrics_enabled with pmm_agent version=%q,` has 3 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/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)