Open jelco opened 6 years ago
I'll have a go at expanding the test coverage later today.
Can one of the maintainers let me know whether they'll be able to look at this soon? Otherwise I'll just create a fork for our own TC environment to use instead of waiting on this PR to be merged and packaged.
This detects if the tool is being called from within TeamCity, and if so, formats the results as inspection messages for TC to pick up.
Note that I've also refactored the
--printfilename
option since this felt more consistent now that there are more formatting options.I've tested this version in our TC environment (Python 3.5 and 3.6), but haven't done any checks with Python 2.