{"action":"created","issue":{"url":"https://api.github.com/repos/realm/SwiftLint/issues/318","labels_url":"https://api.github.com/repos/realm/SwiftLint/issues/318/labels{/name}","comments_url":"https://api.github.com/repos/realm/SwiftLint/issues/318/comments","events_url":"https://api.github.com/repos/realm/SwiftLint/issues/318/events","html_url":"https://github.com/realm/SwiftLint/pull/318","id":124904258,"number":318,"title":"Fixed trailingNewlineCount() returning wrong count","user":{"login":"JohnEstropia","id":3029684,"avatar_url":"https://avatars.githubusercontent.com/u/3029684?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnEstropia","html_url":"https://github.com/JohnEstropia","followers_url":"https://api.github.com/users/JohnEstropia/followers","following_url":"https://api.github.com/users/JohnEstropia/following{/other_user}","gists_url":"https://api.github.com/users/JohnEstropia/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnEstropia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnEstropia/subscriptions","organizations_url":"https://api.github.com/users/JohnEstropia/orgs","repos_url":"https://api.github.com/users/JohnEstropia/repos","events_url":"https://api.github.com/users/JohnEstropia/events{/privacy}","received_events_url":"https://api.github.com/users/JohnEstropia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-05T06:15:52Z","updated_at":"2016-01-05T06:40:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/realm/SwiftLint/pulls/318","html_url":"https://github.com/realm/SwiftLint/pull/318","diff_url":"https://github.com/realm/SwiftLint/pull/318.diff","patch_url":"https://github.com/realm/SwiftLint/pull/318.patch"},"body":"`let start = endIndex.advancedBy(-2, limit: startIndex)` \r\nbasically limited this method to count only up to 2 lines..."},"comment":{"url":"https://api.github.com/repos/realm/SwiftLint/issues/comments/168917575","html_url":"https://github.com/realm/SwiftLint/pull/318#issuecomment-168917575","issue_url":"https://api.github.com/repos/realm/SwiftLint/issues/318","id":168917575,"user":{"login":"JohnEstropia","id":3029684,"avatar_url":"https://avatars.githubusercontent.com/u/3029684?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnEstropia","html_url":"https://github.com/JohnEstropia","followers_url":"https://api.github.com/users/JohnEstropia/followers","following_url":"https://api.github.com/users/JohnEstropia/following{/other_user}","gists_url":"https://api.github.com/users/JohnEstropia/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnEstropia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnEstropia/subscriptions","organizations_url":"https://api.github.com/users/JohnEstropia/orgs","repos_url":"https://api.github.com/users/JohnEstropia/repos","events_url":"https://api.github.com/users/JohnEstropia/events{/privacy}","received_events_url":"https://api.github.com/users/JohnEstropia/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T06:40:03Z","updated_at":"2016-01-05T06:40:03Z","body":"@keith If performance was the reason for this, would it be sufficient to just scan the string for newlines starting at the end without splitting the file?"}}