parameters: (self, start_dir)
return_statement: return errors
docstring: Check the files in start_dir, recursively check its subdirectories.
docstring_summary: Check the files in start_dir, recursively check its subdirectories.
docstring_tokens: Check the files in start_dir recursively check its subdirectories .
function: def check(self, start_dir):
      """Check the files in start_dir, recursively check its subdirectories."""
      errors = []
      items = self.list_dir(start_dir)
      logging.info('check(%s) -> %d' % (start_dir, len(items)))
      for item in items:
        full_path = os.path.join(self.root_dir, start_dir, item)
        rel_path = full_path[len(self.root_dir) + 1:]
        if is_ignored(rel_path):
          continue
        if os.path.isdir(full_path):
          # Depth first.
          errors.extend(self.check_dir(rel_path))
        else:
          error = self.check_file(rel_path)
          if error:
            errors.append(error)
      return errors
function_tokens: def check ( self , start_dir ) : errors = [ ] items = self . list_dir ( start_dir ) logging . info ( 'check(%s) -> %d' % ( start_dir , len ( items ) ) ) for item in items : full_path = os . path . join ( self . root_dir , start_dir , item ) rel_path = full_path [ len ( self . root_dir ) + 1 : ] if is_ignored ( rel_path ) : continue if os . path . isdir ( full_path ) : # Depth first. errors . extend ( self . check_dir ( rel_path ) ) else : error = self . check_file ( rel_path ) if error : errors . append ( error ) return errors