def process_file(vcs, commit, force, gitlint_config, file_data):
filename, extra_data = file_data<EOL>if force:<EOL><INDENT>modified_lines = None<EOL><DEDENT>else:<EOL><INDENT>modified_lines = vcs.modified_lines(<EOL>filename, extra_data, commit=commit)<EOL><DEDENT>result = linters.lint(filename, modified_lines, gitlint_config)<EOL>result = result[filename]<EOL>return filename, result<EOL>
Lint the file

    Returns:
      The results from the linter.