Skip to content

Commit 94108cd

Browse files
authored
Fix CLI 'loc' command (#1711)
1 parent d716f0e commit 94108cd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Fixed
1111

1212
- Fix analyzer [RCS1172](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1172) ([PR](https://github.com/dotnet/roslynator/pull/1710))
13+
- [CLI] Fix `loc` command ([PR](https://github.com/dotnet/roslynator/pull/1711))
1314

1415
## [4.14.1] - 2025-10-05
1516

src/CSharp.Workspaces/CSharp/CodeMetrics/CSharpLinesWalker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public override void VisitTrivia(SyntaxTrivia trivia)
7070
int lineCount = Lines.GetLineCount(trivia.Span);
7171

7272
if (lineCount == 1
73-
|| line.IsEmptyOrWhiteSpace(TextSpan.FromBounds(Lines.GetLineFromPosition(span.End).End, span.End)))
73+
|| line.IsEmptyOrWhiteSpace(TextSpan.FromBounds(span.End, Lines.GetLineFromPosition(span.End).End)))
7474
{
7575
CommentLineCount += lineCount;
7676
}

0 commit comments

Comments
 (0)