summary refs log tree commit diff
path: root/scripts-dev/config-lint.sh
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-10-25 10:19:09 +0100
committerErik Johnston <erik@matrix.org>2019-10-25 10:19:09 +0100
commitb409d51dee6cf612a64fedd42798690abca4c11e (patch)
treeb221d42929812cb5229975bf15ec327878006d80 /scripts-dev/config-lint.sh
parentMerge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes (diff)
parentMerge pull request #6251 from matrix-org/michaelkaye/debug_guard_logging (diff)
downloadsynapse-b409d51dee6cf612a64fedd42798690abca4c11e.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes
Diffstat (limited to 'scripts-dev/config-lint.sh')
-rwxr-xr-xscripts-dev/config-lint.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts-dev/config-lint.sh b/scripts-dev/config-lint.sh
new file mode 100755

index 0000000000..677a854c85 --- /dev/null +++ b/scripts-dev/config-lint.sh
@@ -0,0 +1,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