parameters: (self, start_dir)
docstring: Checks all relevant source files in the specified directory and
      its subdirectories for compliance with DEPS rules throughout the
      tree (starting at |self.base_directory|).  |start_dir| must be a
      subdirectory of |self.base_directory|.
  
      On completion, self.results_formatter has the results of
      processing, and calling Report() will print a report of results.
docstring_summary: Checks all relevant source files in the specified directory and
      its subdirectories for compliance with DEPS rules throughout the
      tree (starting at |self.base_directory|).  |start_dir| must be a
      subdirectory of |self.base_directory|.
docstring_tokens: Checks all relevant source files in the specified directory and its subdirectories for compliance with DEPS rules throughout the tree ( starting at |self . base_directory| ) . |start_dir| must be a subdirectory of |self . base_directory| .
function: def CheckDirectory(self, start_dir):
      """Checks all relevant source files in the specified directory and
      its subdirectories for compliance with DEPS rules throughout the
      tree (starting at |self.base_directory|).  |start_dir| must be a
      subdirectory of |self.base_directory|.
  
      On completion, self.results_formatter has the results of
      processing, and calling Report() will print a report of results.
      """
      java = java_checker.JavaChecker(self.base_directory, self.verbose)
      cpp = cpp_checker.CppChecker(
          self.verbose, self._resolve_dotdot, self.base_directory)
      proto = proto_checker.ProtoChecker(
          self.verbose, self._resolve_dotdot, self.base_directory)
      checkers = dict(
          (extension, checker)
          for checker in [java, cpp, proto] for extension in checker.EXTENSIONS)
  
      for rules, file_paths in self.GetAllRulesAndFiles(start_dir):
        for full_name in file_paths:
          if self._skip_tests and _IsTestFile(os.path.basename(full_name)):
            continue
          file_extension = os.path.splitext(full_name)[1]
          if not file_extension in checkers:
            continue
          checker = checkers[file_extension]
          file_status = checker.CheckFile(rules, full_name)
          if file_status.HasViolations():
            self.results_formatter.AddError(file_status)
function_tokens: def CheckDirectory ( self , start_dir ) : java = java_checker . JavaChecker ( self . base_directory , self . verbose ) cpp = cpp_checker . CppChecker ( self . verbose , self . _resolve_dotdot , self . base_directory ) proto = proto_checker . ProtoChecker ( self . verbose , self . _resolve_dotdot , self . base_directory ) checkers = dict ( ( extension , checker ) for checker in [ java , cpp , proto ] for extension in checker . EXTENSIONS ) for rules , file_paths in self . GetAllRulesAndFiles ( start_dir ) : for full_name in file_paths : if self . _skip_tests and _IsTestFile ( os . path . basename ( full_name ) ) : continue file_extension = os . path . splitext ( full_name ) [ 1 ] if not file_extension in checkers : continue checker = checkers [ file_extension ] file_status = checker . CheckFile ( rules , full_name ) if file_status . HasViolations ( ) : self . results_formatter . AddError ( file_status )