Skip to content

fix+feat: codebase review improvements — 9 bug fixes, expanded linter, LSP/DAP fixes#8

Merged
JoshuaJewell merged 2 commits intomainfrom
claude/review-codebase-improvements-0VLxj
Apr 9, 2026
Merged

fix+feat: codebase review improvements — 9 bug fixes, expanded linter, LSP/DAP fixes#8
JoshuaJewell merged 2 commits intomainfrom
claude/review-codebase-improvements-0VLxj

Conversation

@JoshuaJewell
Copy link
Copy Markdown
Owner

Summary

This PR contains two commits resulting from a thorough codebase review, fixing 9 bugs and adding new features across the linter, LSP, DAP, and CI.


Commit 1: fix: correct 9 bugs and issues across codebase

  • fmt/lint binaries: Fix crate name mismatch (vqlut_*vcltotal_*)
  • Linter: Fix false-positive keyword detection — uppercase keywords no longer incorrectly flagged
  • Formatter: Fix word-boundary matching so SELECTED no longer matches SELECT
  • Formatter: Add missing VCL-total extension keywords: OFFSET, EFFECTS, PROOF, CONSUME
  • Error codes: Add missing Level 5 ResultTypeError
  • Checker.idr: Deduplicate statementFieldRefs
  • checkQuery: Fix function returning Ok for parse errors — now correctly returns Error
  • JSON reporting: Fix incomplete JSON escaping in reportToJson

Commit 2: feat: expand linter, fix LSP/DAP, strengthen CI

  • Linter: Add SELECT * warning, OFFSET-without-LIMIT detection, and extension keyword case checks
  • LSP: Fix compilation errors and expand completions with VCL-total keywords
  • DAP: Return explicit error response when query argument is missing
  • CI: GitLab cargo-build job now uses --workspace --all-targets for full coverage
  • Tests: 10 new tests added (82 total, all passing)

All 82 tests pass. Full workspace builds clean.

claude added 2 commits April 9, 2026 10:06
- Fix crate name mismatch: fmt/lint main.rs used vqlut_* instead of vcltotal_*
- Fix linter false-positive: no longer flags already-uppercase keywords
- Fix formatter word-boundary: SELECTED no longer matches SELECT prefix
- Add VCL-total extension keywords to formatter (OFFSET, EFFECTS, PROOF, CONSUME)
- Add missing Level 5 ResultTypeError to VclTotalError.res error codes
- Deduplicate statementFieldRefs in Checker.idr (remove redundant where block)
- Fix checkQuery returning Ok for parse errors (now returns Error)
- Fix incomplete JSON escaping in reportToJson (handle \, \n, \r, \t)
- Update tests to match corrected behavior (all 72 pass)

https://claude.ai/code/session_019DLW587RVJf7K9jF91e8vK
- Linter: add SELECT * warning (Level 5 result typing), OFFSET without
  LIMIT detection, VCL-total extension keyword case checks (EFFECTS,
  PROOF, CONSUME, USAGE, OFFSET)
- LSP: fix compilation errors (sync API, extract return type, mod lib
  warning), expand completions with all VCL-total keywords and safety
  level descriptions, remove unused params
- DAP: return explicit error for missing/invalid query argument instead
  of silently defaulting to empty string
- CI: GitLab cargo-build now uses --workspace --all-targets to catch
  binary compilation failures across all crates
- Tests: 10 new tests for formatter extension keywords, SELECT * lint,
  OFFSET-without-LIMIT lint, extension keyword case checking (82 total)

https://claude.ai/code/session_019DLW587RVJf7K9jF91e8vK
@JoshuaJewell JoshuaJewell merged commit 6707704 into main Apr 9, 2026
13 of 17 checks passed
@JoshuaJewell JoshuaJewell deleted the claude/review-codebase-improvements-0VLxj branch April 9, 2026 19:12
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.

2 participants