{"action":"created","issue":{"url":"https://api.github.com/repos/realm/SwiftLint/issues/790","repository_url":"https://api.github.com/repos/realm/SwiftLint","labels_url":"https://api.github.com/repos/realm/SwiftLint/issues/790/labels{/name}","comments_url":"https://api.github.com/repos/realm/SwiftLint/issues/790/comments","events_url":"https://api.github.com/repos/realm/SwiftLint/issues/790/events","html_url":"https://github.com/realm/SwiftLint/issues/790","id":174250339,"number":790,"title":"Custom rules regex","user":{"login":"vicemice","id":313835,"avatar_url":"https://avatars.githubusercontent.com/u/313835?v=3","gravatar_id":"","url":"https://api.github.com/users/vicemice","html_url":"https://github.com/vicemice","followers_url":"https://api.github.com/users/vicemice/followers","following_url":"https://api.github.com/users/vicemice/following{/other_user}","gists_url":"https://api.github.com/users/vicemice/gists{/gist_id}","starred_url":"https://api.github.com/users/vicemice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicemice/subscriptions","organizations_url":"https://api.github.com/users/vicemice/orgs","repos_url":"https://api.github.com/users/vicemice/repos","events_url":"https://api.github.com/users/vicemice/events{/privacy}","received_events_url":"https://api.github.com/users/vicemice/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-31T11:34:22Z","updated_at":"2016-08-31T12:00:59Z","closed_at":null,"body":"Hi,\r\n\r\nI'm using swiftlint v0.12.0 and have an issue with the following custom rule:\r\n\r\n```\r\ncustom_rules:\r\n  avoid_author_mentions:\r\n    include: \"*.swift\"\r\n    name: \"Author Mention\"\r\n    regex: \"(Created\\s+by.*on\\s+\\S+)\"\r\n    match_kinds:\r\n      - comment\r\n    message: \"Avoid mentioning file author\"\r\n```\r\n\r\nIt only works for a small number of files in the directory. And if there is more than 1 match in a single file, it only reports the first one.\r\n\r\nThanks.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/realm/SwiftLint/issues/comments/243742706","html_url":"https://github.com/realm/SwiftLint/issues/790#issuecomment-243742706","issue_url":"https://api.github.com/repos/realm/SwiftLint/issues/790","id":243742706,"user":{"login":"norio-nomura","id":33430,"avatar_url":"https://avatars.githubusercontent.com/u/33430?v=3","gravatar_id":"","url":"https://api.github.com/users/norio-nomura","html_url":"https://github.com/norio-nomura","followers_url":"https://api.github.com/users/norio-nomura/followers","following_url":"https://api.github.com/users/norio-nomura/following{/other_user}","gists_url":"https://api.github.com/users/norio-nomura/gists{/gist_id}","starred_url":"https://api.github.com/users/norio-nomura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/norio-nomura/subscriptions","organizations_url":"https://api.github.com/users/norio-nomura/orgs","repos_url":"https://api.github.com/users/norio-nomura/repos","events_url":"https://api.github.com/users/norio-nomura/events{/privacy}","received_events_url":"https://api.github.com/users/norio-nomura/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T12:00:59Z","updated_at":"2016-08-31T12:00:59Z","body":"Quote from http://userguide.icu-project.org/strings/regexp:\r\n> *\tMatch 0 or more times. Match as many times as possible.\r\n\r\nYour regex matches from first occurrence of `Created\\s+by` to last occurrence of `on\\s+\\S+`\r\nUsing `.*?` instead of `.*` will resolve your issue.\r\n> *?\tMatch 0 or more times. Match as few times as possible."}}
{"actor":{"display_login":"norio-nomura"}}