gofmt-git-hook icon indicating copy to clipboard operation
gofmt-git-hook copied to clipboard

A Git pre-commit hook that checks formatting of Go code

Results 3 gofmt-git-hook issues
Sort by recently updated
recently updated
newest added

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

The quotes around the regex was not quoting the regex but instead terminating the first quote and starting a new quoted string. This lead to the dollar sign being dropped....

It would be nice if fmt-check printed the gofmt commands to run, so I can just copy&paste them into the terminal. Something like this: ``` $ git commit -a Please...