mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Report use statements that use {} with only one entry
This commit is contained in:
parent
4dcb05ca4f
commit
40acd24e8f
55 changed files with 92 additions and 89 deletions
|
@ -53,6 +53,7 @@ class CheckTidiness(unittest.TestCase):
|
|||
self.assertEqual('use statement spans multiple lines', errors.next()[2])
|
||||
self.assertEqual('missing space before }', errors.next()[2])
|
||||
self.assertTrue('use statement is not in alphabetical order' in errors.next()[2])
|
||||
self.assertEqual('use statement contains braces for single import', errors.next()[2])
|
||||
self.assertEqual('encountered whitespace following a use statement', errors.next()[2])
|
||||
self.assertTrue('mod declaration is not in alphabetical order' in errors.next()[2])
|
||||
self.assertEqual('mod declaration spans multiple lines', errors.next()[2])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue