MatrixSynapse/scripts-dev
Andrew Morgan 22db45bd4d
Prevent the config-lint script erroring out on any sample_config changes (#9562)
I noticed that I'd occasionally have `scripts-dev/lint.sh` fail when messing about with config options in my PR. The script calls `scripts-dev/config-lint.sh`, which attempts some validation on the sample config.

 It does this by using `sed` to edit the sample_config, and then seeing if the file changed using `git diff`.

The problem is: if you changed the sample_config as part of your commit, this script will error regardless.

This PR attempts to change the check so that existing, unstaged changes to the sample_config will not cause the script to report an invalid file.
2021-03-09 11:11:42 +00:00
..
build_debian_packages Add Ubuntu 20.10 (Groovy Gorilla) to build scripts. (#8475) 2020-10-07 08:48:54 -04:00
check-newsfragment Spruce up the check-newsfragment CI output (#8024) 2020-08-04 22:10:23 +01:00
check_line_terminators.sh Fix exit code for `check_line_terminators.sh` (#7970) 2020-07-28 08:52:25 -04:00
check_signature.py isort 5 compatibility (#7786) 2020-07-05 16:32:02 +01:00
complement.sh Add support for running Complement against the local checkout (#8317) 2020-09-29 13:47:47 +01:00
config-lint.sh Prevent the config-lint script erroring out on any sample_config changes (#9562) 2021-03-09 11:11:42 +00:00
convert_server_keys.py remove `builtins.buffer` code from storage code 2020-05-15 19:37:41 +01:00
database-save.sh Acutally add scripts-dev/ 2015-05-06 11:46:02 +01:00
definitions.py Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
dump_macaroon.py Remove obsolete __future__ imports (#8337) 2020-09-17 08:37:01 -04:00
federation_client.py Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
generate_sample_config Automate generation of the sample and debian log configs (#6627) 2020-01-03 17:14:00 +00:00
hash_history.py Remove obsolete __future__ imports (#8337) 2020-09-17 08:37:01 -04:00
lint.sh Align the directories linted in CI with the defaults in scripts-dev/lint.sh (#9191) 2021-01-21 18:26:52 +00:00
list_url_patterns.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
make_full_schema.sh Remove conflicting sqlite tables that are "reserved" (shadow fts4 tables) (#9003) 2021-02-10 20:12:57 +00:00
mypy_synapse_plugin.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
next_github_number.sh Reduce the load on our CI (#3957) 2018-09-27 00:23:21 +10:00
sign_json Add a script to sign arbitrary json objects. (#8772) 2020-11-24 12:53:00 +00:00
tail-synapse.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
update_database Rename database classes to make some sense (#8033) 2020-08-05 21:38:57 +01:00