Skip to content
This repository was archived by the owner on Aug 17, 2026. It is now read-only.

Retire the integration lane's standing lint findings - #82

Merged
borisbat merged 1 commit into
masterfrom
bbatkin/lint-lane-debt
Aug 14, 2026
Merged

Retire the integration lane's standing lint findings#82
borisbat merged 1 commit into
masterfrom
bbatkin/lint-lane-debt

Conversation

@borisbat

Copy link
Copy Markdown
Owner

The integration lane's lint step reports 7 findings on master, all older than the rules that flag them (STYLE040 / PERF031 landed daslang-side after every file's last touch), so any PR opened against master today inherits a red step it didn't cause — #81 is eating that right now. This clears our side:

  • daslib/vulkan_boost.dasset_extent_2d absorbs the four 2D-extent runs (width / height / depth = 1), and push_memory_management_extensions the memory-extension trio both device creators duplicate.
  • daslib/vulkan_imgui_app.das — the no-scene harness_end_frame delegates to the block overload with an empty scene: identical frame, 11 fewer lines.
  • generator/vk_model.das / vk_naming.das — the dim-scan and vendor-tag loops walk a peek_data view, so nothing re-strlens the source per iteration. Regenerated output is byte-identical (skip report and all four generated daslib files diffed against a fresh run), so the rewrites are proven behavior-preserving.

Verified locally with the CI-shaped whole-tree gate: 150 files, 1 issue, 0 errors — the one left is vulkan_cmds.das's jagged-view STYLE040, which #81 removes in the emitter (the honest fix for a generated file; a hand-edit would die on regen and fail the ratchet diff). The lane goes fully green once both land. Note my local gate also compiles vulkan_imgui_app.das, which CI's daslang (no dasImgui) skips — that file's finding was invisible to CI but real.

🤖 Generated with Claude Code

The lane's lint step reports 7 findings on master, none newer than the
rules that added them (STYLE040 and PERF031 postdate every file's last
touch), so every PR opened today inherits a red step it didn't cause.

- vulkan_boost: set_extent_2d absorbs the four 2D-extent runs, and
  push_memory_management_extensions the extension trio both device
  creators carry.
- vulkan_imgui_app: the no-scene harness_end_frame delegates to the
  block overload with an empty scene - same frame, 11 fewer lines.
- vk_model / vk_naming: the dim-scan and vendor-tag loops walk a
  peek_data view, so nothing re-strlens the source per iteration.
  Regenerated output is byte-identical, so the rewrites are proven
  behavior-preserving.

The one finding left is vulkan_cmds' jagged-view STYLE040, which #81
removes in the emitter - the honest fix for a generated file.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 14, 2026 03:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR removes longstanding lint warnings on master by refactoring a few hot-path string scans in the generator and deduplicating repeated boost-layer helper logic, keeping the Vulkan bindings/boost layer lint-clean without changing emitted outputs.

Changes:

  • Generator: use peek_data views in vk_model.das and vk_naming.das to avoid repeated string-length rescans during loops.
  • Boost layer: factor repeated “memory management extension” pushes and common 2D image extent assignments into private helpers in vulkan_boost.das.
  • ImGui harness: make the no-argument harness_end_frame() delegate to the block overload in vulkan_imgui_app.das to reduce duplicated frame-finalization code.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
generator/vk_naming.das Refactors vendor-tag stripping to iterate over a peek_data view for better lint/perf characteristics.
generator/vk_model.das Refactors numeric array-dimension scanning to iterate over a peek_data view with an index cursor.
daslib/vulkan_imgui_app.das Delegates harness_end_frame() to the block overload with an empty scene block to dedupe logic.
daslib/vulkan_boost.das Adds small private helpers to remove duplicated extension-push logic and 2D extent setup in image creation helpers.

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

Comment thread generator/vk_naming.das
var found_tag = ""
peek_data(s) $(d) {
for (t in tags) {
// require a lowercase char right before the tag so "VkASTC..." doesn't lose a fake tag
@borisbat
borisbat merged commit 540b561 into master Aug 14, 2026
5 of 6 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants