Skip to content

fix(parser): reflect.Ptr -> reflect.Pointer (v2.12.2 lint)#65

Merged
felixgeelhaar merged 2 commits into
mainfrom
fix/v2.12-lint
Jun 8, 2026
Merged

fix(parser): reflect.Ptr -> reflect.Pointer (v2.12.2 lint)#65
felixgeelhaar merged 2 commits into
mainfrom
fix/v2.12-lint

Conversation

@felixgeelhaar

Copy link
Copy Markdown
Collaborator

Pre-existing lint failure surfaced by the golangci v2.7.2→v2.12.2 bump (unrelated to any gosec work). reflect.Ptr is the deprecated pre-Go-1.18 alias for reflect.Pointer; staticcheck flags it. 3 mechanical renames in internal/parser/parser.go, no behavior change.

reflect.Ptr is the deprecated pre-Go-1.18 alias; staticcheck (under
golangci v2.12.2) flags it. Mechanical rename, no behavior change.
Copilot AI review requested due to automatic review settings June 8, 2026 18:02

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

Updates the reflection-based parser to satisfy newer staticcheck linting by replacing deprecated reflect.Ptr usage with reflect.Pointer, with no intended runtime behavior change.

Changes:

  • Replace reflect.Ptr with reflect.Pointer in ParseMachineStruct.
  • Replace reflect.Ptr with reflect.Pointer in state field parsing.
  • Replace reflect.Ptr with reflect.Pointer in marker-type detection.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

G115/G118/G204/G703/G704/G706 are high-noise rules that v2.12.2's
bundled gosec newly enforces (none fired under v2.7.2). Taint
(G703/G704/G706) moves to nox once nox/taint-analysis is verified;
the rest are noisy. gosec keeps its stable high-signal rules.
@felixgeelhaar felixgeelhaar merged commit 855faeb into main Jun 8, 2026
7 checks passed
@felixgeelhaar felixgeelhaar deleted the fix/v2.12-lint branch June 8, 2026 18:13
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