def test_multi_ignore_mixed(self): self.run.register_ignores('E001|E002,E003|E011') bashate.check_no_trailing_whitespace("if ", self.run) bashate.check_if_then("if ", self.run) bashate.check_indents(" echo", self.run) self.assertEqual(0, self.run.error_count)
def test_multi_ignore(self): run = bashate.BashateRun() run.register_ignores('E001|E011') bashate.check_no_trailing_whitespace("if ", run) bashate.check_if_then("if ", run) self.assertEqual(run.ERRORS, 0)
def test_multi_ignore_with_comma(self): self.run.register_ignores('E001,E011') bashate.check_no_trailing_whitespace("if ", self.run) bashate.check_if_then("if ", self.run) self.assertEqual(0, self.run.error_count)
def test_multi_ignore_with_slash(self): self.run.register_ignores('E001|E011') bashate.check_no_trailing_whitespace("if ", self.run) bashate.check_if_then("if ", self.run) self.assertEqual(0, self.run.ERRORS)