Skip to content

Commit

Permalink
realm#2065 - Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Yakushin committed Feb 28, 2018
1 parent bf1b8cc commit 6037d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/SwiftLintFramework/Extensions/File+SwiftLint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ extension File {
return (false, end - start)
}

let count = numberOfCommentAndWhitespaceOnlyLines(startLine: start, endLine: end)
let count = end - start - 1 - numberOfCommentAndWhitespaceOnlyLines(startLine: start, endLine: end)
return (count > limit, count)
}

Expand Down

0 comments on commit 6037d3f

Please sign in to comment.