Skip to content

Releases

v3.0.0

Choose a tag to compare

@kehoecj kehoecj released this 30 Sep 16:25

What's Changed

  • feat(reporter): merge external SARIF runs by @macayu17 in #511
  • feat(validator): add CUE syntax validation (.cue) by @kehoecj in #530
  • chore(deps): bump actions/setup-go from 6.4.0 to 6.5.0 by @dependabot[bot] in #535
  • chore(deps): bump github.com/pelletier/go-toml/v2 from 2.4.1 to 2.4.2 by @dependabot[bot] in #536
  • chore(deps): bump alpine from a2d49ea to 28bd5fe by @dependabot[bot] in #531
  • chore(deps): bump cuelang.org/go from 0.16.1 to 0.17.0 by @dependabot[bot] in #533
  • chore(deps): bump golangci/golangci-lint-action from 9.2.1 to 9.3.0 by @dependabot[bot] in #532
  • chore(deps): bump github.com/pelletier/go-toml/v2 from 2.4.2 to 2.4.3 by @dependabot[bot] in #538
  • chore(deps): bump github/codeql-action/upload-sarif from 4.36.2 to 4.36.3 by @dependabot[bot] in #537
  • chore(deps): bump oxsecurity/megalinter from 9.4.0 to 9.6.0 by @dependabot[bot] in #534
  • chore: remove Go Report Card badge and workflow by @macayu17 in #540
  • chore(deps): bump the npm_and_yarn group across 1 directory with 2 updates by @dependabot[bot] in #544
  • chore(deps): bump step-security/harden-runner from 2.19.4 to 2.20.0 by @dependabot[bot] in #543
  • chore(deps): bump github/codeql-action/upload-sarif from 4.36.3 to 4.37.0 by @dependabot[bot] in #541
  • feat(cli): add watch mode by @macayu17 in #510
  • fix(cli): stop after global help by @floze-the-genius in #552
  • docs: update stale functional testing section to reference automated txtar suite by @shivamshukla2712 in #555
  • fix(deps): resolve 5 npm vulnerabilities in website/package-lock.json blocking the pipeline by @kehoecj in #579
  • Fix/546 xml optional dtd validation by @addielaruee in #548
  • fix(windows): encode local schema paths as file URLs by @macayu17 in #553
  • fix(format): preserve JSON/JSONC key order by default by @shivamshukla2712 in #566
  • fix(yamlfmt): align comments before sequence items with the dash by @SAY-5 in #567
  • fix(tomlfmt): use zero indentation by default by @edwei06 in #578
  • fix(jsoncfmt): preserve existing trailing comma style by @macayu17 in #568
  • chore(deps): bump github/codeql-action/upload-sarif from 4.37.0 to 4.37.1 by @dependabot[bot] in #570
  • chore(deps): bump KSXGitHub/github-actions-deploy-aur from 4.1.3 to 4.2.0 by @dependabot[bot] in #572
  • chore(deps): bump actions/setup-go from 6.5.0 to 7.0.0 by @dependabot[bot] in #573
  • chore(deps): bump actions/setup-node from 6.4.0 to 7.0.0 by @dependabot[bot] in #574
  • chore(deps): bump cuelang.org/go from 0.17.0 to 0.17.1 by @dependabot[bot] in #575
  • chore(deps): bump tarides/changelog-check-action from 3 to 4 by @dependabot[bot] in #576
  • feat(format): auto-detect .editorconfig for formatting defaults by @macayu17 in #577
  • fix(formatter): normalize JSON blank lines before closing delimiters by @ihopenre-eng in #592
  • fix(deps): resolve 3 npm vulnerabilities in website/package-lock.json by @kehoecj in #606
  • feat(format): auto-detect taplo.toml for TOML formatting by @macayu17 in #593
  • fix(jsonfmt): collapse short arrays to one line within 80 columns by @SAY-5 in #569
  • feat(jsoncfmt): add default trailing commas by @matheusgb in #591
  • fix(tomlfmt): insert blank lines between tables by @AnayGarodia in #595
  • fix(tomlfmt): normalize spacing inside inline tables in arrays by @macayu17 in #594
  • test(formatter): lock JSON/JSONC default tabs-to-spaces by @MohammedAnasNathani in #603
  • chore(ci): sync MegaLinter and OSV suppression fixes from feat/3.0 by @kehoecj in #610
  • docs: use dynamic master list for supported formats by @vomar3 in #600
  • chore: update github-linguist SHA by @github-actions[bot] in #609
  • feat(format): auto-detect .prettierrc for JSON/JSONC/YAML formatting by @shivamshukla2712 in #605
  • fix(yamlfmt): add flow mapping bracket spacing by @AnayGarodia in #596
  • fix(tomlfmt): preserve aligned inline comments by @AnayGarodia in #597
  • fix(yamlfmt): default quoted scalars to double quotes by @AnayGarodia in #598
  • fix(formatter): preserve JSON blank lines by @ihopenre-eng in #601
  • feat(yamlfmt): add compact sequence indentation option by @giri256 in #602
  • feat(format): auto-detect .yamlfmt for YAML formatting defaults by @MohammedAnasNathani in #604
  • fix(yamlfmt): expand flow collections under the key's real column by @snowyukitty in #619
  • chore(deps): bump actions/checkout from 7.0.0 to 7.0.1 by @dependabot[bot] in #611
  • chore(deps): bump github.com/go-git/go-billy/v5 from 5.9.0 to 5.9.1 by @dependabot[bot] in #612
  • chore(deps): bump github.com/lestrrat-go/helium from 0.5.1 to 0.7.0 by @dependabot[bot] in #613
  • chore(deps): bump github.com/gurkankaymak/hocon from 1.2.23 to 1.3.0 by @dependabot[bot] in #614
  • chore(deps): bump github/codeql-action/upload-sarif from 4.37.1 to 4.37.3 by @dependabot[bot] in #615
  • chore(deps): bump ossf/scorecard-action from 2.4.3 to 2.4.4 by @dependabot[bot] in #617
  • chore: update github-linguist SHA by @github-actions[bot] in #626
  • fix(yamlfmt): keep fitting flow collections intact by @felix-windsor in #625
  • fix(yamlfmt): normalize sequence spacing by @Guflly in #624
  • chore(deps): fix npm audit vulnerabilities in website by @kehoecj in #636
  • chore(deps): bump github.com/magiconair/properties from 1.8.10 to 1.18.11 by @dependabot[bot] in #616
  • chore(deps): bump github.com/go-git/go-git/v5 from 5.19.1 to 5.19.2 by @dependabot[bot] in #627
  • chore(deps): bump github/codeql-action/upload-sarif from 4.37.3 to 4.37.4 by @dependabot[bot] in #629
  • chore(deps): bump github.com/rogpeppe/go-internal from 1.15.0 to 1.16.0 by @dependabot[bot] in #647
  • chore(deps): bump js-yaml from 4.3.0 to 4.3.1 in /website in the npm_and_yarn group across 1 directory by @dependabot[bot] in #649
  • chore(deps): bump step-security/harden-runner from 2.20.0 to 2.21.0 by @dependabot[bot] in #651
  • chore(deps): bump oxsecurity/megalinter from 9.6.0 to 10.0.0 by @dependabot[bot] in #652
  • chore(deps): bump github.com/owenrumney/go-sarif/v3 from 3.3.0 to 3.3.1 by @dependabot[bot] in #628
  • chore(deps): bump github.com/stretchr/testify from 1.11.1 to 1.12.1 by @dependabot[bot] in #650
  • fix(ci): resolve MegaLinter v10 failures by @kehoecj in #654
  • chore(deps): sync dependabot updates from main by @kehoecj in #653
  • fix(ci): resolve MegaLinter v10 f...
Read more

v3.0.0-rc.3

v3.0.0-rc.3 Pre-release
Pre-release

Choose a tag to compare

@kehoecj kehoecj released this 27 Aug 18:37
1fc7b36
  • 19 formatter bug fixes — YAML, JSON, TOML, XML idempotency and parity issues (99.3% match vs prettier/taplo
    now)
  • JSONC inline comment preservation + UTF-8 BOM handling
  • cfv format stdin support — pipe content in, get formatted output
  • Format-ignore files — reads .prettierignore, taplo exclude, .yamlfmtignore
  • $schema removed from inline resolution — schemas declared via --schema-map or SchemaStore only
  • 5 CLI hardening fixes — HTTP timeout, invalid glob detection, flag conflict detection, prettier config
    warnings

v3.0.0-rc.2

v3.0.0-rc.2 Pre-release
Pre-release

Choose a tag to compare

@kehoecj kehoecj released this 29 Jul 20:16

What's New

  • Unified check command: cfv check now validates syntax, enforces schemas, and checks formatting in one pass
  • cfv check --fix applies safe fixes (trailing commas, type coercion) and formatting together
  • Config resolution redesign: .cfv.toml is sole authority when present; without it, cfv reads existing tool configs per-format
  • Removed flags: --no-prettier-config, --no-taplo-config, --no-yamlfmt-config (use --no-config instead)
  • --no-config semantics changed: now disables ALL config discovery, not just .cfv.toml
  • Documentation rewrite: README, guides, and reference pages updated for v3

v3.0.0-rc.1

v3.0.0-rc.1 Pre-release
Pre-release

Choose a tag to compare

@kehoecj kehoecj released this 16 Jul 18:28

This is the first release candidate for cfv v3. It is a pre-release — go install ...@latest still resolves to v2.3.0.

Breaking changes from v2

  • Binary renamed from validator to cfv
  • Subcommand-based CLI: cfv check, cfv format (replaces flat flags)
  • Module path: github.com/Boeing/config-file-validator/v3

New: Formatting engine

  • cfv format . - show formatting issues across all config files
  • cfv format --fix . - fix formatting in-place
  • cfv format --diff . — preview changes without modifying files
  • AST-driven formatters for 9 formats: JSON, JSONC, YAML, TOML, XML, HCL, INI, Properties, ENV
  • Sort keys alphabetically (YAML, JSON, JSONC, TOML, Properties, INI)
  • Per-format configuration via .cfv.toml

New: Fix engine

  • cfv check --fix . — auto-fix common validation issues (trailing commas, type coercion)

Formatting implementation details

  • YAML: full AST-driven printer using yaml.v3 Node tree — matches prettier/yamlfmt output
  • TOML: CST-based pipeline preserving comments
  • XML: CST-based formatter handling mixed content, self-closing tags, comments
  • Properties/INI: CST-based with comment preservation
  • All formatters fuzz-tested with semantic equivalence assertions

Install

go install github.com/Boeing/config-file-validator/v3/cmd/cfv@v3.0.0-rc.1

Feedback

Please report issues at https://github.com/Boeing/config-file-validator/issues

v2.3.0

Choose a tag to compare

@kehoecj kehoecj released this 24 Jun 21:21
fc3dea5

What's Changed

  • chore(deps): bump github/codeql-action from 4.36.0 to 4.36.1 by @dependabot[bot] in #519
  • chore(deps): bump actions/checkout from 6.0.2 to 6.0.3 by @dependabot[bot] in #518
  • chore(deps): bump github.com/rogpeppe/go-internal from 1.14.1 to 1.15.0 by @dependabot[bot] in #517
  • chore(deps): bump step-security/harden-runner from 2.19.3 to 2.19.4 by @dependabot[bot] in #516
  • chore(deps): bump gopkg.in/ini.v1 from 1.67.2 to 1.67.3 by @dependabot[bot] in #522
  • chore(deps): bump github/codeql-action from 4.36.1 to 4.36.2 by @dependabot[bot] in #521
  • fix(deps): update dependencies to resolve security vulnerabilities by @kehoecj in #529
  • chore(deps): bump github.com/pelletier/go-toml/v2 from 2.3.1 to 2.4.1 by @dependabot[bot] in #528
  • chore(deps): bump github.com/lestrrat-go/helium from 0.0.1 to 0.3.0 by @dependabot[bot] in #526
  • chore(deps): bump actions/checkout from 6.0.3 to 7.0.0 by @dependabot[bot] in #527
  • chore(deps): bump alpine from 3.23 to 3.24 by @dependabot[bot] in #524
  • chore: update github-linguist SHA by @github-actions[bot] in #520
  • feat: add --ignore-file filtering by @macayu17 in #512
  • fix(validator): remove go-just nested module by @kehoecj in #494

Full Changelog: v2.2.2...v2.3.0

v2.2.2

Choose a tag to compare

@kehoecj kehoecj released this 28 May 15:09
151f141

What's Changed

  • feat: add KDL file validation support by @mvanhorn in #464
  • chore(deps): bump golangci/golangci-lint-action from 9.2.0 to 9.2.1 by @dependabot[bot] in #499
  • chore(deps): bump actions/setup-node from 4.4.0 to 6.4.0 by @dependabot[bot] in #498
  • chore(deps): bump actions/deploy-pages from 4.0.5 to 5.0.0 by @dependabot[bot] in #497
  • chore(deps): bump github/codeql-action from 4.35.5 to 4.36.0 by @dependabot[bot] in #496
  • chore(deps): bump actions/upload-pages-artifact from 3.0.1 to 5.0.0 by @dependabot[bot] in #495
  • fix: warn when schema-map skips unsupported validators by @nanookclaw in #493
  • fix(validator): reject TOML files with duplicate keys by @SAY-5 in #506
  • refactor: support recursive groupby output by @macayu17 in #500
  • fix: reject duplicate reporter output files by @macayu17 in #501
  • refactor(finder): split exclude file type cache by @macayu17 in #502
  • fix(cli): report broken symlinks as failures instead of aborting the run by @SAY-5 in #508
  • ci(release): replace attestation with SLSA provenance by @kehoecj in #513

New Contributors

Full Changelog: v2.2.1...v2.2.2

v2.2.1

Choose a tag to compare

@kehoecj kehoecj released this 22 May 19:48
d48df5b

What's Changed

  • Fix exclude-file-types for known files by @Mak-1911 in #465
  • chore(deps): bump step-security/harden-runner from 2.19.0 to 2.19.1 by @dependabot[bot] in #471
  • chore(deps): bump github.com/pelletier/go-toml/v2 from 2.3.0 to 2.3.1 by @dependabot[bot] in #470
  • chore(deps): bump gopkg.in/ini.v1 from 1.67.1 to 1.67.2 by @dependabot[bot] in #469
  • chore(deps): bump github/codeql-action from 4.35.2 to 4.35.3 by @dependabot[bot] in #468
  • chore(deps): bump github.com/go-git/go-git/v5 from 5.18.0 to 5.19.0 in the go_modules group across 1 directory by @dependabot[bot] in #472
  • chore(deps): bump step-security/harden-runner from 2.19.1 to 2.19.3 by @dependabot[bot] in #476
  • chore(deps): bump github.com/go-git/go-git/v5 from 5.19.0 to 5.19.1 by @dependabot[bot] in #477
  • chore(deps): bump github/codeql-action from 4.35.3 to 4.35.5 by @dependabot[bot] in #478
  • feat: add GitHub Actions workflow for automatic github/linguist updates by @jakubdomanski in #475
  • feat(reporter): add GitHub Actions workflow command reporter (#459) by @mvanhorn in #461
  • docs: add documentation website and slim down README by @kehoecj in #482
  • ci: use Node 22 for docs build (npm bug on 20.20.2) by @kehoecj in #485
  • chore(deps): bump webpack-dev-server from 5.2.3 to 5.2.4 in /website in the npm_and_yarn group across 1 directory by @dependabot[bot] in #483
  • NPM Fixes for Docusaurus Docs by @kehoecj in #486
  • fix: support duplicate reporter output paths by @macayu17 in #481
  • docs: add AGENTS.md + cleanup by @kehoecj in #491
  • ci: improve OpenSSF Scorecard (signed releases, vuln fixes, branch protection) by @kehoecj in #492

New Contributors

Full Changelog: v2.2.0...v2.2.1

v2.2.0

Choose a tag to compare

@kehoecj kehoecj released this 27 Apr 20:05

This is a big one. v2.2.0 brings project-level configuration, smarter file detection, and a bunch of quality-of-life improvements we've been wanting to ship for a while.

Project configuration with .cfv.toml

You can now drop a .cfv.toml file in your project root and stop repeating CLI flags. The validator auto-discovers it by walking up from the current directory, so monorepos and nested projects just work. Every flag has a config equivalent — exclude dirs, file types, schema mappings, reporter settings, all of it. The config file itself is validated against an embedded schema, so typos get caught immediately instead of silently ignored.

Justfile validation

We added syntax validation for Justfiles (.just, justfile, .justfile) using an embedded Go parser. Unlike Makefiles, Justfiles have a real grammar, which means we can actually give you useful error messages.

--gitignore support

Pass --gitignore and the validator will skip anything your .gitignore covers — including nested .gitignore files, .git/info/exclude, and your global git config. No more noise from node_modules/, dist/, or vendored files showing up in your results. Works as a CLI flag, env var (CFV_GITIGNORE), or in .cfv.toml.

Smarter file detection

The validator now recognizes ~90 common config filenames automatically, sourced from GitHub Linguist. Files like .babelrc, tsconfig.json, Pipfile, pom.xml, and .gitconfig are detected and validated without any configuration. This also means tsconfig.json is correctly treated as JSONC (not strict JSON), and SchemaStore lookups work for extensionless files like .clangd.

JSONC as a first-class type

JSONC (JSON with comments and trailing commas) is now its own file type with full syntax and schema validation. JSON and JSONC are treated as a family — --file-types=json includes both, and --exclude-file-types=json excludes both.

SchemaStore, no clone required

--schemastore now fetches schemas over HTTPS using an embedded catalog — no local clone needed. Schemas are cached locally with a 24-hour TTL. For air-gapped setups, --schemastore-path still works with a local clone.

Stdin support

You can now pipe content directly into the validator: echo '{}' | validator --file-types=json -. Handy for quick checks or integrating with other tools.

Other improvements

  • Pre-commit hooks are available — config-file-validator for changed files, config-file-validator-full for CI
  • Exit codes are now granular: 0 for success, 1 for validation errors, 2 for config/runtime errors
  • .tf and .tfvars are recognized as HCL
  • Internal refactor moved package-level globals into the CLI struct for better concurrency safety

Breaking change

--schemastore is now a boolean flag for remote lookup. If you were passing a path to it, use --schemastore-path instead.

v2.1.0

Choose a tag to compare

@kehoecj kehoecj released this 09 Apr 17:43
8e4cae6

SARIF Inline Annotations

  • SARIF reporter now emits region with startLine/startColumn on each result, enabling GitHub Actions to post inline PR annotations on the affected lines
  • 10 validators return structured position info (JSON, YAML, TOML, XML, HCL, CSV, ENV, HOCON, TOON, PList)
  • 4 validators without position info (INI, EditorConfig, Properties, SARIF) fall back to file-level annotations
  • Added ValidationError type with optional Line/Column fields

Multi-Error Separation

Previously, multiple schema validation errors were joined into a single string. Each reporter now handles them individually:

  • Standard: each error on its own indented line
  • JSON: "errors" array instead of a single "error" string
  • SARIF: each error as its own result entry (one annotation per error)
  • JUnit: each error on its own line within the <failure> message

Added SchemaErrors type to carry individual error messages from JSONSchemaValidate, ValidateXSD, and SARIF schema validation.

Error Type Classification

  • All errors are prefixed with syntax: or schema: across every reporter
  • New -groupby error-type option groups output into syntax, schema, and Passed categories
  • Works with all existing groupby combinations (e.g. -groupby error-type,filetype)

XSD Error Improvements

  • XSD validation now reports detailed diagnostics via helium ErrorCollector instead of the generic "xsd: validation failed"
  • Error format cleaned up from (string):5: Schemas validity error : ... to line 5: ...

Documentation

  • Added GitHub Action section to README and index referencing Boeing/validate-configs-action@v2.0.0
  • Updated groupby documentation to include error-type
  • Updated CHANGELOG for 2.1.0

v2.0.0

Choose a tag to compare

@kehoecj kehoecj released this 08 Apr 20:22

What's Changed

  • Add schema validation
  • feat: add fuzz test for ToonValidator by @mvanhorn in #427
  • Add Sarif + Unit Test Refactor by @kehoecj in #428
  • refactor: eliminate all test fixture files and golden files by @kehoecj in #429
  • feat: add --type-map flag to map glob patterns to file types by @kehoecj in #430
  • Upgrade to version 1.26 and add function test suite by @kehoecj in #432
  • remove: drop --check-format flag and FormatValidator interface by @kehoecj in #433
  • chore(deps): bump github.com/pelletier/go-toml/v2 from 2.2.4 to 2.3.0 by @dependabot[bot] in #435
  • chore(deps): bump actions/setup-go from 6.3.0 to 6.4.0 by @dependabot[bot] in #436
  • chore(deps): bump github/codeql-action from 4.34.1 to 4.35.1 by @dependabot[bot] in #437
  • chore(deps): bump KSXGitHub/github-actions-deploy-aur from 4.1.1 to 4.1.2 by @dependabot[bot] in #441
  • chore(deps): bump step-security/harden-runner from 2.16.0 to 2.16.1 by @dependabot[bot] in #440
  • Adding schema validation for JSON, TOML, TOON, YML, and XML by @kehoecj in #434

Full Changelog: v1.11.0...v2.0.0