parameters: (p)
return_statement: return errs
docstring: Check that each RUN command can be executed with an emulator
  
    Args:
      p: str, valid path to a file
  
    Returns:
      The number of errors detected.
docstring_summary: Check that each RUN command can be executed with an emulator
docstring_tokens: Check that each RUN command can be executed with an emulator
function: def LintFile(p):
    """ Check that each RUN command can be executed with an emulator
  
    Args:
      p: str, valid path to a file
  
    Returns:
      The number of errors detected.
    """
    errs = 0
    with open(p, 'r', encoding='utf-8') as f:
      for i, s in enumerate(f.readlines(), start=1):
        msg, col = LintLine(s)
        if msg != None:
          errs += 1
          errorMsg = 'litlint: {}:{}:{}: error: {}.\n{}{}\n'
          arrow = (col-1) * ' ' + '^'
          sys.stderr.write(errorMsg.format(p, i, col, msg, s, arrow))
    return errs
function_tokens: def LintFile ( p ) : errs = 0 with open ( p , 'r' , encoding = 'utf-8' ) as f : for i , s in enumerate ( f . readlines ( ) , start = 1 ) : msg , col = LintLine ( s ) if msg != None : errs += 1 errorMsg = 'litlint: {}:{}:{}: error: {}.\n{}{}\n' arrow = ( col - 1 ) * ' ' + '^' sys . stderr . write ( errorMsg . format ( p , i , col , msg , s , arrow ) ) return errs