Skip to content

chore(lint): reduce 'make lint' to zero findings#190

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

chore(lint): reduce 'make lint' to zero findings#190
iamlasse wants to merge 1 commit into
marcus:mainfrom
iamlasse:chore/lint-fix-autofix

Conversation

@iamlasse

Copy link
Copy Markdown

Summary

Reduces make lint (golangci-lint run) to 0 issues on the nightshift module via an autofix-first approach. No behavioral changes.

What changed

  • govet (inline): replaced the deprecated reflect.Ptr constant with reflect.Pointer (Go 1.18+ alias) in cmd/nightshift/commands/config.go (2 occurrences).
  • goimports: normalized import grouping (-local github.com/marcus/nightshift) across the touched command/internal packages.

Categories of lint issues fixed

  • Deprecated/renamed APIs (govet inline) — 2 findings in config.go.
  • Import ordering / formatting — 12 files normalized by goimports/gofmt.

Verification

  • make lint0 issues (exit 0)
  • go build ./... → clean
  • go vet ./... → clean
  • go test ./... → all packages pass
Nightshift-Task: lint-fix
Nightshift-Ref: https://github.com/marcus/nightshift

Apply golangci-lint autofixes: replace deprecated reflect.Ptr with
reflect.Pointer (govet inline) and normalize import grouping via
goimports. No behavioral changes; make lint now passes with 0 issues.

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