Handle case where line_numbers is None instead of an array of line numbers
authorjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 24 Jul 2017 17:31:12 +0000 (17:31 +0000)
committerjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 24 Jul 2017 17:31:12 +0000 (17:31 +0000)
commite1a875f496c7ed838fc746a1e5453fe04cb7eecd
tree67c0eef37a20c17a6fad2a13dbf8bfde19c41f5b
parenta9bc644c16de525a2a5e390b5ce4fc882bd87826
Handle case where line_numbers is None instead of an array of line numbers
https://bugs.webkit.org/show_bug.cgi?id=174775

Reviewed by Aakash Jain.

Added files set line_numbers to None in process_file.

* Scripts/webkitpy/style/filereader.py:
(TextFileReader.process_file): Handle case where line_number is set to None.
* Scripts/webkitpy/style/main_unittest.py:
(ExpectationLinterInStyleCheckerTest.test_linter_added_file_with_error): Test case of an added file.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@219827 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/Scripts/webkitpy/style/filereader.py
Tools/Scripts/webkitpy/style/main_unittest.py