rust/util
Philipp Hansch 90f31e21ab
RIIR update lints: Add check mode (update_lints.py rewrite complete)
This finishes up the rewrite of `update_lints.py` in Rust. More
specifically, this

* adds the `--check` flag and handling to clippy_dev
* tracks file changes over the different calls to `replace_region_in_file`
* only writes changes to files if the `--check` flag is *not* used
* runs `./util/dev update_lints --check` on CI instead of the old script
* replaces usage of the `update_lints.py` script with an error

`./util/dev update_lints` behaves 99% the same as the python script.
The only difference that I'm aware of is an ordering change to
`clippy_lints/src/lib.rs` because underscores seem to be sorted
differently in Rust and in Python.

🏁
2018-11-05 07:18:47 +01:00
..
gh-pages Website: Make lint categories linkable 2018-10-15 22:36:35 +09:00
cov.sh Add license header to other files 2018-10-06 09:43:08 -07:00
dev update_lints rewrite: Add structure and --print-only 2018-09-03 22:18:51 +02:00
export.py Add license header to other files 2018-10-06 09:43:08 -07:00
lintlib.py Merge pull request #3265 from mikerite/fix-export 2018-10-08 07:22:09 +01:00
update_lints.py RIIR update lints: Add check mode (update_lints.py rewrite complete) 2018-11-05 07:18:47 +01:00