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)
commitfd8076f92f844e4074bd356b23aa01e12b8b7ad7
tree67c0eef37a20c17a6fad2a13dbf8bfde19c41f5b
parent0ca045afbf6b55d718c99ae71df8547487c33386
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: http://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