servo/python/tidy
bors-servo c3ce9f2c90 Auto merge of #13107 - UK992:tidy, r=Wafflespeanut
Tidy: Handle empty files

Fix index error ``list index out of range``, when file is empty.

r? @Wafflespeanut

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] There are tests for these changes

<!-- 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/13107)
<!-- Reviewable:end -->
2016-08-31 07:42:25 -05:00
..
servo_tidy Tidy: Handle empty files 2016-08-29 18:33:03 +02:00
servo_tidy_tests Tidy: Handle empty files 2016-08-29 18:33:03 +02: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 Create a Python package of Tidy 2016-04-13 16:07:04 -07: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
```