Skip to content

fix(csvpp): fix bugs and update documentation from audit#14

Merged
osamingo merged 6 commits intomainfrom
fix/bug-audit-findings
Feb 7, 2026
Merged

fix(csvpp): fix bugs and update documentation from audit#14
osamingo merged 6 commits intomainfrom
fix/bug-audit-findings

Conversation

@osamingo
Copy link
Owner

@osamingo osamingo commented Feb 7, 2026

Summary

  • Fix ReadAll() line number tracking bug — ParseError.Line always reported line 1
  • Fix nil pointer dereference in Writer.formatField when *Field is nil
  • Update README.md requirements to Go 1.25 + GOEXPERIMENT=jsonv2
  • Add missing filter feature docs to CLI README
  • Add GOEXPERIMENT=jsonv2 to CLI install/build commands
  • Fix misleading variable names in Marshal/Unmarshal example
  • Remove redundant Struct Tags section from root README
  • Document WithYAMLCapacity option in csvpputil README

Test plan

  • TestReader_ReadAll_LineTracking — verifies line counter increments correctly
  • TestWriter_Write_NilField — verifies nil field does not panic
  • All existing tests pass with GOEXPERIMENT=jsonv2 go test ./...

🤖 Generated with Claude Code

osamingo and others added 6 commits February 7, 2026 19:05
- Update Go version requirement from 1.24 to 1.25
- Add GOEXPERIMENT=jsonv2 requirement for csvpputil package
- Add build/test command examples with the experiment flag

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add r.line++ in ReadAll loop so ParseError reports correct line numbers
- Export ReaderLine helper for testing
- Add TestReader_ReadAll_LineTracking test

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add nil check for field parameter in formatField
- Add TestWriter_Write_NilField test

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Fix variable names reader/writer to r/w to clarify io.Reader/io.Writer usage
- Replace redundant Struct Tags section with reference to Struct Mapping

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add filter key bindings (/, Enter, Esc) to Key Bindings table
- Document column:value filter syntax
- Add GOEXPERIMENT=jsonv2 to install and build commands

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Document WithYAMLCapacity functional option for YAMLArrayWriter
- Add usage example in code snippet

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@osamingo osamingo self-assigned this Feb 7, 2026
@osamingo osamingo marked this pull request as ready for review February 7, 2026 10:07
@osamingo osamingo merged commit be1a942 into main Feb 7, 2026
3 checks passed
@osamingo osamingo deleted the fix/bug-audit-findings branch February 7, 2026 10: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.

1 participant