Skip to content

mod tidy

mod tidy #15150

Triggered via push January 17, 2025 21:07
Status Failure
Total duration 2m 20s
Artifacts

validate.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

63 errors and 1 warning
validate
Process completed with exit code 2.
[golangci] api/types/test-report/test_case.go#L32: api/types/test-report/test_case.go#L32
string `...` has 3 occurrences, make it a constant (goconst)
[golangci] compiler/native/expand.go#L396: compiler/native/expand.go#L396
string `golang` has 3 occurrences, make it a constant (goconst)
[golangci] storage/minio/download.go#L50: storage/minio/download.go#L50
G115: integer overflow conversion int64 -> uint64 (gosec)
[golangci] storage/minio/download.go#L63: storage/minio/download.go#L63
G115: integer overflow conversion int64 -> uint64 (gosec)
[golangci] api/types/test-report/performance_results.go#L1: api/types/test-report/performance_results.go#L1
var-naming: don't use an underscore in package name (revive)
[golangci] api/types/test-report/test_run.go#L1: api/types/test-report/test_run.go#L1
var-naming: don't use an underscore in package name (revive)
[golangci] storage/minio/minio.go#L22: storage/minio/minio.go#L22
exported: type name will be used as minio.MinioClient by other packages, and that stutters; consider calling this Client (revive)
[golangci] storage/context.go#L61: storage/context.go#L61
context-keys-type: should not use basic type string as key in context.WithValue (revive)
[golangci] storage/minio/minio.go#L92: storage/minio/minio.go#L92
func `pingBucket` is unused (unused)
[golangci] storage/minio/stat_object.go#L17: storage/minio/stat_object.go#L17
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
[golangci] api/admin/storage.go#L6: api/admin/storage.go#L6
File is not properly formatted (gci)
[golangci] api/admin/storage.go#L7: api/admin/storage.go#L7
File is not properly formatted (gci)
[golangci] api/admin/storage.go#L11: api/admin/storage.go#L11
File is not properly formatted (gci)
[golangci] storage/context.go#L10: storage/context.go#L10
Comment should end in a period (godot)
[golangci] storage/context.go#L18: storage/context.go#L18
Comment should end in a period (godot)
[golangci] storage/context.go#L59: storage/context.go#L59
Comment should end in a period (godot)
[golangci] api/types/storage.go#L1: api/types/storage.go#L1
Missed header for check (goheader)
[golangci] api/types/test_report.go#L1: api/types/test_report.go#L1
Missed header for check (goheader)
[golangci] storage/minio/minio.go#L37: storage/minio/minio.go#L37
ineffectual assignment to useSSL (ineffassign)
[golangci] storage/minio/download.go#L29: storage/minio/download.go#L29
`retrive` is a misspelling of `retrieve` (misspell)
[golangci] compiler/native/compile_test.go#L2449: compiler/native/compile_test.go#L2449
SA1019: github.String is deprecated: use Ptr instead. (staticcheck)
[golangci] compiler/native/compile_test.go#L2450: compiler/native/compile_test.go#L2450
SA1019: github.String is deprecated: use Ptr instead. (staticcheck)
[golangci] scm/github/app_permissions.go#L62: scm/github/app_permissions.go#L62
SA1019: github.String is deprecated: use Ptr instead. (staticcheck)
[golangci] scm/github/deployment.go#L180: scm/github/deployment.go#L180
SA1019: github.Bool is deprecated: use Ptr instead. (staticcheck)
[golangci] scm/github/repo.go#L209: scm/github/repo.go#L209
SA1019: github.Bool is deprecated: use Ptr instead. (staticcheck)
[golangci] scm/github/repo.go#L283: scm/github/repo.go#L283
SA1019: github.Bool is deprecated: use Ptr instead. (staticcheck)
[golangci] scm/github/github_client_test.go#L76: scm/github/github_client_test.go#L76
SA1019: github.Int64 is deprecated: use Ptr instead. (staticcheck)
[golangci] scm/github/github_client_test.go#L90: scm/github/github_client_test.go#L90
SA1019: github.Int64 is deprecated: use Ptr instead. (staticcheck)
[golangci] scm/github/github_client_test.go#L104: scm/github/github_client_test.go#L104
SA1019: github.Int64 is deprecated: use Ptr instead. (staticcheck)
[golangci] storage/minio/create_bucket.go#L13: storage/minio/create_bucket.go#L13
SA4022: the address of a variable cannot be nil (staticcheck)
[golangci] api/types/test-report/test_suite.go#L19: api/types/test-report/test_suite.go#L19
ST1003: struct field StartTs should be StartTS (stylecheck)
[golangci] api/types/test-report/test_suite.go#L324: api/types/test-report/test_suite.go#L324
ST1003: method SetStartTs should be SetStartTS (stylecheck)
[golangci] api/types/test-report/test_suite.go#L337: api/types/test-report/test_suite.go#L337
ST1003: method GetStartTs should be GetStartTS (stylecheck)
[golangci] compiler/types/pipeline/container.go#L51: compiler/types/pipeline/container.go#L51
tag is not aligned, should be: json:"test_report,omitempty" yaml:"test_report,omitempty" (tagalign)
[golangci] compiler/types/pipeline/test_report.go#L16: compiler/types/pipeline/test_report.go#L16
tag is not aligned, should be: yaml:"results,omitempty" json:"results,omitempty" (tagalign)
[golangci] compiler/types/yaml/buildkite/test_report.go#L7: compiler/types/yaml/buildkite/test_report.go#L7
tag is not aligned, should be: yaml:"results,omitempty" json:"results,omitempty" (tagalign)
[golangci] compiler/types/yaml/buildkite/test_report.go#L24: compiler/types/yaml/buildkite/test_report.go#L24
tag is not aligned, should be: yaml:"results,omitempty" json:"results,omitempty" (tagalign)
[golangci] storage/storage.go#L28: storage/storage.go#L28
unnecessary trailing newline (whitespace)
[golangci] storage/storage.go#L56: storage/storage.go#L56
unnecessary trailing newline (whitespace)
[golangci] storage/minio/download.go#L95: storage/minio/download.go#L95
unnecessary trailing newline (whitespace)
[golangci] api/admin/storage.go#L322: api/admin/storage.go#L322
assignments should only be cuddled with other assignments (wsl)
[golangci] api/admin/storage.go#L388: api/admin/storage.go#L388
return statements should not be cuddled if block has more than two lines (wsl)
[golangci] api/admin/storage.go#L385: api/admin/storage.go#L385
if statements should only be cuddled with assignments (wsl)
[golangci] api/admin/storage.go#L399: api/admin/storage.go#L399
return statements should not be cuddled if block has more than two lines (wsl)
[golangci] api/admin/storage.go#L67: api/admin/storage.go#L67
only one cuddle assignment allowed before if statement (wsl)
[golangci] api/admin/storage.go#L250: api/admin/storage.go#L250
return statements should not be cuddled if block has more than two lines (wsl)
[golangci] api/admin/storage.go#L317: api/admin/storage.go#L317
if statements should only be cuddled with assignments (wsl)
[golangci] api/admin/storage.go#L390: api/admin/storage.go#L390
if statements should only be cuddled with assignments (wsl)
[golangci] api/admin/storage.go#L323: api/admin/storage.go#L323
only one cuddle assignment allowed before if statement (wsl)
[golangci] api/admin/storage.go#L395: api/admin/storage.go#L395
assignments should only be cuddled with other assignments (wsl)
[golangci] api/admin/storage.go#L396: api/admin/storage.go#L396
only one cuddle assignment allowed before if statement (wsl)
[golangci] api/admin/storage.go#L65: api/admin/storage.go#L65
expressions should not be cuddled with blocks (wsl)
[golangci] api/types/test-report/code_coverage_file.go#L103: api/types/test-report/code_coverage_file.go#L103
assignments should only be cuddled with other assignments (wsl)
[golangci] storage/storage.go#L43: storage/storage.go#L43
expressions should not be cuddled with blocks (wsl)
[golangci] storage/minio/create_bucket.go#L12: storage/minio/create_bucket.go#L12
declarations should never be cuddled (wsl)
[golangci] storage/minio/list_objects.go#L15: storage/minio/list_objects.go#L15
ranges should only be cuddled with assignments used in the iteration (wsl)
[golangci] storage/minio/list_objects.go#L19: storage/minio/list_objects.go#L19
append only allowed to cuddle with appended value (wsl)
[golangci] storage/minio/minio.go#L112: storage/minio/minio.go#L112
block should not start with a whitespace (wsl)
[golangci] storage/minio/minio.go#L89: storage/minio/minio.go#L89
block should not end with a whitespace (or comment) (wsl)
[golangci] storage/minio/minio.go#L111: storage/minio/minio.go#L111
directive `//nolint:revive // ignore returning unexported client` is unused for linter "revive" (nolintlint)
validate
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636