Closed myitcv closed 7 years ago
We should probably emit relative paths, yes. I'll evaluate that idea later.
I don't think grouping the output is particularly useful, and it complicates consumption of the output, now requiring parsing out those comments.
go build
can have multi-line output, and a lot of visual noise when using the -x
flag, so the grouping is somewhat useful; our output is strictly one line per issue, and it's easy enough to group visually by scanning the prefixes.
We should probably emit relative paths, yes. I'll evaluate that idea later.
Great. I'm happy to submit a PR if that's helpful?
I don't think grouping the output is particularly useful, and it complicates consumption of the output, now requiring parsing out those comments.
This part is, I grant you, less well defined. So totally happy with your conclusion not to do anything.
Great. I'm happy to submit a PR if that's helpful?
Thanks, but I'll work on that myself.
👍 thanks @dominikh
My specific example is
unused
; output fromunused
always uses the absolute path of a file. To my eye this is unnecessarily noisy. Might a better pattern here bego (build|install)
which outputs errors relative to the current working directory.e.g. currently
vs the much cleaner:
Thoughts?
On a semi-related note (in so far as using the output from
go (build|install)
as a "pattern" is concerned), would it also make sense to group the lines of output by package import path using "comment headers" in case more than one package is implied/specified via the command line?