Subject: | standard error output should include filename |
Date: | Thu, 15 Aug 2019 14:49:41 +0300 |
To: | bug-Perl-Tidy [...] rt.cpan.org |
From: | Ville Skyttä <ville.skytta [...] iki.fi> |
When perltidy is run against a bunch of files, for example in a
pre-commit setup and/or in CI, it is often useful to use
--standard-error-output. However, perltidy's warning messages do not
contain any information which file they are related to, they might
just be like:
219: operator in print statement not recommended
It can be pretty difficult to find out which file this warning
originated from. Prepending the filename to the output like:
filename:linenumber: message
...would be much more useful, especially when outputting to
stdout/stderr instead of an .ERR file. (I wouldn't personally mind
them there either.) And from such a format editors might be able to
provide links to jump to source code etc.