Improve tidy's license validation logic

fixes https://github.com/servo/servo/issues/10716

I took the lazy way out and hardcoded the size of block we examine for
licenses.

fixes https://github.com/servo/servo/issues/10719

Includes tests for new functionality.
This commit is contained in:
edunham 2016-04-19 13:57:09 -07:00 committed by UK992
parent 1f4dd8765f
commit 48ace17b54
7 changed files with 73 additions and 102 deletions

View file

@ -11,7 +11,7 @@ import os
from setuptools import setup, find_packages
VERSION = '0.0.3'
VERSION = '0.1.0'
install_requires = [
"flake8==2.4.1",
@ -51,7 +51,7 @@ if __name__ == '__main__':
zip_safe=False,
entry_points={
'console_scripts': [
'servo-tidy=servo_tidy.tidy:scan'
'servo-tidy=servo_tidy.tidy:scan',
],
},
)