diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-02-22 21:19:08 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-22 21:19:08 -0800 |
commit | b34fdf62341a01abb8da021f07071c5eb8b06622 (patch) | |
tree | b9fb874fda8d3eba88aa013604a955adf82f1bac /python/tidy/servo_tidy_tests/script_thread.rs | |
parent | 854d720b21dda68034233a25385c4f2564a4a2d5 (diff) | |
parent | ccb14abd12ff643b5bc140613f2fc13935cdf579 (diff) | |
download | servo-b34fdf62341a01abb8da021f07071c5eb8b06622.tar.gz servo-b34fdf62341a01abb8da021f07071c5eb8b06622.zip |
Auto merge of #15690 - vwvww:issue_14898, r=Wafflespeanut
Add 'use statements with extraneous spaces' tidy check
Add 'use statements with extraneous spaces' tidy check
I added simple check routine for 'use statements with extraneous
spaces' and codes that breaks the check routine in rust_tidy.rs.
* Added a code that using 'use statements with extraneous spaces' code
in rust_tidy.rs
* Added assertion code in test_tidy.py.
* check_rust function in tidy.py now recognizes the simple case in
the 'use statements with extraneous spaces'.
* Ran tidy check on rust code and modified a
code(tests/unit/style/parsing/inherited_text.rs) that is not passing
on this new tidy check.
TODO: this code has to be refactored to support more general cases, such as tab or newline.
- [X] `./mach build -d` does not report any errors
- [X] ./mach test-tidy does not report any errors
- [X] These changes fix #14898 (github issue number if applicable).
- [X] These changes do not require tests because ./mach test-tidy itself is the test for the code.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15690)
<!-- Reviewable:end -->
Diffstat (limited to 'python/tidy/servo_tidy_tests/script_thread.rs')
0 files changed, 0 insertions, 0 deletions