code: def run(self, output=None, error=None):
          
  
          pylint_output = output if output is not None else sys.stdout
          pylint_error = error if error is not None else sys.stderr
          savedout, savederr = sys.__stdout__, sys.__stderr__
          sys.stdout = pylint_output
          sys.stderr = pylint_error
  
          pylint_files = self.get_files_from_dir(os.curdir)
          self._print_line(
              "Using pylint "
              + colorama.Fore.RED
              + pylint.__version__
              + colorama.Fore.RESET
              + " for python "
              + colorama.Fore.RED
              + PYTHON_VERSION
              + colorama.Fore.RESET
          )
  
          self._print_line("pylint running on the following files:")
          for pylint_file in pylint_files:
              # we need to recast this as a string, else pylint enters an endless recursion
              split_file = str(pylint_file).split("/")
              split_file[-1] = colorama.Fore.CYAN + split_file[-1] + colorama.Fore.RESET
              pylint_file = "/".join(split_file)
              self._print_line("- " + pylint_file)
          self._print_line("----")
  
          if not self._is_using_default_rcfile():
              self.args += ["--rcfile={}".format(self.rcfile)]
  
          exit_kwarg = {"do_exit": False}
  
          run = pylint.lint.Run(self.args + pylint_files, **exit_kwarg)
          sys.stdout = savedout
          sys.stderr = savederr
  
          sys.exit(run.linter.msg_status)
docs: Runs pylint on all python files in the current directory