Keep notification prefix private #40

Merged
barrettruth merged 1 commit from chore/private-notification-prefix into main 2026-05-05 16:41:25 +00:00
Owner

Problem

The notification-prefix cleanup centralized the prefix by exposing M.prefix from import-cost.util. That makes an internal formatting detail look like public module surface.

Solution

Keep the prefix as a private local in util.lua and route the GitHub-source migration warning through util.log(...).

Verification

  • nix develop .#ci --command stylua --check lua/import-cost/util.lua lua/import-cost/migration.lua
  • nix develop .#ci --command selene --display-style quiet lua/import-cost/util.lua lua/import-cost/migration.lua
  • nix develop .#ci --command just lint
  • git diff --check
## Problem The notification-prefix cleanup centralized the prefix by exposing `M.prefix` from `import-cost.util`. That makes an internal formatting detail look like public module surface. ## Solution Keep the prefix as a private local in `util.lua` and route the GitHub-source migration warning through `util.log(...)`. ## Verification - `nix develop .#ci --command stylua --check lua/import-cost/util.lua lua/import-cost/migration.lua` - `nix develop .#ci --command selene --display-style quiet lua/import-cost/util.lua lua/import-cost/migration.lua` - `nix develop .#ci --command just lint` - `git diff --check`
Keep notification prefix private
All checks were successful
quality / Lint (pull_request) Successful in 5s
quality / Format (pull_request) Successful in 9s
70d08d4f3b
barrettruth deleted branch chore/private-notification-prefix 2026-05-05 16:41:25 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/import-cost.nvim!40
No description provided.