##Purpose Purpose of the library is to publish output from checkpatch to a format jenkins understands so that we can take advantage of their tools to publish checkpatch output and continiuos integration becomes easy.
##Approach We are going to take following approach
- Jenkins have out-of-the-box support for publishing "Junit testcase results". This expects specially formatted xml file as testcase result output. The basic format I found out at this stackoverflow answer
- Without reinventing the wheel we are going to convert checkpatch output to a xml file equivalent to Junit testcase.
- I am not conversant with all the features of Juint reports. So the xml file generated could be very minimal. Patches/Pull requests for extension are welcome.
# --show-types is mandatory.
# Use --patch for patch
checkpatch.pl --no-signoff --no-tree --show-types -f file | python checkpatch_to_xml.py > /tmp/junit_result.xml