parameters: (clean_lines, line_number, enum_state, error)
docstring: Looks for incorrectly named enum values.
  
      Args:
        clean_lines: A CleansedLines instance containing the file.
        line_number: The number of the line to check.
        enum_state: A _EnumState instance which maintains enum declaration state.
        error: The function to call with any errors found.
docstring_summary: Looks for incorrectly named enum values.
docstring_tokens: Looks for incorrectly named enum values .
function: def check_enum_casing(clean_lines, line_number, enum_state, error):
      """Looks for incorrectly named enum values.
  
      Args:
        clean_lines: A CleansedLines instance containing the file.
        line_number: The number of the line to check.
        enum_state: A _EnumState instance which maintains enum declaration state.
        error: The function to call with any errors found.
      """
  
      enum_state.is_webidl_enum |= bool(match(r'\s*// Web(?:Kit)?IDL enum\s*$', clean_lines.raw_lines[line_number]))
  
      line = clean_lines.elided[line_number]  # Get rid of comments and strings.
      if not enum_state.process_clean_line(line):
          error(line_number, 'readability/enum_casing', 4,
                'enum members should use InterCaps with an initial capital letter or initial \'k\' for C-style enums.')
function_tokens: def check_enum_casing ( clean_lines , line_number , enum_state , error ) : enum_state . is_webidl_enum |= bool ( match ( r'\s*// Web(?:Kit)?IDL enum\s*$' , clean_lines . raw_lines [ line_number ] ) ) line = clean_lines . elided [ line_number ] # Get rid of comments and strings. if not enum_state . process_clean_line ( line ) : error ( line_number , 'readability/enum_casing' , 4 , 'enum members should use InterCaps with an initial capital letter or initial \'k\' for C-style enums.' )