mirror of
https://github.com/github/codeql.git
synced 2026-02-11 20:51:06 +01:00
We have some .go files that gofmt can't parse because they don't start with "package". This was intentional, as they are fragments to be included in .qhelp files. They don't affect the return code as gofmt doesn't change their formatting, so this wasn't changing the result of the check. However, it was confusing that when the check failed because some other files weren't formatted correctly, the user would see the stderr complaining about those files, so we capture stderr. It would be an improvement to print which files are not formatted correctly, but that was beyond my abilities with bash and makefiles.