jenkinsci/violations-plugin

Blank page when accessing to per-file jslint issues

Opened this issue · 2 comments

Hello,

I'm using the violations plugin v0.7.11 on jenkins v1.605 to display jshint violations (in jslint format).

This plugin is displaying graphs according to violations found by jshint, it works well. Except that when I click on a specific file with violations, all I obtain is a blank page.

The xml file is generated to a subfolder named reports, I tried to generate it directly in the workspace root: no luck.

My source files are directly in the workspace root, and the xml file contains correct path (from the workspace root).

Any idea?

I'm also having this problem with v.0.7.11
The violations/file/FILE.xml is created with <violation/> elements, but there is no <line number/> elements within the xml file.
It seems to be due to the fact that every <file name=XXX/> element is a relative file path, and not an absolute one.

As a workaround, I am using jshint and passing the full path to inspect (e.g. $WORKSPACE/public/javascripts) and I do get the individual file details. Hoping this can help.