Warn about empty lines following an open brace.

This commit is contained in:
Josh Matthews 2016-05-27 11:48:28 -04:00
parent 3ab5c07559
commit 4ebc065cba
2 changed files with 8 additions and 2 deletions

View file

@ -58,6 +58,7 @@ class CheckTidiness(unittest.TestCase):
self.assertTrue('mod declaration is not in alphabetical order' in errors.next()[2])
self.assertEqual('mod declaration spans multiple lines', errors.next()[2])
self.assertTrue('extern crate declaration is not in alphabetical order' in errors.next()[2])
self.assertEqual('found an empty line following a {', errors.next()[2])
self.assertEqual('missing space before ->', errors.next()[2])
self.assertEqual('missing space after ->', errors.next()[2])
self.assertEqual('missing space after :', errors.next()[2])