summary refs log tree commit diff
path: root/scripts-dev/config-lint.sh
blob: 677a854c8579d2b180127b5f331a37dc43c1beba (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/bash
# Find linting errors in Synapse's default config file.
# Exits with 0 if there are no problems, or another code otherwise.

# Fix non-lowercase true/false values
sed -i -E "s/: +True/: true/g; s/: +False/: false/g;" docs/sample_config.yaml

# Check if anything changed
git diff --exit-code docs/sample_config.yaml