servo/python/tidy
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
..
servo_tidy Add 'use statements with extraneous spaces' tidy check 2017-02-23 01:29:46 +09:00
servo_tidy_tests Add 'use statements with extraneous spaces' tidy check 2017-02-23 01:29:46 +09:00
HISTORY.rst Improve tidy's license validation logic 2016-08-12 13:32:09 +02:00
Makefile bump the minor version of servo_tidy 2016-04-17 04:33:24 +09:00
README.rst update docs with test command 2016-10-02 14:41:03 +08:00
setup.py bump Tidy version no 2016-08-29 15:43:45 -07:00

servo_tidy
==========

Servo's code and license checker.

Install from PyPI (coming soon) or

```
pip install -e git+https://github.com/servo/servo.git#egg=servo_tidy&subdirectory=python/tidy
```

To run the tests
++++++++++++++++

```
./mach test-tidy --self-test
```