Skip to content

chore: remove unnecessary embed imports#5180

Draft
leaanthony wants to merge 1 commit intomasterfrom
fix/5140-remove-unnecessary-embed-imports
Draft

chore: remove unnecessary embed imports#5180
leaanthony wants to merge 1 commit intomasterfrom
fix/5140-remove-unnecessary-embed-imports

Conversation

@leaanthony
Copy link
Copy Markdown
Member

Description

Removes 69 unused _ "embed" imports across the v3 codebase:

  • 53 files where _ "embed" was entirely unused (no //go:embed directive and no embed.FS usage)
  • 16 files where _ "embed" was redundant because a named "embed" import already exists in the same file

The _ "embed" blank import is a side-effect import that enables //go:embed directives. When no such directive exists in the file, the import serves no purpose and can be safely removed.

Fixes #5140

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Chore/cleanup

How Has This Been Tested?

  • Verified no empty import blocks remain after removal
  • Spot-checked files in both categories to confirm correctness

Checklist:

  • My code follows the general coding style of this project
  • My changes generate no new warnings

Remove 71 unused _ "embed" imports across the v3 codebase:
- 53 files where _ "embed" was entirely unused (no //go:embed, no embed.FS)
- 18 files where _ "embed" was redundant alongside a named "embed" import

Fixes #5140
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 19, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 61869830-de27-4965-8bf4-5ad8f517941f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/5140-remove-unnecessary-embed-imports

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@leaanthony leaanthony changed the base branch from v3-alpha to master April 29, 2026 13:08
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.

Remove unnecessary embed imports

1 participant