{"action":"created","issue":{"url":"https://api.github.com/repos/realm/SwiftLint/issues/2125","repository_url":"https://api.github.com/repos/realm/SwiftLint","labels_url":"https://api.github.com/repos/realm/SwiftLint/issues/2125/labels{/name}","comments_url":"https://api.github.com/repos/realm/SwiftLint/issues/2125/comments","events_url":"https://api.github.com/repos/realm/SwiftLint/issues/2125/events","html_url":"https://github.com/realm/SwiftLint/issues/2125","id":310164868,"number":2125,"title":"`attributes` rule gives false error in protocol implementation after @testable","user":{"login":"ldiqual","id":941453,"avatar_url":"https://avatars3.githubusercontent.com/u/941453?v=4","gravatar_id":"","url":"https://api.github.com/users/ldiqual","html_url":"https://github.com/ldiqual","followers_url":"https://api.github.com/users/ldiqual/followers","following_url":"https://api.github.com/users/ldiqual/following{/other_user}","gists_url":"https://api.github.com/users/ldiqual/gists{/gist_id}","starred_url":"https://api.github.com/users/ldiqual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldiqual/subscriptions","organizations_url":"https://api.github.com/users/ldiqual/orgs","repos_url":"https://api.github.com/users/ldiqual/repos","events_url":"https://api.github.com/users/ldiqual/events{/privacy}","received_events_url":"https://api.github.com/users/ldiqual/received_events","type":"User","site_admin":false},"labels":[{"id":212343554,"url":"https://api.github.com/repos/realm/SwiftLint/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-30T20:46:42Z","updated_at":"2018-04-02T16:58:42Z","closed_at":null,"author_association":"NONE","body":"### New Issue Checklist\r\n\r\n- [x] Updated SwiftLint to the latest version\r\n- [x] I searched for [existing GitHub issues](https://github.com/realm/SwiftLint/issues)\r\n\r\n### Bug Report\r\n\r\n`attributes` rules gives a false error on Xcode 9.3: \r\n\r\n```\r\nFile.swift:15:15: warning: Attributes Violation: Attributes should be on their own lines in functions and types, but on the same line as variables and imports. (attributes)\r\n```\r\n\r\nCode:\r\n\r\n```\r\nimport SomeFramework\r\n\r\n@testable import SomeApp\r\n\r\nprivate final class SomeClass: SomeProtocol { // error here\r\n    ...\r\n}\r\n```\r\n\r\n\r\n### Environment\r\n\r\n* SwiftLint version: 0.25.0\r\n* Installation method used: cocoapods\r\n* Paste your configuration file:\r\n\r\n```yml\r\nattributes:\r\n  always_on_line_above:\r\n    - \"@objc\"\r\n    - \"@nonobjc\"\r\n    - \"@available\"\r\n    - \"@discardableResult\"\r\n  always_on_same_line:\r\n    - \"@IBOutlet\"\r\n    - \"@IBAction\"\r\n    - \"@NSManaged\"\r\n    - \"@testable\"\r\n```\r\n\r\n* Are you using [nested configurations](https://github.com/realm/SwiftLint#nested-configurations)? Yes, one at the root folder and one in `AppTests`.\r\n\r\n* Which Xcode version are you using (check `xcode-select -p`)? Xcode 9.3 9E145\r\n* Do you have a sample that shows the issue? Yes, see above\r\n"},"comment":{"url":"https://api.github.com/repos/realm/SwiftLint/issues/comments/377978118","html_url":"https://github.com/realm/SwiftLint/issues/2125#issuecomment-377978118","issue_url":"https://api.github.com/repos/realm/SwiftLint/issues/2125","id":377978118,"user":{"login":"keith","id":283886,"avatar_url":"https://avatars3.githubusercontent.com/u/283886?v=4","gravatar_id":"","url":"https://api.github.com/users/keith","html_url":"https://github.com/keith","followers_url":"https://api.github.com/users/keith/followers","following_url":"https://api.github.com/users/keith/following{/other_user}","gists_url":"https://api.github.com/users/keith/gists{/gist_id}","starred_url":"https://api.github.com/users/keith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keith/subscriptions","organizations_url":"https://api.github.com/users/keith/orgs","repos_url":"https://api.github.com/users/keith/repos","events_url":"https://api.github.com/users/keith/events{/privacy}","received_events_url":"https://api.github.com/users/keith/received_events","type":"User","site_admin":false},"created_at":"2018-04-02T16:58:42Z","updated_at":"2018-04-02T16:58:42Z","author_association":"COLLABORATOR","body":"Another repro case:\r\n\r\n```swift\r\n@testable import foo\r\n\r\nprivate let bar = \"\"\r\n```\r\n\r\nI can confirm this only happens for this case with Xcode 9.3/Swift 4.1."}}
{"actor":{"display_login":"keith"}}