Skip to content

fix: emit trailing newline when writing lucide-icon-clusters.json - #195

Merged
mmacpherson merged 1 commit into
mainfrom
fix/clusters-trailing-newline
Aug 24, 2026
Merged

fix: emit trailing newline when writing lucide-icon-clusters.json#195
mmacpherson merged 1 commit into
mainfrom
fix/clusters-trailing-newline

Conversation

@mmacpherson

Copy link
Copy Markdown
Owner

Problem

save_clusters_json wrote src/lucide/data/lucide-icon-clusters.json without a trailing newline, so every generated Lucide update PR was born red on the fix end of files pre-commit hook. Tests always passed; only lint failed. During the 2026-08-23 /prs review, #190, #191, and #194 each had to be fixed by hand (append newline → re-run CI → merge).

Fix

Append "\n" when writing the JSON, so update PRs land lint-green.

Fixes mikemac-bbyd.

🤖 Generated with Claude Code

save_clusters_json wrote the file without a final newline, so every
generated Lucide update PR was born red on the end-of-file-fixer
pre-commit hook (tests always passed; only lint failed). Append the
newline at the source so update PRs land lint-green.

Fixes mikemac-bbyd.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013oKQt3S2tWA5TWmq1vLSMN
@mmacpherson
mmacpherson merged commit 040f513 into main Aug 24, 2026
6 checks passed
@mmacpherson
mmacpherson deleted the fix/clusters-trailing-newline branch August 24, 2026 00:35
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