<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Code-Quality on Kimani Mbugua - Data and Technology blog</title><link>http://kimanimbugua.com/tags/code-quality/</link><description>Recent content in Code-Quality on Kimani Mbugua - Data and Technology blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 05 Mar 2023 00:00:00 +0000</lastBuildDate><atom:link href="http://kimanimbugua.com/tags/code-quality/rss.xml" rel="self" type="application/rss+xml"/><item><title>Automating repo scaffolding with Azure DevOps</title><link>http://kimanimbugua.com/post/using-azure-devops-to-automate-cookiecutter-scaffolding/</link><pubDate>Sun, 05 Mar 2023 00:00:00 +0000</pubDate><guid>http://kimanimbugua.com/post/using-azure-devops-to-automate-cookiecutter-scaffolding/</guid><description>&lt;p&gt;Integrating Cookiecutter with yaml pipelines in Azure DevOps to automatically scaffold repos, provides a simple and repeatable workflow and further minimises manual effort. This will show how we can set up this automation in DevOPs via yaml pipelines.&lt;/p&gt;</description></item><item><title>Using Azure DevOps to run Cookiecutter templates</title><link>http://kimanimbugua.com/post/using-azure-devops-to-run-cookiecutter-templates/</link><pubDate>Sun, 19 Feb 2023 00:00:00 +0000</pubDate><guid>http://kimanimbugua.com/post/using-azure-devops-to-run-cookiecutter-templates/</guid><description>&lt;p&gt;Ever wondered how you can scaffold repos in a yaml pipeline? This post will show how we could do this in Azure DevOps.&lt;/p&gt;</description></item><item><title>Using cookiecutter hooks to enhance code scaffolding</title><link>http://kimanimbugua.com/post/using-cookiecutter-hooks-to-enhance-code-scaffolding/</link><pubDate>Sun, 29 Jan 2023 00:00:00 +0000</pubDate><guid>http://kimanimbugua.com/post/using-cookiecutter-hooks-to-enhance-code-scaffolding/</guid><description>&lt;p&gt;Using cookiecutter to scaffold code repositories offers useful way kick start projects. To enhance the user experience even more, this post will look at using hooks to perform actions such as input validation and clean up activities.&lt;/p&gt;</description></item><item><title>Scaffolding repos with cookiecutter</title><link>http://kimanimbugua.com/post/scaffolding-repos-with-cookiecutter/</link><pubDate>Sun, 15 Jan 2023 00:00:00 +0000</pubDate><guid>http://kimanimbugua.com/post/scaffolding-repos-with-cookiecutter/</guid><description>&lt;p&gt;For code development projects, we often end up creating code repositories (repos) that have similar structures or components to what we have previously used.&lt;/p&gt;
&lt;p&gt;Cookiecutter is a tool that we can use to scaffold the creation of our repos and this post will guide you through how to do this and more.&lt;/p&gt;</description></item><item><title>Part 3 - Pre-commit hooks - SQL Linting</title><link>http://kimanimbugua.com/post/azure-repos-pre-commit-hooks-part-3/</link><pubDate>Sat, 13 Feb 2021 00:00:00 +0000</pubDate><guid>http://kimanimbugua.com/post/azure-repos-pre-commit-hooks-part-3/</guid><description>&lt;p&gt;It can be a challenge to keep code formatted consistently and with a lack of consistency, errors soon follow.&lt;/p&gt;
&lt;p&gt;In part 3 of this pre-commit hooks series, we&amp;rsquo;ll focus on how we can use pre-commit hooks in Azure git repos, to automatically check for stylistic and programmatic errors in SQL scripts.&lt;/p&gt;</description></item><item><title>Part 2 - Detect secrets in Azure repos</title><link>http://kimanimbugua.com/post/azure-repos-pre-commit-hooks-part-2/</link><pubDate>Sat, 30 Jan 2021 00:00:00 +0000</pubDate><guid>http://kimanimbugua.com/post/azure-repos-pre-commit-hooks-part-2/</guid><description>&lt;p&gt;Even with the advent of cloud computing and all manner of technology enhancements, exposing secrets seems to be a problem that won&amp;rsquo;t go away.&lt;/p&gt;
&lt;p&gt;Without the right controls in place, developers can leak secrets that can cause financial and reputational damage to an organisation.&lt;/p&gt;
&lt;p&gt;In part 2, we&amp;rsquo;ll look at how we can use a pre-commit hook to try and detect secrets in our code.&lt;/p&gt;</description></item><item><title>Part 1 - Pre-commit hooks in Azure repos</title><link>http://kimanimbugua.com/post/azure-repos-pre-commit-hooks-part-1/</link><pubDate>Sat, 23 Jan 2021 00:00:00 +0000</pubDate><guid>http://kimanimbugua.com/post/azure-repos-pre-commit-hooks-part-1/</guid><description>&lt;p&gt;Having standards for code development is a necessity but making sure those standards are followed can be a challenge.&lt;/p&gt;
&lt;p&gt;As human beings, we make mistakes and can overlook standards at the very moment we need to apply them.&lt;/p&gt;
&lt;p&gt;Central to that challenge is making sure standards are applied before changes are committed.&lt;/p&gt;
&lt;p&gt;In this series, we&amp;rsquo;ll look at taking on that challenge with pre-commit hooks. We&amp;rsquo;ll explore what pre-commit hooks are, why we might want to use them and how they work.&lt;/p&gt;</description></item></channel></rss>