Checkstyle XML content not able to be read by ReviewBot Worker

23 views
Skip to first unread message

Justin L

unread,
Aug 22, 2019, 3:50:52 PM8/22/19
to Review Board Community
I am currently trying to set up Checkstyle in my Review Board/ReviewBot Worker instance, but I am running into some issues with the Checkstyle XML configuration file.

As of now, Reviewboard is connected to a RabbitMQ broker, and the broker is able to recognize that i have one ReviewBot worker node running. Further, my PMD configuration is able to work.

However, every time I run Checkstyle, the UI says 'Checkstyle passed' but my ReviewBot worker logs are outputting that the worker 'Cannot parse xml file: no element found: line 1, column 0'. 

My XML config window (just the first few lines of the XML) looks like this

Capture.PNG
















I pulled it (just for testing purposes) from this Github: https://github.com/skeeto/sample-java-project/blob/master/checkstyle.xml

Any advice?

Justin L

unread,
Aug 22, 2019, 7:39:25 PM8/22/19
to Review Board Community
Regarding this issue, I forgot to mention that I changed one line (line 74) in my checkstyle.py file from 

cfgXml = make_tempfile(settings['config']) ====> cfgXml = make_tempfile(settings['config'].encode())

because the error logs were complaining that it was expecting the XML in bytes, not str.
Reply all
Reply to author
Forward
0 new messages