Skip to content

chore: fix govet reflect.Ptr lint findings in config command#195

Open
iamlasse wants to merge 1 commit into
marcus:mainfrom
iamlasse:chore/lint-fixes
Open

chore: fix govet reflect.Ptr lint findings in config command#195
iamlasse wants to merge 1 commit into
marcus:mainfrom
iamlasse:chore/lint-fixes

Conversation

@iamlasse

@iamlasse iamlasse commented Jul 24, 2026

Copy link
Copy Markdown

Summary

Minimal-scope lint fix. golangci-lint run ./... on origin/main reported 2 govet inline findings in cmd/nightshift/commands/config.go, both flagging the deprecated reflect.Ptr. Replaced both occurrences with the modern reflect.Pointer alias (identical behavior; reflect.Ptr is a deprecated alias kept only for compatibility).

After the change: golangci-lint reports 0 issues, go build ./... and make test pass.

Scope note

This PR addresses exactly the findings present on origin/main. The plan mentioned 2 additional errcheck findings in commit.go (fmt.Fprintln(os.Stdout, normalized)), but that file does not exist on origin/main — it is introduced by a separate, unmerged feature commit (feat(commits): add Conventional Commits message normalizer, c26c5fd). Bundling that feature here would violate the minimal-scope / no-behavior-changes intent of this lint-fix task, so it is excluded.

Changes

  • cmd/nightshift/commands/config.go: reflect.Ptrreflect.Pointer (2 sites)

Nightshift-Task: lint-fix
Nightshift-Ref: https://github.com/marcus/nightshift


Automated by nightshift

Replace deprecated reflect.Ptr with reflect.Pointer to resolve govet
inline findings.

Nightshift-Task: lint-fix
Nightshift-Ref: https://github.com/marcus/nightshift
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