Skip to content

chore(lint): fix golangci-lint findings - #216

Open
iamlasse wants to merge 2 commits into
marcus:mainfrom
iamlasse:chore/lint-fix-20260816
Open

chore(lint): fix golangci-lint findings#216
iamlasse wants to merge 2 commits into
marcus:mainfrom
iamlasse:chore/lint-fix-20260816

Conversation

@iamlasse

@iamlasse iamlasse commented Aug 16, 2026

Copy link
Copy Markdown

Summary

  • errcheck: explicitly discard the return value of fmt.Fprintln(os.Stdout, ...) in cmd/nightshift/commands/commit.go (matches the existing _, _ = pattern used in run.go and provider-calibration)
  • govet (inline): replace deprecated reflect.Ptr with reflect.Pointer in cmd/nightshift/commands/config.go (autofixed by golangci-lint run --fix)

Verification

  • golangci-lint run → 0 issues (was 4)
  • go test ./... → all pass
  • go build ./... → clean
  • gofmt -l → clean

All changes are minimal and behavior-preserving.

🤖 Generated with Claude Code


Automated by nightshift

iamlasse added 2 commits June 28, 2026 02:10
Add internal/commits with pure Normalize/validate functions enforcing the project's Conventional Commits rules (known type set, lowercase type, lowercase subject, 72-char subject limit, whitespace trimming, and 72-column body wrapping). Wire it into the CLI as 'nightshift commit normalize' (positional, --file, and stdin sources; --check to validate only), ship a commit-msg git hook under scripts/, and document the format and installation in docs/commit-messages.md.

Nightshift-Task: commit-normalize
Nightshift-Ref: https://github.com/marcus/nightshift
- errcheck: check-discarded returns of fmt.Fprintln in commit.go (match
existing '_, _ =' pattern used elsewhere) - govet inline: reflect.Ptr ->
reflect.Pointer in config.go

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