checkpatch-junit

Provide JUnit output to Linux checkpatch.pl script


Keywords
checkpatch, ci, junit
License
GPL-3.0
Install
pip install checkpatch-junit==0.0.1

Documentation

checkpatch-junit

Python Version OS License CodeStyle

A Python program to generate JUnit XML test result from Linux script checkpatch.pl output.

Then, this result can be consumed by continuous integration tools (Jenkins, GitLab CI ...) to provide nice information display.

Installation

Clone and install from GitHub

git clone https://github.com/mastiggia/checkpatch-junit
python setup.py install

Usage

checkpatch-junit [-h] [-c checkpatch.pl] [--checkpatch-args arg1,arg2,...]
                 [-o outfile.xml] [--ignore-check] [--ignore-warning]
                 FILE [FILE ...]

Provide JUnit output to Linux checkpatch.pl script

positional arguments:
  FILE                  patch to analyze with checkpatch.pl

options:
  -h, --help            show this help message and exit
  -c checkpatch.pl      path to the checkpatch.pl script to use
  --checkpatch-args arg1,arg2,...
                        extra arguments to pass to checkpatch.pl, separated by
                        commas instead of spaces
  -o outfile.xml        output JUnit XML file
  --ignore-check        ignore checkpatch.pl check messages
  --ignore-warning      ignore checkpatch.pl warning messages

Basic example:

checkpatch-junit -c scripts/checkpatch.pl --checkpatch-args=--no-tree *.patch -o checkpatch.xml