Run through file list, and try to find a linter
    that matches the given file type.

    If it finds a linter, it will run it, and store the
    resulting data in a dictionary (keyed to file_type).

    :param files:
    :return: {file_extension: lint_data}

def run_linters(files):
    """
    Run through file list, and try to find a linter
    that matches the given file type.

    If it finds a linter, it will run it, and store the
    resulting data in a dictionary (keyed to file_type).

    :param files:
    :return: {file_extension: lint_data}
    """
    data = {}
    for file_type, file_list in list(files.items()):
        linter = LintFactory.get_linter(file_type)
        if linter is not None:
            data[file_type] = linter.run(file_list)
    return data