servo/python/tidy/servo_tidy_tests
vwvww ccb14abd12 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.

- [X] ./mach test-tidy does not report any errors
- [X] These changes fix #14898 (github issue number if applicable).
2017-02-23 01:29:46 +09:00
..
dir_check tidy: checking directories for unexpected file extensions 2016-10-02 14:40:28 +08:00
lints Add tests for the new LintRunner 2016-11-11 19:54:34 +05:30
test_ignored/whee Added a subdirectory with a file to test whether tidy command ignores files in subdirectories 2016-07-07 15:08:41 +05:30
__init__.py Package tidy 2016-04-14 15:55:25 +08:00
apache2_license.rs Improve tidy's license validation logic 2016-08-12 13:32:09 +02:00
Cargo.toml Check for license only in Cargo.toml 2016-08-25 06:50:23 +02:00
duplicate_key.json [tidy] check for duplicate keys in .json files 2016-07-08 11:12:12 +02:00
duplicate_keys_buildbot_steps.yml Add tidy linting checks for buildbot_steps.yml 2016-12-08 20:36:13 -05:00
duplicated_package.lock Tidy: Check Cargo.lock for packages with same version and different sources 2016-12-26 16:49:08 +01:00
empty_file.rs Tidy: Handle empty files 2016-08-29 18:33:03 +02:00
incorrect_license.rs Package tidy 2016-04-14 15:55:25 +08:00
lib.rs Tests alphabetical ordering of #![feature(...)] 2016-11-01 11:35:39 +05:30
long_line.rs Package tidy 2016-04-14 15:55:25 +08:00
malformed_json.json [tidy] Add test for existing json functionality 2016-07-07 17:07:03 +02:00
modeline.txt tidy check for vim and emacs modelines. 2016-04-21 17:52:09 +02:00
non_list_mapping_buildbot_steps.yml Add tidy linting checks for buildbot_steps.yml 2016-12-08 20:36:13 -05:00
non_string_list_buildbot_steps.yml Add tidy linting checks for buildbot_steps.yml 2016-12-08 20:36:13 -05:00
rust_tidy.rs Add 'use statements with extraneous spaces' tidy check 2017-02-23 01:29:46 +09:00
script_thread.rs Add a tidy check for problematic match cases in script_thread.rs 2016-12-16 11:52:45 -05:00
servo-tidy.toml Tidy: Report invalid listed ignored directories and files 2017-01-18 21:51:56 +01:00
shebang_license.py Check for blank line after shebang and grab actual comment block instead of hard-coded one 2016-08-12 13:34:38 +02:00
shell_tidy.sh Add lint for [ instead of [[ in shells scripts 2016-08-05 09:42:04 -04:00
spec.webidl Package tidy 2016-04-14 15:55:25 +08:00
speclink.rs Package tidy 2016-04-14 15:55:25 +08:00
test_tidy.py Add 'use statements with extraneous spaces' tidy check 2017-02-23 01:29:46 +09:00
unordered_key.json Check for JSON key non-duplication and order 2016-11-07 19:02:22 +11:00
whatwg_link.rs Package tidy 2016-04-14 15:55:25 +08:00
wrong_space.rs Package tidy 2016-04-14 15:55:25 +08:00