{"action":"opened","issue":{"url":"https://api.github.com/repos/realm/SwiftLint/issues/817","repository_url":"https://api.github.com/repos/realm/SwiftLint","labels_url":"https://api.github.com/repos/realm/SwiftLint/issues/817/labels{/name}","comments_url":"https://api.github.com/repos/realm/SwiftLint/issues/817/comments","events_url":"https://api.github.com/repos/realm/SwiftLint/issues/817/events","html_url":"https://github.com/realm/SwiftLint/issues/817","id":177333339,"number":817,"title":"Infinite loop in vertical_whitespace","user":{"login":"garrett-davidson","id":5167200,"avatar_url":"https://avatars.githubusercontent.com/u/5167200?v=3","gravatar_id":"","url":"https://api.github.com/users/garrett-davidson","html_url":"https://github.com/garrett-davidson","followers_url":"https://api.github.com/users/garrett-davidson/followers","following_url":"https://api.github.com/users/garrett-davidson/following{/other_user}","gists_url":"https://api.github.com/users/garrett-davidson/gists{/gist_id}","starred_url":"https://api.github.com/users/garrett-davidson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garrett-davidson/subscriptions","organizations_url":"https://api.github.com/users/garrett-davidson/orgs","repos_url":"https://api.github.com/users/garrett-davidson/repos","events_url":"https://api.github.com/users/garrett-davidson/events{/privacy}","received_events_url":"https://api.github.com/users/garrett-davidson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-16T02:29:55Z","updated_at":"2016-09-16T02:29:55Z","closed_at":null,"body":"When opting in to vertical_whitespace checking, the following code cause SwiftLint to seemingly get stuck in an infinite loop and never exit.\r\n\r\n    // Some random comment with strange formatting /**                                                                                                 \r\n    public func useMysql() {\r\n        guard dataMysql.query(statement: \"\\(createUsersTableQuery)\") else {\r\n            print(\"Error creating users table\")\r\n            return\r\n        }\r\n    \r\n        guard dataMysql.query(statement: \"\\(createMessagesTableQuery)\") else {\r\n            print(\"Error creating messages table\")\r\n            return\r\n        }\r\n    \r\n        guard dataMysql.query(statement: \"\\(createFacebookTableQuery)\") else {\r\n            print(\"Error creating facebook table\")\r\n            return\r\n        }\r\n    \r\n        guard dataMysql.query(statement: \"\\(createGoogleTableQuery)\") else {\r\n            print(\"Error creating google table\")\r\n            return\r\n        }\r\n    }\r\n\r\nI was able to narrow this chunk of code down from a much larger file. It seems like removing any of the remaining lines causes the problem to no longer reproduce. \r\n"}}
{"actor":{"display_login":"garrett-davidson"}}