You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Code Quality] Refactor addActivationInteractionPermissionsMap to reduce complex branching depth #48087
The addActivationInteractionPermissionsMap function in pkg/cli/compiler_activation_job.go (62 lines) has been flagged for complex branching depth. Its high cyclomatic complexity makes the function hard to reason about, test in isolation, and maintain when permission rules change.
Suggested Changes
Break addActivationInteractionPermissionsMap (62 lines) into 2-3 focused helpers, one per permission category/concern
Extract repeated branching patterns into a small table-driven lookup or data-driven approach
Ensure each extracted helper has a godoc comment
Verify all existing tests in compiler_activation_job_test.go still pass after refactor
Activity
github-actions commentedon Jul 27, 2026
This issue was automatically closed because it expired on 2026-07-27T01:20:46.547Z.