コード例 #1
0
    def test_process_files_with_config(self):
        config = {'shell': 'bash', 'exclude': 'SC2154,SC2069'}
        tool = Shellcheck(self.problems, config)
        tool.process_files([self.fixtures[1]])

        problems = self.problems.all(self.fixtures[1])

        eq_(2, len(problems), 'Changing standards changes error counts')
コード例 #2
0
 def setUp(self):
     self.problems = Problems()
     self.tool = Shellcheck(self.problems, {}, root_dir)
コード例 #3
0
 def setUp(self):
     self.problems = Problems()
     self.tool = Shellcheck(self.problems)