<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Git-Hooks on Pauls Blog</title><link>https://prule.github.io/pauls-blog/tags/git-hooks/</link><description>Recent content in Git-Hooks on Pauls Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 23 Nov 2026 14:23:53 +1100</lastBuildDate><atom:link href="https://prule.github.io/pauls-blog/tags/git-hooks/index.xml" rel="self" type="application/rss+xml"/><item><title>Formatting Belongs in the Test Command, Not Just the Commit Hook</title><link>https://prule.github.io/pauls-blog/post/coding/2026/formatting-in-the-test-command/</link><pubDate>Mon, 23 Nov 2026 00:00:00 +1100</pubDate><guid>https://prule.github.io/pauls-blog/post/coding/2026/formatting-in-the-test-command/</guid><description>&lt;p&gt;Until recently my projects formatted code in one place: a pre-commit hook. Write some code, commit, and the hook tidies it up on the way in. That works fine when a person is doing the work.&lt;/p&gt;&#10;&lt;p&gt;It works less well when an agent is. Most of the code in my projects is now written by Claude Code, and the agent&amp;rsquo;s loop isn&amp;rsquo;t &amp;ldquo;write, commit&amp;rdquo;. It&amp;rsquo;s &amp;ldquo;write, run the tests, run &lt;code&gt;sonar-check&lt;/code&gt;, report done&amp;rdquo;. The commit comes later.&lt;/p&gt;</description></item><item><title>Secret Scanning Every Commit in My Dev VM with Betterleaks</title><link>https://prule.github.io/pauls-blog/post/coding/2026/betterleaks-in-devvm/</link><pubDate>Sun, 22 Nov 2026 00:00:00 +1100</pubDate><guid>https://prule.github.io/pauls-blog/post/coding/2026/betterleaks-in-devvm/</guid><description>&lt;p&gt;A while ago I moved all my projects into &lt;a href="https://github.com/prule/devvm" target="_blank" rel="noopener"&gt;one Linux VM&lt;/a&gt;&#10;, and these days most of the commits in it aren&amp;rsquo;t typed by me. Claude Code writes the code, runs the tests and commits. That&amp;rsquo;s mostly great, but I wanted to be sure no secrets ever got pushed. So I set out to make sure every commit in the VM got scanned for secrets before it was made. Every repo, including ones I&amp;rsquo;d cloned months ago and forgotten about.&lt;/p&gt;</description></item></channel></rss>