Skip to content

Unified: Minor style tweak for plugin import. - #22591

Open
aschackmull wants to merge 1 commit into
github:mainfrom
aschackmull:unified/plugins-import
Open

aschackmull wants to merge 1 commit into
github:mainfrom
aschackmull:unified/plugins-import

Conversation

@aschackmull

Copy link
Copy Markdown
Contributor

This is, I think, the best practice pattern for reverse imports like this. It makes it clear that the import is only about plugin activation and not about putting anything in scope.

Copilot AI balanced review requested due to automatic review settings September 16, 2026 12:10
@aschackmull
aschackmull requested a review from a team as a code owner September 16, 2026 12:10
@aschackmull aschackmull added the no-change-note-required This PR does not need a change note label Sep 16, 2026
@aschackmull
aschackmull requested a review from asgerf September 16, 2026 12:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved review issues were identified.

Review tier: Lite (auto)
Findings: None

Note

Copilot is running an experiment and ran this review at Lite.

What changed in this PR

This pull request refines reverse plugin imports by encapsulating them in private modules, preventing scope pollution while preserving plugin activation.

Changes:

  • Isolate the Swift name-binding plugin import.
  • Isolate the Swift data-flow plugin import.
File Description
unified/​ql/​lib/​codeql/​unified/​internal/​NameBindingPlugin.qll Encapsulates the Swift name-binding import.
unified/​ql/​lib/​codeql/​unified/​internal/​dataflow/​DataFlowPlugin.qll Encapsulates the Swift data-flow import.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants