Answer product-owner round 1: 0 🔴, 1 🟡 (0 misread); 0 🔴, 1 🟡 (0 misread); say the indentation fact counts the first 200 code files, and add mutate-changes' changelog entry
This commit is contained in:
@@ -810,7 +810,7 @@ class IndentationFact(unittest.TestCase):
|
||||
|
||||
def test_names_the_counts_the_principle_and_the_two_ways_out(self):
|
||||
(line,) = self.said(SpaceIndented(spaced=120, tabbed=3))
|
||||
self.assertIn("space-indented (120 lines against 3 with tabs)", line)
|
||||
self.assertIn("space-indented (120 lines against 3 with tabs, in the first 200 code files git lists)", line)
|
||||
self.assertIn("under “Indent with hard tabs by default”", line)
|
||||
self.assertIn("file one: convert the code to tabs, or record the override in `.editorconfig` and a decision", line)
|
||||
|
||||
@@ -826,7 +826,7 @@ class IndentationFact(unittest.TestCase):
|
||||
spaced.commit(spaced.root, "spaces")
|
||||
done = spaced.preflight()
|
||||
self.assertEqual(done.returncode, 0, done.stderr)
|
||||
self.assertIn("- The project's code is space-indented (2 lines against 0 with tabs)", done.stdout)
|
||||
self.assertIn("- The project's code is space-indented (2 lines against 0 with tabs, in the first 200 code files git lists)", done.stdout)
|
||||
spaced.write(spaced.root, ".editorconfig", "[*]\nindent_style = space\n")
|
||||
spaced.commit(spaced.root, "setting")
|
||||
self.assertNotIn("space-indented", spaced.preflight().stdout)
|
||||
|
||||
Reference in New Issue
Block a user