I have a tool that outputs error messages in this format:
<FILE> has incorrect formatting <UNIFIED DIFF> <FILE> has incorrect formatting <UNIFIED DIFF> <... repeat ...> <number of files> file(s) formatted incorrectly
How do I capture the uppercase elements with the script-and-regex linter in order to provide autofix support? I had a look at the docstring in
arcanist/src/lint/linter/ArcanistScriptAndRegexLinter.php, but could not figure it out.
With my current configuration it appears that this linter treats every line separately, which would make it impossible to capture a diff. In this case: Would it be possible to extend it with a
patch capture, that captures the unified diff until the next appearance of
file or EOF, and apply that to the last mentioned
As an alternative, this tool also comes with an own command to automatically fix the issues. Could an
script-and-regex.autofix-script option (or similar) be added, which can be run to autofix the reported issues, if the users requests it?