mirror of
https://github.com/servo/servo.git
synced 2025-06-21 07:38:59 +01:00
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. - [X] ./mach test-tidy does not report any errors - [X] These changes fix #14898 (github issue number if applicable). |
||
---|---|---|
.. | ||
dir_check | ||
lints | ||
test_ignored/whee | ||
__init__.py | ||
apache2_license.rs | ||
Cargo.toml | ||
duplicate_key.json | ||
duplicate_keys_buildbot_steps.yml | ||
duplicated_package.lock | ||
empty_file.rs | ||
incorrect_license.rs | ||
lib.rs | ||
long_line.rs | ||
malformed_json.json | ||
modeline.txt | ||
non_list_mapping_buildbot_steps.yml | ||
non_string_list_buildbot_steps.yml | ||
rust_tidy.rs | ||
script_thread.rs | ||
servo-tidy.toml | ||
shebang_license.py | ||
shell_tidy.sh | ||
spec.webidl | ||
speclink.rs | ||
test_tidy.py | ||
unordered_key.json | ||
whatwg_link.rs | ||
wrong_space.rs |