Skip to content

fix: resolve gocritic if-else chains and godot comment style#109

Open
camr wants to merge 1 commit intomarcus:mainfrom
camr:lint/fix-gocritic-godot
Open

fix: resolve gocritic if-else chains and godot comment style#109
camr wants to merge 1 commit intomarcus:mainfrom
camr:lint/fix-gocritic-godot

Conversation

@camr
Copy link
Copy Markdown

@camr camr commented Apr 10, 2026

Summary

  • Add .golangci.yml enabling gocritic and godot linters for consistent CI enforcement
  • Rewrite two if-else chains flagged by gocritic as switch candidates: one in Parse (footerStart/bodyStart comparison) and one in wrapText (word-loop logic)
  • Add missing trailing periods to all godoc comments in pkg/commit/normalizer.go to satisfy godot

Test plan

  • go test ./pkg/commit/... passes with no failures
  • golangci-lint run ./pkg/commit/... reports 0 issues with the new .golangci.yml

🤖 Generated with Claude Code


Automated by nightshift

Add .golangci.yml enabling gocritic and godot linters. Rewrite two
if-else chains flagged by gocritic as switch candidates (in Parse and
wrapText). Add missing trailing periods to godoc comments in
pkg/commit/normalizer.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