Skip to content

Commit c56ed94

Browse files
authored
Update loc.md
1 parent e9e3610 commit c56ed94

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

  • rust-code-analysis-book/src/developers

‎rust-code-analysis-book/src/developers/loc.md‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,3 @@ To implement the LoC related metrics described above you need to implement the `
5555

5656
This requires implementing the `compute` function.
5757
See [/src/metrics/loc.rs](https://github.com/mozilla/rust-code-analysis/blob/master/src/metrics/loc.rs) for where to implement, as well as examples from other languages.
58-
59-
As you implement tests, you may find yourself running into an off by 1 error for SLOC count.
60-
For most code we expect the `SpaceKind` to be `SpaceKind::Unit` but the default is `SpaceKind::Unknown`.
61-
To solve this you need to implement the `Getter` trait in [src/getter.rs](https://github.com/mozilla/rust-code-analysis/blob/master/src/getter.rs). Specifically, the `get_space_kind` function.

0 commit comments

Comments
 (0)