sk- / html-linter

HTML5 Linter based on Google Style Guide
Apache License 2.0
7 stars 6 forks source link

Add TeamCity inspection formatting #15

Open jelco opened 6 years ago

jelco commented 6 years ago

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.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.01%) to 99.482% when pulling f367f046d702b5238552d3e192f67277fe82690a on jelco:teamcity-formatter into e70585c5a244294d81aa8d5cfd044d2915f2b0f2 on sk-:master.

jelco commented 6 years ago

I'll have a go at expanding the test coverage later today.

jelco commented 6 years ago

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.