{"action":"created","issue":{"url":"https://api.github.com/repos/JetBrains/resharper-cyclomatic-complexity/issues/3","repository_url":"https://api.github.com/repos/JetBrains/resharper-cyclomatic-complexity","labels_url":"https://api.github.com/repos/JetBrains/resharper-cyclomatic-complexity/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/JetBrains/resharper-cyclomatic-complexity/issues/3/comments","events_url":"https://api.github.com/repos/JetBrains/resharper-cyclomatic-complexity/issues/3/events","html_url":"https://github.com/JetBrains/resharper-cyclomatic-complexity/issues/3","id":119405923,"number":3,"title":"Cyclomatic Complexity value from resharper is different compare to other evaluator","user":{"login":"Nness","id":1712143,"avatar_url":"https://avatars.githubusercontent.com/u/1712143?v=3","gravatar_id":"","url":"https://api.github.com/users/Nness","html_url":"https://github.com/Nness","followers_url":"https://api.github.com/users/Nness/followers","following_url":"https://api.github.com/users/Nness/following{/other_user}","gists_url":"https://api.github.com/users/Nness/gists{/gist_id}","starred_url":"https://api.github.com/users/Nness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nness/subscriptions","organizations_url":"https://api.github.com/users/Nness/orgs","repos_url":"https://api.github.com/users/Nness/repos","events_url":"https://api.github.com/users/Nness/events{/privacy}","received_events_url":"https://api.github.com/users/Nness/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-11-30T02:04:31Z","updated_at":"2016-04-22T13:22:36Z","closed_at":null,"body":"```C#\r\nprivate static IEnumerable<Result> Update(IEnumerable<Config> configs, Req req)\r\n{\r\n    foreach(Config config in configs) {\r\n        config.Setting1 = req.Setting1 ?? config.Setting1;\r\n        config.Setting2 = config.Setting1 || (req.Setting2 ?? config.Setting2);\r\n        config.Setting3 = req.Setting3 ?? config.Setting3;\r\n        config.Setting4 = req.Setting4 ?? config.Setting4;\r\n        config.Setting5 = req.Setting5 ?? config.Setting5;\r\n        config.Setting6 = req.Setting6 ?? config.Setting6;\r\n\r\n        if(req.performAction != true) {\r\n         continue;\r\n        }\r\n        \r\n        PerformAction(config);\r\n        yield return new Result {\r\n            Id = config.Id,\r\n            Text = config.Text\r\n        };\r\n    }\r\n}\r\n```\r\n\r\nAbove method result as 24 cyclomatic complexity from this resharper plugin, while visual studio's analysis only shows complexity of `1`. CodeMaid shows complexity of `1` as well.\r\n\r\nI'm not sure which one did wrong, but its hard to manage project when every tools given different result while point out to article says it should keep at certain level."},"comment":{"url":"https://api.github.com/repos/JetBrains/resharper-cyclomatic-complexity/issues/comments/213426781","html_url":"https://github.com/JetBrains/resharper-cyclomatic-complexity/issues/3#issuecomment-213426781","issue_url":"https://api.github.com/repos/JetBrains/resharper-cyclomatic-complexity/issues/3","id":213426781,"user":{"login":"citizenmatt","id":222659,"avatar_url":"https://avatars.githubusercontent.com/u/222659?v=3","gravatar_id":"","url":"https://api.github.com/users/citizenmatt","html_url":"https://github.com/citizenmatt","followers_url":"https://api.github.com/users/citizenmatt/followers","following_url":"https://api.github.com/users/citizenmatt/following{/other_user}","gists_url":"https://api.github.com/users/citizenmatt/gists{/gist_id}","starred_url":"https://api.github.com/users/citizenmatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/citizenmatt/subscriptions","organizations_url":"https://api.github.com/users/citizenmatt/orgs","repos_url":"https://api.github.com/users/citizenmatt/repos","events_url":"https://api.github.com/users/citizenmatt/events{/privacy}","received_events_url":"https://api.github.com/users/citizenmatt/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T13:22:36Z","updated_at":"2016-04-22T13:22:36Z","body":"Perfectly timed, thanks!"}}