Create a separate path for fetching lineLength

Merged Waqar Ahmed requested to merge work/line-length into master

When we want line length via doc->lineLength() we only want the length. This avoids fetching the whole shared pointer along with the line length.

Merge request reports