{"action":"created","comment":{"url":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/comments/219780359","pull_request_review_id":158020349,"id":219780359,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTc4MDM1OQ==","diff_hunk":"@@ -20,7 +20,8 @@\n \n extern alias csharp;\n using Microsoft.VisualStudio.TestTools.UnitTesting;\n-using csharp::SonarAnalyzer.Rules.CSharp;\n+using CS=SonarAnalyzer.Rules.CSharp;","path":"sonaranalyzer-dotnet/tests/SonarAnalyzer.UnitTest/Rules/CognitiveComplexityTest.cs","position":5,"original_position":5,"commit_id":"e784da46fac1fe20d9d484c7a2f969b0ce1c7741","original_commit_id":"e784da46fac1fe20d9d484c7a2f969b0ce1c7741","user":{"login":"Evangelink","id":11340282,"node_id":"MDQ6VXNlcjExMzQwMjgy","avatar_url":"https://avatars0.githubusercontent.com/u/11340282?v=4","gravatar_id":"","url":"https://api.github.com/users/Evangelink","html_url":"https://github.com/Evangelink","followers_url":"https://api.github.com/users/Evangelink/followers","following_url":"https://api.github.com/users/Evangelink/following{/other_user}","gists_url":"https://api.github.com/users/Evangelink/gists{/gist_id}","starred_url":"https://api.github.com/users/Evangelink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Evangelink/subscriptions","organizations_url":"https://api.github.com/users/Evangelink/orgs","repos_url":"https://api.github.com/users/Evangelink/repos","events_url":"https://api.github.com/users/Evangelink/events{/privacy}","received_events_url":"https://api.github.com/users/Evangelink/received_events","type":"User","site_admin":false},"body":"Please add a space around the `=`.","created_at":"2018-09-24T09:48:36Z","updated_at":"2018-09-24T09:49:37Z","html_url":"https://github.com/SonarSource/sonar-csharp/pull/1871#discussion_r219780359","pull_request_url":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/1871","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/comments/219780359"},"html":{"href":"https://github.com/SonarSource/sonar-csharp/pull/1871#discussion_r219780359"},"pull_request":{"href":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/1871"}}},"pull_request":{"url":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/1871","id":217283339,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3MjgzMzM5","html_url":"https://github.com/SonarSource/sonar-csharp/pull/1871","diff_url":"https://github.com/SonarSource/sonar-csharp/pull/1871.diff","patch_url":"https://github.com/SonarSource/sonar-csharp/pull/1871.patch","issue_url":"https://api.github.com/repos/SonarSource/sonar-csharp/issues/1871","number":1871,"state":"open","locked":false,"title":"SONARVB-261 Rule S3776: Cognitive Complexity of functions should not be too high","user":{"login":"andrei-epure-sonarsource","id":38876598,"node_id":"MDQ6VXNlcjM4ODc2NTk4","avatar_url":"https://avatars1.githubusercontent.com/u/38876598?v=4","gravatar_id":"","url":"https://api.github.com/users/andrei-epure-sonarsource","html_url":"https://github.com/andrei-epure-sonarsource","followers_url":"https://api.github.com/users/andrei-epure-sonarsource/followers","following_url":"https://api.github.com/users/andrei-epure-sonarsource/following{/other_user}","gists_url":"https://api.github.com/users/andrei-epure-sonarsource/gists{/gist_id}","starred_url":"https://api.github.com/users/andrei-epure-sonarsource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrei-epure-sonarsource/subscriptions","organizations_url":"https://api.github.com/users/andrei-epure-sonarsource/orgs","repos_url":"https://api.github.com/users/andrei-epure-sonarsource/repos","events_url":"https://api.github.com/users/andrei-epure-sonarsource/events{/privacy}","received_events_url":"https://api.github.com/users/andrei-epure-sonarsource/received_events","type":"User","site_admin":false},"body":"Each language CognitiveComplexityWalker has an InnerWalker private class that does the tree traversal.\r\nThe language agnostic functionality is inside CognitiveComplexityWalkerBase.","created_at":"2018-09-21T13:25:18Z","updated_at":"2018-09-24T09:49:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8e713a4c033c77d584836ea2951060678e90edde","assignee":{"login":"andrei-epure-sonarsource","id":38876598,"node_id":"MDQ6VXNlcjM4ODc2NTk4","avatar_url":"https://avatars1.githubusercontent.com/u/38876598?v=4","gravatar_id":"","url":"https://api.github.com/users/andrei-epure-sonarsource","html_url":"https://github.com/andrei-epure-sonarsource","followers_url":"https://api.github.com/users/andrei-epure-sonarsource/followers","following_url":"https://api.github.com/users/andrei-epure-sonarsource/following{/other_user}","gists_url":"https://api.github.com/users/andrei-epure-sonarsource/gists{/gist_id}","starred_url":"https://api.github.com/users/andrei-epure-sonarsource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrei-epure-sonarsource/subscriptions","organizations_url":"https://api.github.com/users/andrei-epure-sonarsource/orgs","repos_url":"https://api.github.com/users/andrei-epure-sonarsource/repos","events_url":"https://api.github.com/users/andrei-epure-sonarsource/events{/privacy}","received_events_url":"https://api.github.com/users/andrei-epure-sonarsource/received_events","type":"User","site_admin":false},"assignees":[{"login":"andrei-epure-sonarsource","id":38876598,"node_id":"MDQ6VXNlcjM4ODc2NTk4","avatar_url":"https://avatars1.githubusercontent.com/u/38876598?v=4","gravatar_id":"","url":"https://api.github.com/users/andrei-epure-sonarsource","html_url":"https://github.com/andrei-epure-sonarsource","followers_url":"https://api.github.com/users/andrei-epure-sonarsource/followers","following_url":"https://api.github.com/users/andrei-epure-sonarsource/following{/other_user}","gists_url":"https://api.github.com/users/andrei-epure-sonarsource/gists{/gist_id}","starred_url":"https://api.github.com/users/andrei-epure-sonarsource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrei-epure-sonarsource/subscriptions","organizations_url":"https://api.github.com/users/andrei-epure-sonarsource/orgs","repos_url":"https://api.github.com/users/andrei-epure-sonarsource/repos","events_url":"https://api.github.com/users/andrei-epure-sonarsource/events{/privacy}","received_events_url":"https://api.github.com/users/andrei-epure-sonarsource/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"valhristov","id":23195959,"node_id":"MDQ6VXNlcjIzMTk1OTU5","avatar_url":"https://avatars2.githubusercontent.com/u/23195959?v=4","gravatar_id":"","url":"https://api.github.com/users/valhristov","html_url":"https://github.com/valhristov","followers_url":"https://api.github.com/users/valhristov/followers","following_url":"https://api.github.com/users/valhristov/following{/other_user}","gists_url":"https://api.github.com/users/valhristov/gists{/gist_id}","starred_url":"https://api.github.com/users/valhristov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valhristov/subscriptions","organizations_url":"https://api.github.com/users/valhristov/orgs","repos_url":"https://api.github.com/users/valhristov/repos","events_url":"https://api.github.com/users/valhristov/events{/privacy}","received_events_url":"https://api.github.com/users/valhristov/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":731543503,"node_id":"MDU6TGFiZWw3MzE1NDM1MDM=","url":"https://api.github.com/repos/SonarSource/sonar-csharp/labels/Status:%20Needs%20Review","name":"Status: Needs Review","color":"b60205","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/1871/commits","review_comments_url":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/1871/comments","review_comment_url":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SonarSource/sonar-csharp/issues/1871/comments","statuses_url":"https://api.github.com/repos/SonarSource/sonar-csharp/statuses/e784da46fac1fe20d9d484c7a2f969b0ce1c7741","head":{"label":"SonarSource:andrei/SONARVB-261","ref":"andrei/SONARVB-261","sha":"e784da46fac1fe20d9d484c7a2f969b0ce1c7741","user":{"login":"SonarSource","id":545988,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NTk4OA==","avatar_url":"https://avatars0.githubusercontent.com/u/545988?v=4","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"repo":{"id":5582516,"node_id":"MDEwOlJlcG9zaXRvcnk1NTgyNTE2","name":"sonar-csharp","full_name":"SonarSource/sonar-csharp","private":false,"owner":{"login":"SonarSource","id":545988,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NTk4OA==","avatar_url":"https://avatars0.githubusercontent.com/u/545988?v=4","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/SonarSource/sonar-csharp","description":"Code analyzer for C# projects","fork":false,"url":"https://api.github.com/repos/SonarSource/sonar-csharp","forks_url":"https://api.github.com/repos/SonarSource/sonar-csharp/forks","keys_url":"https://api.github.com/repos/SonarSource/sonar-csharp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SonarSource/sonar-csharp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SonarSource/sonar-csharp/teams","hooks_url":"https://api.github.com/repos/SonarSource/sonar-csharp/hooks","issue_events_url":"https://api.github.com/repos/SonarSource/sonar-csharp/issues/events{/number}","events_url":"https://api.github.com/repos/SonarSource/sonar-csharp/events","assignees_url":"https://api.github.com/repos/SonarSource/sonar-csharp/assignees{/user}","branches_url":"https://api.github.com/repos/SonarSource/sonar-csharp/branches{/branch}","tags_url":"https://api.github.com/repos/SonarSource/sonar-csharp/tags","blobs_url":"https://api.github.com/repos/SonarSource/sonar-csharp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SonarSource/sonar-csharp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SonarSource/sonar-csharp/git/refs{/sha}","trees_url":"https://api.github.com/repos/SonarSource/sonar-csharp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SonarSource/sonar-csharp/statuses/{sha}","languages_url":"https://api.github.com/repos/SonarSource/sonar-csharp/languages","stargazers_url":"https://api.github.com/repos/SonarSource/sonar-csharp/stargazers","contributors_url":"https://api.github.com/repos/SonarSource/sonar-csharp/contributors","subscribers_url":"https://api.github.com/repos/SonarSource/sonar-csharp/subscribers","subscription_url":"https://api.github.com/repos/SonarSource/sonar-csharp/subscription","commits_url":"https://api.github.com/repos/SonarSource/sonar-csharp/commits{/sha}","git_commits_url":"https://api.github.com/repos/SonarSource/sonar-csharp/git/commits{/sha}","comments_url":"https://api.github.com/repos/SonarSource/sonar-csharp/comments{/number}","issue_comment_url":"https://api.github.com/repos/SonarSource/sonar-csharp/issues/comments{/number}","contents_url":"https://api.github.com/repos/SonarSource/sonar-csharp/contents/{+path}","compare_url":"https://api.github.com/repos/SonarSource/sonar-csharp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SonarSource/sonar-csharp/merges","archive_url":"https://api.github.com/repos/SonarSource/sonar-csharp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SonarSource/sonar-csharp/downloads","issues_url":"https://api.github.com/repos/SonarSource/sonar-csharp/issues{/number}","pulls_url":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls{/number}","milestones_url":"https://api.github.com/repos/SonarSource/sonar-csharp/milestones{/number}","notifications_url":"https://api.github.com/repos/SonarSource/sonar-csharp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SonarSource/sonar-csharp/labels{/name}","releases_url":"https://api.github.com/repos/SonarSource/sonar-csharp/releases{/id}","deployments_url":"https://api.github.com/repos/SonarSource/sonar-csharp/deployments","created_at":"2012-08-28T07:37:28Z","updated_at":"2018-09-24T08:28:40Z","pushed_at":"2018-09-24T09:17:10Z","git_url":"git://github.com/SonarSource/sonar-csharp.git","ssh_url":"git@github.com:SonarSource/sonar-csharp.git","clone_url":"https://github.com/SonarSource/sonar-csharp.git","svn_url":"https://github.com/SonarSource/sonar-csharp","homepage":"https://redirect.sonarsource.com/plugins/csharp.html","size":61008,"stargazers_count":211,"watchers_count":211,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":105,"mirror_url":null,"archived":false,"open_issues_count":110,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":105,"open_issues":110,"watchers":211,"default_branch":"master"}},"base":{"label":"SonarSource:feature/version_7_6","ref":"feature/version_7_6","sha":"041a34e278e10fb6ebfa0253adaf0ac3b33d50c7","user":{"login":"SonarSource","id":545988,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NTk4OA==","avatar_url":"https://avatars0.githubusercontent.com/u/545988?v=4","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"repo":{"id":5582516,"node_id":"MDEwOlJlcG9zaXRvcnk1NTgyNTE2","name":"sonar-csharp","full_name":"SonarSource/sonar-csharp","private":false,"owner":{"login":"SonarSource","id":545988,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NTk4OA==","avatar_url":"https://avatars0.githubusercontent.com/u/545988?v=4","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/SonarSource/sonar-csharp","description":"Code analyzer for C# projects","fork":false,"url":"https://api.github.com/repos/SonarSource/sonar-csharp","forks_url":"https://api.github.com/repos/SonarSource/sonar-csharp/forks","keys_url":"https://api.github.com/repos/SonarSource/sonar-csharp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SonarSource/sonar-csharp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SonarSource/sonar-csharp/teams","hooks_url":"https://api.github.com/repos/SonarSource/sonar-csharp/hooks","issue_events_url":"https://api.github.com/repos/SonarSource/sonar-csharp/issues/events{/number}","events_url":"https://api.github.com/repos/SonarSource/sonar-csharp/events","assignees_url":"https://api.github.com/repos/SonarSource/sonar-csharp/assignees{/user}","branches_url":"https://api.github.com/repos/SonarSource/sonar-csharp/branches{/branch}","tags_url":"https://api.github.com/repos/SonarSource/sonar-csharp/tags","blobs_url":"https://api.github.com/repos/SonarSource/sonar-csharp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SonarSource/sonar-csharp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SonarSource/sonar-csharp/git/refs{/sha}","trees_url":"https://api.github.com/repos/SonarSource/sonar-csharp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SonarSource/sonar-csharp/statuses/{sha}","languages_url":"https://api.github.com/repos/SonarSource/sonar-csharp/languages","stargazers_url":"https://api.github.com/repos/SonarSource/sonar-csharp/stargazers","contributors_url":"https://api.github.com/repos/SonarSource/sonar-csharp/contributors","subscribers_url":"https://api.github.com/repos/SonarSource/sonar-csharp/subscribers","subscription_url":"https://api.github.com/repos/SonarSource/sonar-csharp/subscription","commits_url":"https://api.github.com/repos/SonarSource/sonar-csharp/commits{/sha}","git_commits_url":"https://api.github.com/repos/SonarSource/sonar-csharp/git/commits{/sha}","comments_url":"https://api.github.com/repos/SonarSource/sonar-csharp/comments{/number}","issue_comment_url":"https://api.github.com/repos/SonarSource/sonar-csharp/issues/comments{/number}","contents_url":"https://api.github.com/repos/SonarSource/sonar-csharp/contents/{+path}","compare_url":"https://api.github.com/repos/SonarSource/sonar-csharp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SonarSource/sonar-csharp/merges","archive_url":"https://api.github.com/repos/SonarSource/sonar-csharp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SonarSource/sonar-csharp/downloads","issues_url":"https://api.github.com/repos/SonarSource/sonar-csharp/issues{/number}","pulls_url":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls{/number}","milestones_url":"https://api.github.com/repos/SonarSource/sonar-csharp/milestones{/number}","notifications_url":"https://api.github.com/repos/SonarSource/sonar-csharp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SonarSource/sonar-csharp/labels{/name}","releases_url":"https://api.github.com/repos/SonarSource/sonar-csharp/releases{/id}","deployments_url":"https://api.github.com/repos/SonarSource/sonar-csharp/deployments","created_at":"2012-08-28T07:37:28Z","updated_at":"2018-09-24T08:28:40Z","pushed_at":"2018-09-24T09:17:10Z","git_url":"git://github.com/SonarSource/sonar-csharp.git","ssh_url":"git@github.com:SonarSource/sonar-csharp.git","clone_url":"https://github.com/SonarSource/sonar-csharp.git","svn_url":"https://github.com/SonarSource/sonar-csharp","homepage":"https://redirect.sonarsource.com/plugins/csharp.html","size":61008,"stargazers_count":211,"watchers_count":211,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":105,"mirror_url":null,"archived":false,"open_issues_count":110,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":105,"open_issues":110,"watchers":211,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/1871"},"html":{"href":"https://github.com/SonarSource/sonar-csharp/pull/1871"},"issue":{"href":"https://api.github.com/repos/SonarSource/sonar-csharp/issues/1871"},"comments":{"href":"https://api.github.com/repos/SonarSource/sonar-csharp/issues/1871/comments"},"review_comments":{"href":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/1871/comments"},"review_comment":{"href":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/1871/commits"},"statuses":{"href":"https://api.github.com/repos/SonarSource/sonar-csharp/statuses/e784da46fac1fe20d9d484c7a2f969b0ce1c7741"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Evangelink"}}