parameters: (filename, linenum, category, confidence, message)
docstring: Logs the fact we've found a lint error.
  
    We log where the error was found, and also our confidence in the error,
    that is, how certain we are this is a legitimate style regression, and
    not a misidentification or a use that's sometimes justified.
  
    False positives can be suppressed by the use of
    "cpplint(category)"  comments on the offending line.  These are
    parsed into _error_suppressions.
  
    Args:
      filename: The name of the file containing the error.
      linenum: The number of the line containing the error.
      category: A string used to describe the "category" this bug
        falls under: "whitespace", say, or "runtime".  Categories
        may have a hierarchy separated by slashes: "whitespace/indent".
      confidence: A number from 1-5 representing a confidence score for
        the error, with 5 meaning that we are certain of the problem,
        and 1 meaning that it could be a legitimate construct.
      message: The error message.
docstring_summary: Logs the fact we've found a lint error.
docstring_tokens: Logs the fact we ve found a lint error .
function: def Error(filename, linenum, category, confidence, message):
    """Logs the fact we've found a lint error.
  
    We log where the error was found, and also our confidence in the error,
    that is, how certain we are this is a legitimate style regression, and
    not a misidentification or a use that's sometimes justified.
  
    False positives can be suppressed by the use of
    "cpplint(category)"  comments on the offending line.  These are
    parsed into _error_suppressions.
  
    Args:
      filename: The name of the file containing the error.
      linenum: The number of the line containing the error.
      category: A string used to describe the "category" this bug
        falls under: "whitespace", say, or "runtime".  Categories
        may have a hierarchy separated by slashes: "whitespace/indent".
      confidence: A number from 1-5 representing a confidence score for
        the error, with 5 meaning that we are certain of the problem,
        and 1 meaning that it could be a legitimate construct.
      message: The error message.
    """
    if _ShouldPrintError(category, confidence, linenum):
      _cpplint_state.IncrementErrorCount(category)
      if _cpplint_state.output_format == 'vs7':
        _cpplint_state.PrintError('%s(%s): error cpplint: [%s] %s [%d]\n' % (
            filename, linenum, category, message, confidence))
      elif _cpplint_state.output_format == 'eclipse':
        sys.stderr.write('%s:%s: warning: %s  [%s] [%d]\n' % (
            filename, linenum, message, category, confidence))
      elif _cpplint_state.output_format == 'junit':
        _cpplint_state.AddJUnitFailure(filename, linenum, message, category,
            confidence)
      elif _cpplint_state.output_format in ['sed', 'gsed']:
        if message in _SED_FIXUPS:
          sys.stdout.write(_cpplint_state.output_format + " -i '%s%s' %s # %s  [%s] [%d]\n" % (
              linenum, _SED_FIXUPS[message], filename, message, category, confidence))
        else:
          sys.stderr.write('# %s:%s:  "%s"  [%s] [%d]\n' % (
              filename, linenum, message, category, confidence))
      else:
        final_message = '%s:%s:  %s  [%s] [%d]\n' % (
            filename, linenum, message, category, confidence)
        sys.stderr.write(final_message)
function_tokens: def Error ( filename , linenum , category , confidence , message ) : if _ShouldPrintError ( category , confidence , linenum ) : _cpplint_state . IncrementErrorCount ( category ) if _cpplint_state . output_format == 'vs7' : _cpplint_state . PrintError ( '%s(%s): error cpplint: [%s] %s [%d]\n' % ( filename , linenum , category , message , confidence ) ) elif _cpplint_state . output_format == 'eclipse' : sys . stderr . write ( '%s:%s: warning: %s  [%s] [%d]\n' % ( filename , linenum , message , category , confidence ) ) elif _cpplint_state . output_format == 'junit' : _cpplint_state . AddJUnitFailure ( filename , linenum , message , category , confidence ) elif _cpplint_state . output_format in [ 'sed' , 'gsed' ] : if message in _SED_FIXUPS : sys . stdout . write ( _cpplint_state . output_format + " -i '%s%s' %s # %s  [%s] [%d]\n" % ( linenum , _SED_FIXUPS [ message ] , filename , message , category , confidence ) ) else : sys . stderr . write ( '# %s:%s:  "%s"  [%s] [%d]\n' % ( filename , linenum , message , category , confidence ) ) else : final_message = '%s:%s:  %s  [%s] [%d]\n' % ( filename , linenum , message , category , confidence ) sys . stderr . write ( final_message )