code: def run(self):
          
          # Set a stream to replace stdout, and get results in it
          stdoutBak = sys.stdout
          streamResult = StringIO()
          sys.stdout = streamResult
          try:
              pycodestyle.Checker.check_all(self)
          finally:
              sys.stdout = stdoutBak
docs: Run pycodestyle checker and record warnings.