<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: dev264</title>
    <description>The latest articles on DEV Community by dev264 (@dev264).</description>
    <link>https://dev.to/dev264</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1176434%2F34171921-7349-4520-9f39-2f54d1320f99.png</url>
      <title>DEV Community: dev264</title>
      <link>https://dev.to/dev264</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dev264"/>
    <language>en</language>
    <item>
      <title>Config-file-validator v1.8.0 released!</title>
      <dc:creator>dev264</dc:creator>
      <pubDate>Wed, 18 Dec 2024 20:40:19 +0000</pubDate>
      <link>https://dev.to/dev264/config-file-validator-v180-released-4pdn</link>
      <guid>https://dev.to/dev264/config-file-validator-v180-released-4pdn</guid>
      <description>&lt;p&gt;We have just released a big update to the &lt;a href="https://github.com/Boeing/config-file-validator" rel="noopener noreferrer"&gt;config-file-validator&lt;/a&gt;. All new functionality was added by the OSS community during Hacktoberfest 2024. Thank you to all who contributed! Some highlights:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/Boeing/config-file-validator?tab=readme-ov-file#environment-variables" rel="noopener noreferrer"&gt;Environment variables&lt;/a&gt; can be used in place of or in addition to command line arguments&lt;/li&gt;
&lt;li&gt;Sarif report output now available&lt;/li&gt;
&lt;li&gt;Redesigned &lt;a href="https://github.com/Boeing/config-file-validator?tab=readme-ov-file#customize-report-output" rel="noopener noreferrer"&gt;report output&lt;/a&gt;. You can now request multiple report types and if each type should go to stdout or be saved to a file.&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Boeing/config-file-validator?tab=readme-ov-file#customize-report-output" rel="noopener noreferrer"&gt;Searching for config files using glob patterns&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Don't forget, there is also a &lt;a href="https://github.com/kehoecj/validate-configs-action" rel="noopener noreferrer"&gt;Github Action&lt;/a&gt; for easily integrating configuration file validation into your Github Actions workflow.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;jobs:
  validate-config-files:
    runs-on: ubuntu-latest
    steps:
      - uses: kehoe/validate-configs-action@v4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>opensource</category>
      <category>go</category>
      <category>showdev</category>
      <category>devops</category>
    </item>
    <item>
      <title>Config-file-validator v1.7.0 released!</title>
      <dc:creator>dev264</dc:creator>
      <pubDate>Tue, 13 Aug 2024 17:12:50 +0000</pubDate>
      <link>https://dev.to/dev264/config-file-validator-v170-released-m6k</link>
      <guid>https://dev.to/dev264/config-file-validator-v170-released-m6k</guid>
      <description>&lt;p&gt;We have just released a big update to the &lt;a href="https://github.com/Boeing/config-file-validator" rel="noopener noreferrer"&gt;config-file-validator&lt;/a&gt;. New features include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Added the &lt;code&gt;--quiet&lt;/code&gt; flag to disable stdout&lt;/li&gt;
&lt;li&gt;Added the &lt;code&gt;--group-by&lt;/code&gt; argument to organize output by pass/fail, file type, and/or directory&lt;/li&gt;
&lt;li&gt;Added support for &lt;a href="https://editorconfig.org/" rel="noopener noreferrer"&gt;EditorConfig&lt;/a&gt;, .env, and &lt;a href="https://docs.spongepowered.org/stable/en/server/getting-started/configuration/hocon.html" rel="noopener noreferrer"&gt;HOCON&lt;/a&gt; validation&lt;/li&gt;
&lt;li&gt;Added junit output to the &lt;code&gt;--reporter&lt;/code&gt; argument to produce junit results as stdout or as a file. This is useful for CI tools like Gitlab CI that can consume and report on junit test results&lt;/li&gt;
&lt;li&gt;Performance improvements to &lt;a href="https://github.com/Boeing/config-file-validator/blob/main/pkg/finder/fsfinder.go" rel="noopener noreferrer"&gt;file system finder&lt;/a&gt; which recursively scans directories for configuration files&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe2s26z6zh0aq8grvaxk8.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe2s26z6zh0aq8grvaxk8.gif" alt=" " width="800" height="621"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Don't forget, there is also a &lt;a href="https://github.com/kehoecj/validate-configs-action" rel="noopener noreferrer"&gt;Github Action&lt;/a&gt; for easily integrating configuration file validation into your Github Actions workflow.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;jobs:
  validate-config-files:
    runs-on: ubuntu-latest
    steps:
      - uses: kehoe/validate-configs-action@v4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>showdev</category>
      <category>devops</category>
      <category>cicd</category>
      <category>go</category>
    </item>
    <item>
      <title>It’s time to start validating your project’s configuration files as part of your CI/CD pipeline</title>
      <dc:creator>dev264</dc:creator>
      <pubDate>Tue, 26 Mar 2024 23:50:37 +0000</pubDate>
      <link>https://dev.to/dev264/validate-your-projects-configuration-files-as-part-of-your-cicd-pipeline-1115</link>
      <guid>https://dev.to/dev264/validate-your-projects-configuration-files-as-part-of-your-cicd-pipeline-1115</guid>
      <description>&lt;p&gt;Configuration files are often an overlooked part of the code base but syntax errors in config files are one of the main causes of production bugs. They can also cause failures in expensive CI/CD test operations such as infrastructure provisioning or functional test execution. You don’t want to wait until late in your pipeline to discover that there is a syntax error in your configuration files.&lt;/p&gt;

&lt;p&gt;Teams mistakenly believe that their unit tests will catch errors in configuration file syntax but that often isn’t the case. Unit tests usually avoid reading in configuration files from the file system instead opting to mock the read-in configuration with an object. Even if tests do read in the configuration files there are typically different configuration files for each environment such as dev, test, staging, and prod so you’d have to make sure to cover each file in your tests. Also for some DevSecOps tools that are heavily driven by configuration files there is no unit test suite to use to validate the configuration files.&lt;/p&gt;

&lt;p&gt;There are a couple tools to help with this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/dhall-lang/dhall-lang" rel="noopener noreferrer"&gt;Dhall&lt;/a&gt; - configuration files as code&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/Boeing/config-file-validator" rel="noopener noreferrer"&gt;config-file-validator&lt;/a&gt; - single tool to validate the syntax of every popular configuration file type. Has a &lt;a href="https://github.com/kehoecj/validate-configs-action" rel="noopener noreferrer"&gt;github action&lt;/a&gt; that you can integrate into an existing GitHub actions workflow (full disclosure - this is my project)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These tools can run during the lint or static analysis stages of your pipeline and make sure that simple syntax errors are caught early in the pipeline rather than later during costly testing stages or production release &lt;/p&gt;

</description>
      <category>cicd</category>
      <category>go</category>
      <category>testing</category>
      <category>devops</category>
    </item>
    <item>
      <title>Config-file-validator v1.5.0 Released!</title>
      <dc:creator>dev264</dc:creator>
      <pubDate>Tue, 07 Nov 2023 17:36:04 +0000</pubDate>
      <link>https://dev.to/dev264/config-file-validator-v150-released-3acg</link>
      <guid>https://dev.to/dev264/config-file-validator-v150-released-3acg</guid>
      <description>&lt;p&gt;We have just released a huge update to the &lt;a href="https://github.com/Boeing/config-file-validator" rel="noopener noreferrer"&gt;config-file-validator&lt;/a&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Added support for specifying multiple search paths&lt;/li&gt;
&lt;li&gt;Added --depth CLI argument to customize recursion depth with scanning search paths&lt;/li&gt;
&lt;li&gt;Added --version CLI flag to display the current config-file-validator version&lt;/li&gt;
&lt;li&gt;Added support for HCL, CSV, Properties, and Apple PList XML validation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe2s26z6zh0aq8grvaxk8.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe2s26z6zh0aq8grvaxk8.gif" alt=" " width="800" height="621"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There is also a &lt;a href="https://github.com/kehoecj/validate-configs-action" rel="noopener noreferrer"&gt;Github Action&lt;/a&gt; for easily integrating configuration file validation into your Github Actions workflow.&lt;/p&gt;

&lt;p&gt;All of the updates were from members of the OSS Community!&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>showdev</category>
      <category>go</category>
      <category>devops</category>
    </item>
    <item>
      <title>Have multiple config file types in a project? Here’s a single tool to validate them all!</title>
      <dc:creator>dev264</dc:creator>
      <pubDate>Wed, 25 Oct 2023 16:35:23 +0000</pubDate>
      <link>https://dev.to/dev264/have-multiple-config-file-types-in-a-project-heres-a-single-tool-to-validate-them-all-4l2m</link>
      <guid>https://dev.to/dev264/have-multiple-config-file-types-in-a-project-heres-a-single-tool-to-validate-them-all-4l2m</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh7h5x3a8ryxvzld9fgc3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh7h5x3a8ryxvzld9fgc3.png" alt=" " width="500" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sharing a project my team and I open-sourced around 10 months ago. We do a lot of devops/infra work which required creating and editing different types of config files. We wanted to test that the syntax of those config files was valid but didn’t want to have to use a bunch of different syntax validator tools. We wanted a single (cross platform) tool to validate all the different types and group the output into a single report. We couldn’t find anything that would do what we wanted so we created the config-file-validator project. We currently support XML, JSON, HCL, YAML, Properties, INI, and TOML with CSV and Apple PList on the way (PR’s in-review).&lt;/p&gt;

&lt;p&gt;Check it out and let us know what you think!&lt;/p&gt;

&lt;p&gt;Project Link: &lt;a href="https://github.com/Boeing/config-file-validator" rel="noopener noreferrer"&gt;https://github.com/Boeing/config-file-validator&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Releases: &lt;a href="https://github.com/Boeing/config-file-validator/releases" rel="noopener noreferrer"&gt;https://github.com/Boeing/config-file-validator/releases&lt;/a&gt;&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>go</category>
      <category>devops</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
