Skip to main content
Version: v1.5.0

Lint your config

A faulty configuration could make GO Feature Flag not the way you expect.
This is why we have introduced the go-feature-flag-lint a command line tool validates that a flags file can be parsed by GO Feature Flag.


We recommend you to use this command line in your CI/CD pipelines to avoid any disappointment.

Install the linter

Install using Homebrew (mac and linux)

brew tap thomaspoignant/homebrew-tap
brew install go-feature-flag-lint

Install using Scoop (windows)

scoop bucket add org
scoop install go-feature-flag-lint

Install using Docker

docker pull thomaspoignant/go-feature-flag-lint:latest

Use the linter

./go-feature-flag-lint \
--input-format=yaml \

The command line has 2 arguments you should specify.

--input-file(mandatory) The location of your configuration file.
--input-format(mandatory) The format of your current configuration file.
Available formats are yaml, json, toml.

GitHub Actions

You can run go-feature-flag-lint using GitHub actions:

runs-on: ubuntu-latest
- uses: actions/checkout@v3
- uses: docker://thomaspoignant/go-feature-flag-lint:latest
args: --input-file=/github/workspace/path/to/your/config.yaml --input-format=yaml

Get the latest GO Feature Flag updates