You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When counting lines of code in a script or function, I'd argue that it's most valuable to only consider significant lines of code. It appears that Get-FunctionLinesOfCode is already excluding comments from it's total count, but I think that blank lines should be excluded as well.
Have a look here to see this in practice. If acceptable, I'll submit a PR.
Activity
Jaykul commentedon Mar 6, 2019
Couldn't you skip re-parsing the file, and just count the unique line numbers that actually have non-comment tokens on them?