MaibornWolff / codecharta

CodeCharta visualizes multiple code metrics using 3D tree maps.
https://maibornwolff.github.io/codecharta/
BSD 3-Clause "New" or "Revised" License
189 stars 29 forks source link

Sourcecodeparser can't parser Junit5 code #3624

Open Richargh opened 4 months ago

Richargh commented 4 months ago

Bug

Expected Behavior

GIVEN

git clone git@github.com:junit-team/junit5.git

WHEN

ccsh sourcecodeparser junit5 -o junit5.src.cc.json

THEN I get a valid junit5.src.cc.json

Actual Behavior

At 8% -> PointerException: Cannot invoke "org.sonar.plugins.java.api.tree.Tree.kind()" because "node" is null At 83% -> java.lang.IllegalArgumentException: 94 is not a valid line offset for pointer. File junit-jupiter-engine/src/test/java/org/junit/jupiter/api/AssertLinesMatchAssertionsTests.java has 21 character(s) at line 304

And CodeCharta Visualization says the file is "empty or invalid"

Specifications