Skip to content

sarifix config validate

sarifix config validate

Validate config and print resolved values

Synopsis

Load sarifix.yaml (layered over --org-config when given), apply defaults, validate it and print the resolved config. Errors name the file, the key path and the line. Exits 2 when the config is invalid.

sarifix config validate [flags]

Examples

  sarifix config validate
  sarifix config validate --strict --org-config org/sarifix.yaml
  sarifix config validate --json | jq .scanners

Options

  -h, --help     help for validate
  -q, --quiet    only report validity, don't print the resolved config
      --strict   also reject rules.allow globs that match no configured scanner

Options inherited from parent commands

      --config string       path to sarifix.yaml (default "sarifix.yaml")
      --json                machine-readable JSON output
      --log-level string    log level: debug, info, warn, error (default "info")
      --org-config string   org default config layered under --config
      --repo string         repository root (default ".")
      --settings string     settings file (default: search XDG config and home)

SEE ALSO