code: def shell(args=None, error=True):
      
      if args is None:
          args = sys.argv[1:]
  
      options = parse_options(args)
      setup_logger(options)
      LOGGER.info(options)
  
      # Install VSC hook
      if options.hook:
          from .hook import install_hook
          for path in options.paths:
              return install_hook(path)
  
      return process_paths(options, error=error)
docs: Endpoint for console.
  
      Parse a command arguments, configuration files and run a checkers.
  
      :return list: list of errors
      :raise SystemExit: