{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/17986","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/17986/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/17986/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/17986/events","html_url":"https://github.com/dart-lang/sdk/issues/17986","id":84574565,"number":17986,"title":"Analyzer should optionally warn when public methods don't have type annotations","user":{"login":"DartBot","id":8958862,"avatar_url":"https://avatars.githubusercontent.com/u/8958862?v=3","gravatar_id":"","url":"https://api.github.com/users/DartBot","html_url":"https://github.com/DartBot","followers_url":"https://api.github.com/users/DartBot/followers","following_url":"https://api.github.com/users/DartBot/following{/other_user}","gists_url":"https://api.github.com/users/DartBot/gists{/gist_id}","starred_url":"https://api.github.com/users/DartBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DartBot/subscriptions","organizations_url":"https://api.github.com/users/DartBot/orgs","repos_url":"https://api.github.com/users/DartBot/repos","events_url":"https://api.github.com/users/DartBot/events{/privacy}","received_events_url":"https://api.github.com/users/DartBot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/sdk/labels/analyzer-hint","name":"analyzer-hint","color":"d4c5f9"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/area-analyzer","name":"area-analyzer","color":"c7def8"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/P2%20medium","name":"P2 medium","color":"fbca04"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Type:%20enhancement","name":"Type: enhancement","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2014-04-02T20:24:42Z","updated_at":"2016-04-20T23:09:15Z","closed_at":null,"body":"*This issue was originally filed by armiller...&#064;google.com*\n_____\nLeaving off type annotations from public methods can be nice for development of a library, but makes the library harder to use. It would be nice if the analyzer could optionally warn/error when public methods/functions don't have type annotations to help encourage library writers to properly annotate their APIs."},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/212646501","html_url":"https://github.com/dart-lang/sdk/issues/17986#issuecomment-212646501","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/17986","id":212646501,"user":{"login":"srawlins","id":103167,"avatar_url":"https://avatars.githubusercontent.com/u/103167?v=3","gravatar_id":"","url":"https://api.github.com/users/srawlins","html_url":"https://github.com/srawlins","followers_url":"https://api.github.com/users/srawlins/followers","following_url":"https://api.github.com/users/srawlins/following{/other_user}","gists_url":"https://api.github.com/users/srawlins/gists{/gist_id}","starred_url":"https://api.github.com/users/srawlins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srawlins/subscriptions","organizations_url":"https://api.github.com/users/srawlins/orgs","repos_url":"https://api.github.com/users/srawlins/repos","events_url":"https://api.github.com/users/srawlins/events{/privacy}","received_events_url":"https://api.github.com/users/srawlins/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T23:09:15Z","updated_at":"2016-04-20T23:09:15Z","body":"This is covered by the linter: [type_annotate_public_apis](http://dart-lang.github.io/linter/lints/type_annotate_public_apis.html)."}}