I have yet a lot of work to complete on the web UI, but I have a good idea about the text-based reports. So, here’s what Zookeeper spits out after receiving an error report from a running Tomcat.
* org/zookeeper/domain/DisconnectedExceptionLoader.java
08
09 public class DisconnectedExceptionLoader {
10 private static final Pattern STACK_TRACE_ELEMENT_PATTERN =
10 Pattern.compile("\tat (.*)(\\.(\\w+)\\((\\w+)\\.java:(\\d+))");
11
12 public DisconnectedException load(Reader in) throws IOException {
13 int x = in.hashCode();
13 Annotation{Error, ..., message='null'}
13 Annotation{Warning, ..., message='DLS: Dead store to x in
13 org.zookeeper.domain.DisconnectedExceptionLoader.load(Reader)'}
14
15 DisconnectedException root = null;
16 DisconnectedException ex = null;
It is still early days, Zookeeper does not yet automatically download the project’s dependencies and source code (coming later in implementations of LocalProjectBuilder), but it performs rudimentary exception and static code analysis and it also executes all rules from the very sparse knowledge base.
Keep watching this space for more updates!