{"action":"created","issue":{"url":"https://api.github.com/repos/bazelbuild/buildtools/issues/471","repository_url":"https://api.github.com/repos/bazelbuild/buildtools","labels_url":"https://api.github.com/repos/bazelbuild/buildtools/issues/471/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/buildtools/issues/471/comments","events_url":"https://api.github.com/repos/bazelbuild/buildtools/issues/471/events","html_url":"https://github.com/bazelbuild/buildtools/issues/471","id":387910909,"node_id":"MDU6SXNzdWUzODc5MTA5MDk=","number":471,"title":"Docstrings for rule declarations trigger no-effect lint warning","user":{"login":"alexeagle","id":47395,"node_id":"MDQ6VXNlcjQ3Mzk1","avatar_url":"https://avatars2.githubusercontent.com/u/47395?v=4","gravatar_id":"","url":"https://api.github.com/users/alexeagle","html_url":"https://github.com/alexeagle","followers_url":"https://api.github.com/users/alexeagle/followers","following_url":"https://api.github.com/users/alexeagle/following{/other_user}","gists_url":"https://api.github.com/users/alexeagle/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeagle/subscriptions","organizations_url":"https://api.github.com/users/alexeagle/orgs","repos_url":"https://api.github.com/users/alexeagle/repos","events_url":"https://api.github.com/users/alexeagle/events{/privacy}","received_events_url":"https://api.github.com/users/alexeagle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-05T19:32:08Z","updated_at":"2018-12-20T21:04:36Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"With buildifier 0.19.2\r\n```\r\n$ buildifier --lint=warn\r\nmy_public_api = rule(implementation=_thing)\r\n\"\"\"\r\nDocumentation for my API\r\n\"\"\"\r\n^D\r\n\r\nstdin:1: unused-variable: Variable \"my_public_api\" is unused. Please remove it.\r\nTo disable the warning, add '@unused' in a comment. (https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md#unused-variable)\r\nstdin:2: no-effect: Expression result is not used. (https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md#no-effect)\r\nmy_public_api = rule(implementation = _thing)\r\n```\r\n\r\nThe second warning is a false positive because the string literal expression is the idiomatic way to document the rule"},"comment":{"url":"https://api.github.com/repos/bazelbuild/buildtools/issues/comments/449134861","html_url":"https://github.com/bazelbuild/buildtools/issues/471#issuecomment-449134861","issue_url":"https://api.github.com/repos/bazelbuild/buildtools/issues/471","id":449134861,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTEzNDg2MQ==","user":{"login":"manekinekko","id":1699357,"node_id":"MDQ6VXNlcjE2OTkzNTc=","avatar_url":"https://avatars2.githubusercontent.com/u/1699357?v=4","gravatar_id":"","url":"https://api.github.com/users/manekinekko","html_url":"https://github.com/manekinekko","followers_url":"https://api.github.com/users/manekinekko/followers","following_url":"https://api.github.com/users/manekinekko/following{/other_user}","gists_url":"https://api.github.com/users/manekinekko/gists{/gist_id}","starred_url":"https://api.github.com/users/manekinekko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manekinekko/subscriptions","organizations_url":"https://api.github.com/users/manekinekko/orgs","repos_url":"https://api.github.com/users/manekinekko/repos","events_url":"https://api.github.com/users/manekinekko/events{/privacy}","received_events_url":"https://api.github.com/users/manekinekko/received_events","type":"User","site_admin":false},"created_at":"2018-12-20T21:04:36Z","updated_at":"2018-12-20T21:04:36Z","author_association":"NONE","body":"This is also the case in 0.20.0"}}
{"actor":{"display_login":"manekinekko"}}