chore: drop three fields nothing reads #24

Merged
barrettruth merged 1 commit from chore/drop-dead-fields into main 2026-07-28 00:03:45 +00:00
Owner

Checklist

  • I have read CONTRIBUTING.md.
  • No AI was used to generate, edit, or review any part of this contribution.

Problem

Three fields were written and never read.

b:ci.kind was set on every buffer, but the winbar picks its format from the
parsed URI — plugin/ci.lua:63 reads u.kind, not the buffer variable.

b:ci.run_id lost its only reader in #20, when - stopped navigating to the
run.

ci.Check.run_id never had one. The discriminator that yields it,
detailsUrl:match('/actions/runs/(%d+)/job/(%d+)'), only needs the job id
beside it.

Solution

Removed, along with their annotations. Nine lines out, one in.

Worth noting what was not removed: ansi.reset_cache() looked dead by the
same test but is called from spec/ansi_spec.lua to keep the highlight cache
deterministic between cases.

## Checklist - [x] I have read [CONTRIBUTING.md](https://forge.barrettruth.com/barrettruth/ci.nvim/src/branch/main/CONTRIBUTING.md). - [ ] No AI was used to generate, edit, or review any part of this contribution. ## Problem Three fields were written and never read. `b:ci.kind` was set on every buffer, but the winbar picks its format from the parsed URI — `plugin/ci.lua:63` reads `u.kind`, not the buffer variable. `b:ci.run_id` lost its only reader in #20, when `-` stopped navigating to the run. `ci.Check.run_id` never had one. The discriminator that yields it, `detailsUrl:match('/actions/runs/(%d+)/job/(%d+)')`, only needs the job id beside it. ## Solution Removed, along with their annotations. Nine lines out, one in. Worth noting what was *not* removed: `ansi.reset_cache()` looked dead by the same test but is called from `spec/ansi_spec.lua` to keep the highlight cache deterministic between cases.
chore: drop three fields nothing reads
All checks were successful
quality / Test (pull_request) Successful in 3s
quality / Format (pull_request) Successful in 12s
quality / Lint (pull_request) Successful in 12s
280308acd7
b:ci.kind was set on every buffer and never looked at; the winbar picks its
format from the parsed URI instead. b:ci.run_id lost its only reader when "-"
stopped navigating to the run, and ci.Check.run_id never had one — the
discriminator that produces it only needs the job id beside it.
barrettruth deleted branch chore/drop-dead-fields 2026-07-28 00:03:45 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
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/ci.nvim!24
No description provided.