<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Pre-Commit on cge.dev</title>
    <link>https://cge.dev/tags/pre-commit/</link>
    <description>Recent content in Pre-Commit on cge.dev</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Tue, 08 Sep 2026 17:56:33 -0700</lastBuildDate>
    <atom:link href="https://cge.dev/tags/pre-commit/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Enforce Zephyr code quality with pre-commit</title>
      <link>https://cge.dev/posts/enforce-zephyr-code-quality-pre-commit/</link>
      <pubDate>Sun, 16 Jul 2023 00:00:00 +0000</pubDate>
      <guid>https://cge.dev/posts/enforce-zephyr-code-quality-pre-commit/</guid>
      <description>&lt;p&gt;&#xA;&#xA;&#xA;&#xA;&lt;a href=&#34;images/zephyr_kite.png&#34;&gt;&#xA;  &lt;img src=&#34;images/zephyr_kite.png&#34; alt=&#34;zephyr_kite&#34; class=&#34;center&#34; /&gt;&#xA;&lt;/a&gt;&#xA;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;In this article, I&amp;rsquo;ll describe how embedded firmware developers can leverage &lt;a href=&#34;https://pre-commit.com/&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;code&gt;pre-commit&lt;/code&gt;&lt;/a&gt; to automate and enforce code quality checks in their Zephyr RTOS embedded firmware projects.&lt;/p&gt;&#xA;&lt;div class=&#34;notice note&#34;&gt;&#xA;  &lt;div class=&#34;notice-title&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-sticky-note&#34; aria-hidden=&#34;true&#34;&gt;&lt;/i&gt;Note&#xA;  &lt;/div&gt;&#xA;  &lt;div class=&#34;notice-content&#34;&gt;&lt;p&gt;An earlier revision of this article recommended running &lt;code&gt;clang-format&lt;/code&gt; as a pre-commit hook. While this is still possible, there are some downsides to running &lt;code&gt;clang-format&lt;/code&gt; automatically via &lt;code&gt;pre-commit&lt;/code&gt; (for example, &lt;code&gt;clang-format&lt;/code&gt; formatting &lt;a href=&#34;https://github.com/zephyrproject-rtos/zephyr/issues/52712#issuecomment-1516541794&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;does not 100% align&lt;/a&gt; with the Zephyr project coding style and needs some manual fixing).&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
