refactor: end generated files with a newline - #7437
Conversation
Adds a `fileContent` tag, which is `codeBlock` from common-tags plus the trailing newline every common-tags tag trims away, and uses it wherever the content is written to a file: the apt sources, the conan profile, the maven and gradle settings, the mono scripts, the node tool env and the shell wrappers. `PathService.exportToolEnvContent` no longer trims the content it appends, so the caller decides how the block ends, and the shell wrapper is built from a single template plus pieces which each end with a newline. The wrapper itself is unchanged. Co-Authored-By: Claude Opus 5 <michael.kriese+claude-code@mend.io>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (12)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe change adds and exports a ChangesFile Content Formatting
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The generated files now consistently end with a newline without changing their established content or shell-wrapper ordering. No actionable merge risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
Code Review ✅ Approved🟡 Medium risk · Generated configuration and script files now consistently end with a newline. Refactors generated file output to consistently end with a newline by introducing a OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Important Your trial ends in 2 days — upgrade now to keep code review, CI analysis, auto-apply, custom automations, and more. Was this helpful? React with 👍 / 👎 | Gitar |
Adds a
fileContenttag —codeBlockplus the trailing newline every common-tags tag trims — and uses it wherever content is written to a file: apt sources, conan profile, maven and gradle settings, mono scripts, node env and shell wrappers.exportToolEnvContentno longer trims its input, and the shell wrapper is built from a single template. The generated wrapper is unchanged.First of the #7436 follow-ups.
🤖 Generated with Claude Code