Skip to content

Conversation

djeebus
Copy link
Contributor

@djeebus djeebus commented Sep 22, 2025

https://revive.run/r#redefines-builtin-id


Note

Enables the revive redefines-builtin-id rule and renames identifiers across packages to avoid builtin clashes, plus adds golangci-lint issue limits.

  • Linting:
    • revive: Enables redefines-builtin-id (removed from disabled list in .golangci.yml).
    • golangci-lint: Adds issues config with max-issues-per-linter: 50 and max-same-issues: 50.
  • Identifier renames (avoid builtin conflicts):
    • packages/docker-reverse-proxy/internal/utils/string.go: SubstringMax param max -> maxLen.
    • packages/orchestrator/internal/sandbox/uffd/userfaultfd/constants.go: NewUffdioCopy param copy -> bytesCopied.
    • packages/shared/pkg/storage/gcp_multipart.go: backoff func params min/max -> start/maxBackoff (propagated in logic).
    • packages/shared/pkg/storage/gcp_multipart_test.go: local vars max -> maxConcurrent / maxObserved in CAS loops.
    • packages/shared/pkg/storage/storage_cache.go: helper cleanup param close -> fn; updates call sites.
  • Misc:
    • Removes unused local min(int64,int64) helper in packages/orchestrator/internal/sandbox/build/build.go.

Written by Cursor Bugbot for commit fdac8ba. This will update automatically on new commits. Configure here.

…nes-builtin-id

# Conflicts:
#	packages/api/internal/handlers/template_request_build.go
@djeebus djeebus marked this pull request as ready for review October 7, 2025 00:19
@ValentaTomas ValentaTomas self-assigned this Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants