{"action":"created","comment":{"url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/pulls/comments/48461949","id":48461949,"diff_hunk":"@@ -0,0 +1,150 @@\n+﻿using System.Collections.Immutable;\n+using System.Linq;\n+using System.Text.RegularExpressions;\n+using Microsoft.CodeAnalysis;\n+using Microsoft.CodeAnalysis.CSharp;\n+using Microsoft.CodeAnalysis.CSharp.Syntax;\n+using Microsoft.CodeAnalysis.Diagnostics;\n+using VSDiagnostics.Utilities;\n+\n+namespace VSDiagnostics.Diagnostics.Strings.StringDotFormatWithDifferentAmountOfArguments\n+{\n+    [DiagnosticAnalyzer(LanguageNames.CSharp)]\n+    public class StringDotFormatWithDifferentAmountOfArgumentsAnalyzer : DiagnosticAnalyzer\n+    {\n+        private const DiagnosticSeverity Severity = DiagnosticSeverity.Warning;\n+        private static readonly string Category = VSDiagnosticsResources.StringsCategory;\n+        private static readonly string Message = VSDiagnosticsResources.StringDotFormatWithDifferentAmountOfArgumentsMessage;\n+        private static readonly string Title = VSDiagnosticsResources.StringDotFormatWithDifferentAmountOfArgumentsTitle;\n+\n+        internal static DiagnosticDescriptor Rule =>\n+            new DiagnosticDescriptor(DiagnosticId.StringDotFormatWithDifferentAmountOfArguments, Title, Message, Category, Severity, true);\n+\n+        public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);\n+\n+        public override void Initialize(AnalysisContext context)\n+        {\n+            context.RegisterSyntaxNodeAction(AnalyzeNode, SyntaxKind.InvocationExpression);\n+        }\n+\n+        private void AnalyzeNode(SyntaxNodeAnalysisContext context)\n+        {\n+            var invocation = context.Node as InvocationExpressionSyntax;","path":"VSDiagnostics/VSDiagnostics/VSDiagnostics/Diagnostics/Strings/StringDotFormatWithDifferentAmountOfArguments/StringDotFormatWithDifferentAmountOfArgumentsAnalyzer.cs","position":32,"original_position":32,"commit_id":"d9027e0e1391e8de5275758b7f75bccc7378c2f6","original_commit_id":"2df0da6593f1e93eb282640c454056af17df59bc","user":{"login":"SLaks","id":313894,"avatar_url":"https://avatars.githubusercontent.com/u/313894?v=3","gravatar_id":"","url":"https://api.github.com/users/SLaks","html_url":"https://github.com/SLaks","followers_url":"https://api.github.com/users/SLaks/followers","following_url":"https://api.github.com/users/SLaks/following{/other_user}","gists_url":"https://api.github.com/users/SLaks/gists{/gist_id}","starred_url":"https://api.github.com/users/SLaks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SLaks/subscriptions","organizations_url":"https://api.github.com/users/SLaks/orgs","repos_url":"https://api.github.com/users/SLaks/repos","events_url":"https://api.github.com/users/SLaks/events{/privacy}","received_events_url":"https://api.github.com/users/SLaks/received_events","type":"User","site_admin":false},"body":"You shouldn't extract anything; instead, put everything into one analyzer.\r\n\r\nOtherwise, you'll end up analyzing every node twice, hurting performance.","created_at":"2015-12-28T03:30:18Z","updated_at":"2015-12-28T03:30:18Z","html_url":"https://github.com/Vannevelj/VSDiagnostics/pull/319#discussion_r48461949","pull_request_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/pulls/319","_links":{"self":{"href":"https://api.github.com/repos/Vannevelj/VSDiagnostics/pulls/comments/48461949"},"html":{"href":"https://github.com/Vannevelj/VSDiagnostics/pull/319#discussion_r48461949"},"pull_request":{"href":"https://api.github.com/repos/Vannevelj/VSDiagnostics/pulls/319"}}},"pull_request":{"url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/pulls/319","id":54589167,"html_url":"https://github.com/Vannevelj/VSDiagnostics/pull/319","diff_url":"https://github.com/Vannevelj/VSDiagnostics/pull/319.diff","patch_url":"https://github.com/Vannevelj/VSDiagnostics/pull/319.patch","issue_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/issues/319","number":319,"state":"open","locked":false,"title":"Issue307","user":{"login":"Vannevelj","id":2777107,"avatar_url":"https://avatars.githubusercontent.com/u/2777107?v=3","gravatar_id":"","url":"https://api.github.com/users/Vannevelj","html_url":"https://github.com/Vannevelj","followers_url":"https://api.github.com/users/Vannevelj/followers","following_url":"https://api.github.com/users/Vannevelj/following{/other_user}","gists_url":"https://api.github.com/users/Vannevelj/gists{/gist_id}","starred_url":"https://api.github.com/users/Vannevelj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vannevelj/subscriptions","organizations_url":"https://api.github.com/users/Vannevelj/orgs","repos_url":"https://api.github.com/users/Vannevelj/repos","events_url":"https://api.github.com/users/Vannevelj/events{/privacy}","received_events_url":"https://api.github.com/users/Vannevelj/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-25T15:10:34Z","updated_at":"2015-12-28T03:30:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5d54a02ffe7b1f9b5de8f6c9ae3f8a0b7f23777d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/pulls/319/commits","review_comments_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/pulls/319/comments","review_comment_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/issues/319/comments","statuses_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/statuses/d9027e0e1391e8de5275758b7f75bccc7378c2f6","head":{"label":"Vannevelj:issue307","ref":"issue307","sha":"d9027e0e1391e8de5275758b7f75bccc7378c2f6","user":{"login":"Vannevelj","id":2777107,"avatar_url":"https://avatars.githubusercontent.com/u/2777107?v=3","gravatar_id":"","url":"https://api.github.com/users/Vannevelj","html_url":"https://github.com/Vannevelj","followers_url":"https://api.github.com/users/Vannevelj/followers","following_url":"https://api.github.com/users/Vannevelj/following{/other_user}","gists_url":"https://api.github.com/users/Vannevelj/gists{/gist_id}","starred_url":"https://api.github.com/users/Vannevelj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vannevelj/subscriptions","organizations_url":"https://api.github.com/users/Vannevelj/orgs","repos_url":"https://api.github.com/users/Vannevelj/repos","events_url":"https://api.github.com/users/Vannevelj/events{/privacy}","received_events_url":"https://api.github.com/users/Vannevelj/received_events","type":"User","site_admin":false},"repo":{"id":34992631,"name":"VSDiagnostics","full_name":"Vannevelj/VSDiagnostics","owner":{"login":"Vannevelj","id":2777107,"avatar_url":"https://avatars.githubusercontent.com/u/2777107?v=3","gravatar_id":"","url":"https://api.github.com/users/Vannevelj","html_url":"https://github.com/Vannevelj","followers_url":"https://api.github.com/users/Vannevelj/followers","following_url":"https://api.github.com/users/Vannevelj/following{/other_user}","gists_url":"https://api.github.com/users/Vannevelj/gists{/gist_id}","starred_url":"https://api.github.com/users/Vannevelj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vannevelj/subscriptions","organizations_url":"https://api.github.com/users/Vannevelj/orgs","repos_url":"https://api.github.com/users/Vannevelj/repos","events_url":"https://api.github.com/users/Vannevelj/events{/privacy}","received_events_url":"https://api.github.com/users/Vannevelj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Vannevelj/VSDiagnostics","description":"A collection of code-quality analyzers","fork":false,"url":"https://api.github.com/repos/Vannevelj/VSDiagnostics","forks_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/forks","keys_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/teams","hooks_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/hooks","issue_events_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/issues/events{/number}","events_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/events","assignees_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/assignees{/user}","branches_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/branches{/branch}","tags_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/tags","blobs_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/statuses/{sha}","languages_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/languages","stargazers_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/stargazers","contributors_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/contributors","subscribers_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/subscribers","subscription_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/subscription","commits_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/contents/{+path}","compare_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/merges","archive_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/downloads","issues_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/issues{/number}","pulls_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/pulls{/number}","milestones_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/milestones{/number}","notifications_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/labels{/name}","releases_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/releases{/id}","created_at":"2015-05-03T16:33:02Z","updated_at":"2015-11-19T12:41:23Z","pushed_at":"2015-12-28T03:04:38Z","git_url":"git://github.com/Vannevelj/VSDiagnostics.git","ssh_url":"git@github.com:Vannevelj/VSDiagnostics.git","clone_url":"https://github.com/Vannevelj/VSDiagnostics.git","svn_url":"https://github.com/Vannevelj/VSDiagnostics","homepage":null,"size":884,"stargazers_count":35,"watchers_count":35,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":101,"forks":9,"open_issues":101,"watchers":35,"default_branch":"develop"}},"base":{"label":"Vannevelj:develop","ref":"develop","sha":"201dd3c7128a630fc52a2159355c91d8f4afbf17","user":{"login":"Vannevelj","id":2777107,"avatar_url":"https://avatars.githubusercontent.com/u/2777107?v=3","gravatar_id":"","url":"https://api.github.com/users/Vannevelj","html_url":"https://github.com/Vannevelj","followers_url":"https://api.github.com/users/Vannevelj/followers","following_url":"https://api.github.com/users/Vannevelj/following{/other_user}","gists_url":"https://api.github.com/users/Vannevelj/gists{/gist_id}","starred_url":"https://api.github.com/users/Vannevelj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vannevelj/subscriptions","organizations_url":"https://api.github.com/users/Vannevelj/orgs","repos_url":"https://api.github.com/users/Vannevelj/repos","events_url":"https://api.github.com/users/Vannevelj/events{/privacy}","received_events_url":"https://api.github.com/users/Vannevelj/received_events","type":"User","site_admin":false},"repo":{"id":34992631,"name":"VSDiagnostics","full_name":"Vannevelj/VSDiagnostics","owner":{"login":"Vannevelj","id":2777107,"avatar_url":"https://avatars.githubusercontent.com/u/2777107?v=3","gravatar_id":"","url":"https://api.github.com/users/Vannevelj","html_url":"https://github.com/Vannevelj","followers_url":"https://api.github.com/users/Vannevelj/followers","following_url":"https://api.github.com/users/Vannevelj/following{/other_user}","gists_url":"https://api.github.com/users/Vannevelj/gists{/gist_id}","starred_url":"https://api.github.com/users/Vannevelj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vannevelj/subscriptions","organizations_url":"https://api.github.com/users/Vannevelj/orgs","repos_url":"https://api.github.com/users/Vannevelj/repos","events_url":"https://api.github.com/users/Vannevelj/events{/privacy}","received_events_url":"https://api.github.com/users/Vannevelj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Vannevelj/VSDiagnostics","description":"A collection of code-quality analyzers","fork":false,"url":"https://api.github.com/repos/Vannevelj/VSDiagnostics","forks_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/forks","keys_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/teams","hooks_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/hooks","issue_events_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/issues/events{/number}","events_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/events","assignees_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/assignees{/user}","branches_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/branches{/branch}","tags_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/tags","blobs_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/statuses/{sha}","languages_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/languages","stargazers_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/stargazers","contributors_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/contributors","subscribers_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/subscribers","subscription_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/subscription","commits_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/contents/{+path}","compare_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/merges","archive_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/downloads","issues_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/issues{/number}","pulls_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/pulls{/number}","milestones_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/milestones{/number}","notifications_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/labels{/name}","releases_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/releases{/id}","created_at":"2015-05-03T16:33:02Z","updated_at":"2015-11-19T12:41:23Z","pushed_at":"2015-12-28T03:04:38Z","git_url":"git://github.com/Vannevelj/VSDiagnostics.git","ssh_url":"git@github.com:Vannevelj/VSDiagnostics.git","clone_url":"https://github.com/Vannevelj/VSDiagnostics.git","svn_url":"https://github.com/Vannevelj/VSDiagnostics","homepage":null,"size":884,"stargazers_count":35,"watchers_count":35,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":101,"forks":9,"open_issues":101,"watchers":35,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Vannevelj/VSDiagnostics/pulls/319"},"html":{"href":"https://github.com/Vannevelj/VSDiagnostics/pull/319"},"issue":{"href":"https://api.github.com/repos/Vannevelj/VSDiagnostics/issues/319"},"comments":{"href":"https://api.github.com/repos/Vannevelj/VSDiagnostics/issues/319/comments"},"review_comments":{"href":"https://api.github.com/repos/Vannevelj/VSDiagnostics/pulls/319/comments"},"review_comment":{"href":"https://api.github.com/repos/Vannevelj/VSDiagnostics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Vannevelj/VSDiagnostics/pulls/319/commits"},"statuses":{"href":"https://api.github.com/repos/Vannevelj/VSDiagnostics/statuses/d9027e0e1391e8de5275758b7f75bccc7378c2f6"}}}}