Commit bcb3ca8
authored
Java LoC metric (#694)
* WIP of Java LoC metric
* Enables 2 passing simple tests
* Adds more individual loc tests
* Initial impl of JavaCode Getter trait
get_space_kind was needed to fix an off by one issue with ploc
* Test cleanup
* Fix test
* Fixes handling of for loops
* Adds while
* Remove println
* Ran fmt
* Reduce to handle only SLOC off by 1
* Adds ternary lloc to test
* Adds expression grammar lloc
* Removes expressions from count
* Do not count expressions in for loop
* Removes debugging lines
* Fixes for the recent Stats changes
* Defines space kinds
* Adds interface space1 parent 08c61f4 commit bcb3ca8
2 files changed
+418
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
512 | | - | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
0 commit comments