parameters: (input_api)
return_statement: return lambda x: input_api.FilterSourceFile(x, white_list=wl, black_list=bl)
docstring: Returns filter that selects source code files only.
docstring_summary: Returns filter that selects source code files only.
docstring_tokens: Returns filter that selects source code files only .
function: def source_file_filter(input_api):
    """Returns filter that selects source code files only."""
    bl = list(input_api.DEFAULT_BLACK_LIST) + [
      r'.+\.pb\.go$',
      r'.+_string\.go$',
    ]
    wl = list(input_api.DEFAULT_WHITE_LIST) + [
      r'.+\.go$',
    ]
    return lambda x: input_api.FilterSourceFile(x, white_list=wl, black_list=bl)
function_tokens: def source_file_filter ( input_api ) : bl = list ( input_api . DEFAULT_BLACK_LIST ) + [ r'.+\.pb\.go$' , r'.+_string\.go$' , ] wl = list ( input_api . DEFAULT_WHITE_LIST ) + [ r'.+\.go$' , ] return lambda x : input_api . FilterSourceFile ( x , white_list = wl , black_list = bl )