config-lint.sh 327 B

123456789
  1. #!/bin/bash
  2. # Find linting errors in Synapse's default config file.
  3. # Exits with 0 if there are no problems, or another code otherwise.
  4. # Fix non-lowercase true/false values
  5. sed -i -E "s/: +True/: true/g; s/: +False/: false/g;" docs/sample_config.yaml
  6. # Check if anything changed
  7. git diff --exit-code docs/sample_config.yaml