{"action":"opened","number":1521,"pull_request":{"url":"https://api.github.com/repos/Azure/autorest/pulls/1521","id":90064191,"html_url":"https://github.com/Azure/autorest/pull/1521","diff_url":"https://github.com/Azure/autorest/pull/1521.diff","patch_url":"https://github.com/Azure/autorest/pull/1521.patch","issue_url":"https://api.github.com/repos/Azure/autorest/issues/1521","number":1521,"state":"open","locked":false,"title":"[Go] Workaround golint stuttering","user":{"login":"mcardosos","id":18688426,"avatar_url":"https://avatars.githubusercontent.com/u/18688426?v=3","gravatar_id":"","url":"https://api.github.com/users/mcardosos","html_url":"https://github.com/mcardosos","followers_url":"https://api.github.com/users/mcardosos/followers","following_url":"https://api.github.com/users/mcardosos/following{/other_user}","gists_url":"https://api.github.com/users/mcardosos/gists{/gist_id}","starred_url":"https://api.github.com/users/mcardosos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcardosos/subscriptions","organizations_url":"https://api.github.com/users/mcardosos/orgs","repos_url":"https://api.github.com/users/mcardosos/repos","events_url":"https://api.github.com/users/mcardosos/events{/privacy}","received_events_url":"https://api.github.com/users/mcardosos/received_events","type":"User","site_admin":false},"body":"When a model / enum / method name starts with the package name, golint will notice the stuttering. For example: `compute.ComputeVM`. Golint will suggest something like `compute.VM`. The problem is when the name of the model / enum /method is exaclty the same as the package. AutoRest currently generates `containerservice.ContainerServiceType`. With this change, it would generate `containerservice.TypeContainerService`","created_at":"2016-10-19T18:24:33Z","updated_at":"2016-10-19T18:24:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/autorest/pulls/1521/commits","review_comments_url":"https://api.github.com/repos/Azure/autorest/pulls/1521/comments","review_comment_url":"https://api.github.com/repos/Azure/autorest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/autorest/issues/1521/comments","statuses_url":"https://api.github.com/repos/Azure/autorest/statuses/f2d1424940a5dd5f72f204f8c5ef3a85598271aa","head":{"label":"mcardosos:stuttering-names","ref":"stuttering-names","sha":"f2d1424940a5dd5f72f204f8c5ef3a85598271aa","user":{"login":"mcardosos","id":18688426,"avatar_url":"https://avatars.githubusercontent.com/u/18688426?v=3","gravatar_id":"","url":"https://api.github.com/users/mcardosos","html_url":"https://github.com/mcardosos","followers_url":"https://api.github.com/users/mcardosos/followers","following_url":"https://api.github.com/users/mcardosos/following{/other_user}","gists_url":"https://api.github.com/users/mcardosos/gists{/gist_id}","starred_url":"https://api.github.com/users/mcardosos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcardosos/subscriptions","organizations_url":"https://api.github.com/users/mcardosos/orgs","repos_url":"https://api.github.com/users/mcardosos/repos","events_url":"https://api.github.com/users/mcardosos/events{/privacy}","received_events_url":"https://api.github.com/users/mcardosos/received_events","type":"User","site_admin":false},"repo":{"id":63907179,"name":"autorest","full_name":"mcardosos/autorest","owner":{"login":"mcardosos","id":18688426,"avatar_url":"https://avatars.githubusercontent.com/u/18688426?v=3","gravatar_id":"","url":"https://api.github.com/users/mcardosos","html_url":"https://github.com/mcardosos","followers_url":"https://api.github.com/users/mcardosos/followers","following_url":"https://api.github.com/users/mcardosos/following{/other_user}","gists_url":"https://api.github.com/users/mcardosos/gists{/gist_id}","starred_url":"https://api.github.com/users/mcardosos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcardosos/subscriptions","organizations_url":"https://api.github.com/users/mcardosos/orgs","repos_url":"https://api.github.com/users/mcardosos/repos","events_url":"https://api.github.com/users/mcardosos/events{/privacy}","received_events_url":"https://api.github.com/users/mcardosos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mcardosos/autorest","description":null,"fork":true,"url":"https://api.github.com/repos/mcardosos/autorest","forks_url":"https://api.github.com/repos/mcardosos/autorest/forks","keys_url":"https://api.github.com/repos/mcardosos/autorest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mcardosos/autorest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mcardosos/autorest/teams","hooks_url":"https://api.github.com/repos/mcardosos/autorest/hooks","issue_events_url":"https://api.github.com/repos/mcardosos/autorest/issues/events{/number}","events_url":"https://api.github.com/repos/mcardosos/autorest/events","assignees_url":"https://api.github.com/repos/mcardosos/autorest/assignees{/user}","branches_url":"https://api.github.com/repos/mcardosos/autorest/branches{/branch}","tags_url":"https://api.github.com/repos/mcardosos/autorest/tags","blobs_url":"https://api.github.com/repos/mcardosos/autorest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mcardosos/autorest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mcardosos/autorest/git/refs{/sha}","trees_url":"https://api.github.com/repos/mcardosos/autorest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mcardosos/autorest/statuses/{sha}","languages_url":"https://api.github.com/repos/mcardosos/autorest/languages","stargazers_url":"https://api.github.com/repos/mcardosos/autorest/stargazers","contributors_url":"https://api.github.com/repos/mcardosos/autorest/contributors","subscribers_url":"https://api.github.com/repos/mcardosos/autorest/subscribers","subscription_url":"https://api.github.com/repos/mcardosos/autorest/subscription","commits_url":"https://api.github.com/repos/mcardosos/autorest/commits{/sha}","git_commits_url":"https://api.github.com/repos/mcardosos/autorest/git/commits{/sha}","comments_url":"https://api.github.com/repos/mcardosos/autorest/comments{/number}","issue_comment_url":"https://api.github.com/repos/mcardosos/autorest/issues/comments{/number}","contents_url":"https://api.github.com/repos/mcardosos/autorest/contents/{+path}","compare_url":"https://api.github.com/repos/mcardosos/autorest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mcardosos/autorest/merges","archive_url":"https://api.github.com/repos/mcardosos/autorest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mcardosos/autorest/downloads","issues_url":"https://api.github.com/repos/mcardosos/autorest/issues{/number}","pulls_url":"https://api.github.com/repos/mcardosos/autorest/pulls{/number}","milestones_url":"https://api.github.com/repos/mcardosos/autorest/milestones{/number}","notifications_url":"https://api.github.com/repos/mcardosos/autorest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mcardosos/autorest/labels{/name}","releases_url":"https://api.github.com/repos/mcardosos/autorest/releases{/id}","deployments_url":"https://api.github.com/repos/mcardosos/autorest/deployments","created_at":"2016-07-21T22:46:46Z","updated_at":"2016-07-21T22:46:54Z","pushed_at":"2016-10-19T17:58:17Z","git_url":"git://github.com/mcardosos/autorest.git","ssh_url":"git@github.com:mcardosos/autorest.git","clone_url":"https://github.com/mcardosos/autorest.git","svn_url":"https://github.com/mcardosos/autorest","homepage":null,"size":53873,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Azure:master","ref":"master","sha":"b05b6c719ddeb6878a166f28061d49f1c9d8f898","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":31089461,"name":"autorest","full_name":"Azure/autorest","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/autorest","description":"Swagger (OpenAPI) Specification code generator featuring C# and Razor templates. Supports C#, Java, Node.js, TypeScript, Python and Ruby.","fork":false,"url":"https://api.github.com/repos/Azure/autorest","forks_url":"https://api.github.com/repos/Azure/autorest/forks","keys_url":"https://api.github.com/repos/Azure/autorest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/autorest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/autorest/teams","hooks_url":"https://api.github.com/repos/Azure/autorest/hooks","issue_events_url":"https://api.github.com/repos/Azure/autorest/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/autorest/events","assignees_url":"https://api.github.com/repos/Azure/autorest/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/autorest/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/autorest/tags","blobs_url":"https://api.github.com/repos/Azure/autorest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/autorest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/autorest/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/autorest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/autorest/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/autorest/languages","stargazers_url":"https://api.github.com/repos/Azure/autorest/stargazers","contributors_url":"https://api.github.com/repos/Azure/autorest/contributors","subscribers_url":"https://api.github.com/repos/Azure/autorest/subscribers","subscription_url":"https://api.github.com/repos/Azure/autorest/subscription","commits_url":"https://api.github.com/repos/Azure/autorest/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/autorest/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/autorest/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/autorest/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/autorest/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/autorest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/autorest/merges","archive_url":"https://api.github.com/repos/Azure/autorest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/autorest/downloads","issues_url":"https://api.github.com/repos/Azure/autorest/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/autorest/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/autorest/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/autorest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/autorest/labels{/name}","releases_url":"https://api.github.com/repos/Azure/autorest/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/autorest/deployments","created_at":"2015-02-20T23:02:54Z","updated_at":"2016-10-19T11:36:49Z","pushed_at":"2016-10-19T18:24:34Z","git_url":"git://github.com/Azure/autorest.git","ssh_url":"git@github.com:Azure/autorest.git","clone_url":"https://github.com/Azure/autorest.git","svn_url":"https://github.com/Azure/autorest","homepage":"","size":60143,"stargazers_count":525,"watchers_count":525,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":181,"mirror_url":null,"open_issues_count":152,"forks":181,"open_issues":152,"watchers":525,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/autorest/pulls/1521"},"html":{"href":"https://github.com/Azure/autorest/pull/1521"},"issue":{"href":"https://api.github.com/repos/Azure/autorest/issues/1521"},"comments":{"href":"https://api.github.com/repos/Azure/autorest/issues/1521/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/autorest/pulls/1521/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/autorest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/autorest/pulls/1521/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/autorest/statuses/f2d1424940a5dd5f72f204f8c5ef3a85598271aa"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":20,"deletions":9,"changed_files":1}}
{"actor":{"display_login":"mcardosos"}}