gofmt-git-hook
gofmt-git-hook copied to clipboard
for the logic surrounding "found syntax errors", all files up to that point are reported as syntax error files
I think this is easy to fix.
Just change this: syntaxerrors="${list}${output}\n"
To this: syntaxerrors="${file}${output}\n"
On the following line:
https://github.com/edsrzf/gofmt-git-hook/blob/0cea7572f78ad4b32b9970b87bcbe3eac39d8f96/fmt-check#L13