trautonen / coveralls-maven-plugin

Maven plugin for submitting Java code coverage reports to Coveralls web service.
MIT License
312 stars 123 forks source link

JavaNCSS got an error while parsing the java file #105

Closed wu-sheng closed 7 years ago

wu-sheng commented 7 years ago

I got several warnings, when I run coverage in travis-ci.

[WARN] JavaNCSS got an error while parsing the java file /home/travis/build/wu-sheng/sky-walking/skywalking-webui/src/main/java/com/a/eye/skywalking/web/client/routing/RoutingServerWatcher.java
ParseException in STDIN
Last useful checkpoint: "com.a.eye.skywalking.web.client.routing.RoutingServerWatcher.notify(List<RegistryNode>)"
Encountered " ">" "> "" at line 29, column 43.
Was expecting one of:
    "assert" ...
    "boolean" ...
    "byte" ...
    "char" ...
    "double" ...
    "enum" ...
    "false" ...
    "float" ...
    "int" ...
    "long" ...
    "new" ...
    "null" ...
    "short" ...
    "super" ...
    "this" ...
    "true" ...
    "void" ...
    <INTEGER_LITERAL> ...
    <FLOATING_POINT_LITERAL> ...
    <CHARACTER_LITERAL> ...
    <STRING_LITERAL> ...
    <IDENTIFIER> ...
    "(" ...
    "!" ...
    "~" ...
    "++" ...
    "--" ...
    "+" ...
    "-" ...

Why have this warning? Does it affect the coverage report?

You can find my log in here: https://api.travis-ci.org/jobs/194402786/log.txt?deansi=true Or https://travis-ci.org/wu-sheng/sky-walking/builds/194402785

andrioli commented 7 years ago

@wu-sheng this is a problem with Cobertura, not with coveralls-maven-plugin. I recommend you to switch to JaCoCo for collecting coverage!