[Issue 4723] New - Parsing PHPCheckstyle results

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Issue 4723] New - Parsing PHPCheckstyle results

tchule
https://hudson.dev.java.net/issues/show_bug.cgi?id=4723
                 Issue #|4723
                 Summary|Parsing PHPCheckstyle results
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|ENHANCEMENT
                Priority|P3
            Subcomponent|violations
             Assigned to|peterkittreilly
             Reported by|tchule






------- Additional comments from [hidden email] Tue Oct 27 17:36:18 +0000 2009 -------
Hello,

I'm trying to make the violations plugin work with some PHP code analyzed by the
PHPCheckstyle project
(http://developer.spikesource.com/wiki/index.php/Projects:phpcheckstyle).

This is apparently an old project but it's simple enought and seems to work.

I've modified the output xml format to try to match the java checkstyle format
but i'm still having some problems.

The output looks like this :
<?xml version="1.0"?>
<checkstyle>
<file name="./application/config/autoload.php">
<error line="1" severity="error" message="Control statement should always be
placed within {} blocks"/>
<error line="2" severity="error" message="Control statement should always be
placed within {} blocks"/>
</file>
</checkstyle>

I have a nice graph and the summary is working, but when clicking on the files I
have a "No violations found" message.
In the Tomcat logs I also have this error :
WARNING: Caught exception evaluating: prev.typeCount(t.name). Reason:
java.lang.NullPointerException
java.lang.NullPointerException
        at
hudson.plugins.violations.ViolationsReport.typeCount(ViolationsReport.java:457)
        at sun.reflect.GeneratedMethodAccessor669.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(Ub
erspectImpl.java:258)

If you have an idea ...

Thanks,

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4723] Parsing PHPCheckstyle results

tchule
https://hudson.dev.java.net/issues/show_bug.cgi?id=4723






------- Additional comments from [hidden email] Tue Oct 27 17:37:41 +0000 2009 -------
Created an attachment (id=973)
Result.xml


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4723] Parsing PHPCheckstyle results

tchule
In reply to this post by tchule
https://hudson.dev.java.net/issues/show_bug.cgi?id=4723






------- Additional comments from [hidden email] Tue Nov  3 14:15:29 +0000 2009 -------
It works, you can close this issue.

The problem was that the path generated was something like "./myapplication/..."
instead of "myapplication/...".

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]