codecharta
codecharta copied to clipboard
Sourcecodeparser can't parser Junit5 code
Bug
Expected Behavior
GIVEN
git clone [email protected]: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
- is released in online-demo: yes
- CodeCharta Version: 1.125.0
- OS: MacOs
- Browser: FireFox