{"action":"created","comment":{"url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/pulls/comments/27848555","id":27848555,"diff_hunk":"@@ -50,16 +50,17 @@ public override FixAllProvider GetFixAllProvider()\n                     continue;\n                 }\n \n-                if (token.ValueText.Length == 1)\n-                {\n-                    // The variable name is '_'. In this case we cannot generate a valid variable name and thus will not\n-                    // offer a code fix. \n-                    continue;\n-                }\n-\n                 if (!string.IsNullOrEmpty(token.ValueText))\n                 {\n-                    var newName = token.ValueText.Substring(1);\n+                    var newName = token.ValueText.TrimStart(new[] { '_' });\n+\n+                    if (string.IsNullOrEmpty(newName))\n+                    {\n+                        // The variable consistend of only underscores. In this case we cannot ","path":"StyleCop.Analyzers/StyleCop.Analyzers/NamingRules/SA1309CodeFixProvider.cs","position":18,"original_position":18,"commit_id":"5faf14c08924b881587ddcb31b42c4eb48620372","original_commit_id":"5faf14c08924b881587ddcb31b42c4eb48620372","user":{"login":"sharwell","id":1408396,"avatar_url":"https://avatars.githubusercontent.com/u/1408396?v=3","gravatar_id":"","url":"https://api.github.com/users/sharwell","html_url":"https://github.com/sharwell","followers_url":"https://api.github.com/users/sharwell/followers","following_url":"https://api.github.com/users/sharwell/following{/other_user}","gists_url":"https://api.github.com/users/sharwell/gists{/gist_id}","starred_url":"https://api.github.com/users/sharwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharwell/subscriptions","organizations_url":"https://api.github.com/users/sharwell/orgs","repos_url":"https://api.github.com/users/sharwell/repos","events_url":"https://api.github.com/users/sharwell/events{/privacy}","received_events_url":"https://api.github.com/users/sharwell/received_events","type":"User","site_admin":false},"body":":bulb: consisted","created_at":"2015-04-07T02:56:37Z","updated_at":"2015-04-07T02:56:37Z","html_url":"https://github.com/DotNetAnalyzers/StyleCopAnalyzers/pull/647#discussion_r27848555","pull_request_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/pulls/647","_links":{"self":{"href":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/pulls/comments/27848555"},"html":{"href":"https://github.com/DotNetAnalyzers/StyleCopAnalyzers/pull/647#discussion_r27848555"},"pull_request":{"href":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/pulls/647"}}},"pull_request":{"url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/pulls/647","id":32729524,"html_url":"https://github.com/DotNetAnalyzers/StyleCopAnalyzers/pull/647","diff_url":"https://github.com/DotNetAnalyzers/StyleCopAnalyzers/pull/647.diff","patch_url":"https://github.com/DotNetAnalyzers/StyleCopAnalyzers/pull/647.patch","issue_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/647","number":647,"state":"open","locked":false,"title":"Fixes for issue #627","user":{"login":"johnkoerner","id":3915000,"avatar_url":"https://avatars.githubusercontent.com/u/3915000?v=3","gravatar_id":"","url":"https://api.github.com/users/johnkoerner","html_url":"https://github.com/johnkoerner","followers_url":"https://api.github.com/users/johnkoerner/followers","following_url":"https://api.github.com/users/johnkoerner/following{/other_user}","gists_url":"https://api.github.com/users/johnkoerner/gists{/gist_id}","starred_url":"https://api.github.com/users/johnkoerner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnkoerner/subscriptions","organizations_url":"https://api.github.com/users/johnkoerner/orgs","repos_url":"https://api.github.com/users/johnkoerner/repos","events_url":"https://api.github.com/users/johnkoerner/events{/privacy}","received_events_url":"https://api.github.com/users/johnkoerner/received_events","type":"User","site_admin":false},"body":"Fixes issue #627. Added support for SA1308 and SA1309 to fix multiple prefixes if they\r\nexist.  Added unit tests to validate the functionality.","created_at":"2015-04-07T02:50:22Z","updated_at":"2015-04-07T02:56:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"81af637c1b82e921c341b6861ce322be12ad4121","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/pulls/647/commits","review_comments_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/pulls/647/comments","review_comment_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/647/comments","statuses_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/statuses/5faf14c08924b881587ddcb31b42c4eb48620372","head":{"label":"johnkoerner:fix-627","ref":"fix-627","sha":"5faf14c08924b881587ddcb31b42c4eb48620372","user":{"login":"johnkoerner","id":3915000,"avatar_url":"https://avatars.githubusercontent.com/u/3915000?v=3","gravatar_id":"","url":"https://api.github.com/users/johnkoerner","html_url":"https://github.com/johnkoerner","followers_url":"https://api.github.com/users/johnkoerner/followers","following_url":"https://api.github.com/users/johnkoerner/following{/other_user}","gists_url":"https://api.github.com/users/johnkoerner/gists{/gist_id}","starred_url":"https://api.github.com/users/johnkoerner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnkoerner/subscriptions","organizations_url":"https://api.github.com/users/johnkoerner/orgs","repos_url":"https://api.github.com/users/johnkoerner/repos","events_url":"https://api.github.com/users/johnkoerner/events{/privacy}","received_events_url":"https://api.github.com/users/johnkoerner/received_events","type":"User","site_admin":false},"repo":{"id":32495690,"name":"StyleCopAnalyzers","full_name":"johnkoerner/StyleCopAnalyzers","owner":{"login":"johnkoerner","id":3915000,"avatar_url":"https://avatars.githubusercontent.com/u/3915000?v=3","gravatar_id":"","url":"https://api.github.com/users/johnkoerner","html_url":"https://github.com/johnkoerner","followers_url":"https://api.github.com/users/johnkoerner/followers","following_url":"https://api.github.com/users/johnkoerner/following{/other_user}","gists_url":"https://api.github.com/users/johnkoerner/gists{/gist_id}","starred_url":"https://api.github.com/users/johnkoerner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnkoerner/subscriptions","organizations_url":"https://api.github.com/users/johnkoerner/orgs","repos_url":"https://api.github.com/users/johnkoerner/repos","events_url":"https://api.github.com/users/johnkoerner/events{/privacy}","received_events_url":"https://api.github.com/users/johnkoerner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/johnkoerner/StyleCopAnalyzers","description":"An implementation of StyleCop rules using the .NET Compiler Platform","fork":true,"url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers","forks_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/forks","keys_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/teams","hooks_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/hooks","issue_events_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/issues/events{/number}","events_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/events","assignees_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/assignees{/user}","branches_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/branches{/branch}","tags_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/tags","blobs_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/git/refs{/sha}","trees_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/statuses/{sha}","languages_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/languages","stargazers_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/stargazers","contributors_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/contributors","subscribers_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/subscribers","subscription_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/subscription","commits_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/commits{/sha}","git_commits_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/git/commits{/sha}","comments_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/comments{/number}","issue_comment_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/issues/comments{/number}","contents_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/contents/{+path}","compare_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/merges","archive_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/downloads","issues_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/issues{/number}","pulls_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/pulls{/number}","milestones_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/milestones{/number}","notifications_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/labels{/name}","releases_url":"https://api.github.com/repos/johnkoerner/StyleCopAnalyzers/releases{/id}","created_at":"2015-03-19T02:14:13Z","updated_at":"2015-04-05T02:24:19Z","pushed_at":"2015-04-07T02:47:48Z","git_url":"git://github.com/johnkoerner/StyleCopAnalyzers.git","ssh_url":"git@github.com:johnkoerner/StyleCopAnalyzers.git","clone_url":"https://github.com/johnkoerner/StyleCopAnalyzers.git","svn_url":"https://github.com/johnkoerner/StyleCopAnalyzers","homepage":null,"size":1832,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"DotNetAnalyzers:master","ref":"master","sha":"b9585683b3716b06d57eb05512b292439d612332","user":{"login":"DotNetAnalyzers","id":9735576,"avatar_url":"https://avatars.githubusercontent.com/u/9735576?v=3","gravatar_id":"","url":"https://api.github.com/users/DotNetAnalyzers","html_url":"https://github.com/DotNetAnalyzers","followers_url":"https://api.github.com/users/DotNetAnalyzers/followers","following_url":"https://api.github.com/users/DotNetAnalyzers/following{/other_user}","gists_url":"https://api.github.com/users/DotNetAnalyzers/gists{/gist_id}","starred_url":"https://api.github.com/users/DotNetAnalyzers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DotNetAnalyzers/subscriptions","organizations_url":"https://api.github.com/users/DotNetAnalyzers/orgs","repos_url":"https://api.github.com/users/DotNetAnalyzers/repos","events_url":"https://api.github.com/users/DotNetAnalyzers/events{/privacy}","received_events_url":"https://api.github.com/users/DotNetAnalyzers/received_events","type":"Organization","site_admin":false},"repo":{"id":26768275,"name":"StyleCopAnalyzers","full_name":"DotNetAnalyzers/StyleCopAnalyzers","owner":{"login":"DotNetAnalyzers","id":9735576,"avatar_url":"https://avatars.githubusercontent.com/u/9735576?v=3","gravatar_id":"","url":"https://api.github.com/users/DotNetAnalyzers","html_url":"https://github.com/DotNetAnalyzers","followers_url":"https://api.github.com/users/DotNetAnalyzers/followers","following_url":"https://api.github.com/users/DotNetAnalyzers/following{/other_user}","gists_url":"https://api.github.com/users/DotNetAnalyzers/gists{/gist_id}","starred_url":"https://api.github.com/users/DotNetAnalyzers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DotNetAnalyzers/subscriptions","organizations_url":"https://api.github.com/users/DotNetAnalyzers/orgs","repos_url":"https://api.github.com/users/DotNetAnalyzers/repos","events_url":"https://api.github.com/users/DotNetAnalyzers/events{/privacy}","received_events_url":"https://api.github.com/users/DotNetAnalyzers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DotNetAnalyzers/StyleCopAnalyzers","description":"An implementation of StyleCop rules using the .NET Compiler Platform","fork":false,"url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers","forks_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/forks","keys_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/teams","hooks_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/hooks","issue_events_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/events{/number}","events_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/events","assignees_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/assignees{/user}","branches_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/branches{/branch}","tags_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/tags","blobs_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/git/refs{/sha}","trees_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/statuses/{sha}","languages_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/languages","stargazers_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/stargazers","contributors_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/contributors","subscribers_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/subscribers","subscription_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/subscription","commits_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/commits{/sha}","git_commits_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/git/commits{/sha}","comments_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/comments{/number}","issue_comment_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/comments{/number}","contents_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/contents/{+path}","compare_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/merges","archive_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/downloads","issues_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues{/number}","pulls_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/pulls{/number}","milestones_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/milestones{/number}","notifications_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/labels{/name}","releases_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/releases{/id}","created_at":"2014-11-17T17:29:54Z","updated_at":"2015-04-07T02:52:14Z","pushed_at":"2015-04-07T02:52:13Z","git_url":"git://github.com/DotNetAnalyzers/StyleCopAnalyzers.git","ssh_url":"git@github.com:DotNetAnalyzers/StyleCopAnalyzers.git","clone_url":"https://github.com/DotNetAnalyzers/StyleCopAnalyzers.git","svn_url":"https://github.com/DotNetAnalyzers/StyleCopAnalyzers","homepage":null,"size":5114,"stargazers_count":63,"watchers_count":63,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":204,"forks":16,"open_issues":204,"watchers":63,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/pulls/647"},"html":{"href":"https://github.com/DotNetAnalyzers/StyleCopAnalyzers/pull/647"},"issue":{"href":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/647"},"comments":{"href":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/647/comments"},"review_comments":{"href":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/pulls/647/comments"},"review_comment":{"href":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/pulls/647/commits"},"statuses":{"href":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/statuses/5faf14c08924b881587ddcb31b42c4eb48620372"}}}}