{"action":"opened","issue":{"url":"https://api.github.com/repos/diegocedrim/organic/issues/7","repository_url":"https://api.github.com/repos/diegocedrim/organic","labels_url":"https://api.github.com/repos/diegocedrim/organic/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/diegocedrim/organic/issues/7/comments","events_url":"https://api.github.com/repos/diegocedrim/organic/issues/7/events","html_url":"https://github.com/diegocedrim/organic/issues/7","id":189004880,"number":7,"title":"New Code Smell Detector: Brain Class","user":{"login":"diegocedrim","id":5018248,"avatar_url":"https://avatars.githubusercontent.com/u/5018248?v=3","gravatar_id":"","url":"https://api.github.com/users/diegocedrim","html_url":"https://github.com/diegocedrim","followers_url":"https://api.github.com/users/diegocedrim/followers","following_url":"https://api.github.com/users/diegocedrim/following{/other_user}","gists_url":"https://api.github.com/users/diegocedrim/gists{/gist_id}","starred_url":"https://api.github.com/users/diegocedrim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegocedrim/subscriptions","organizations_url":"https://api.github.com/users/diegocedrim/orgs","repos_url":"https://api.github.com/users/diegocedrim/repos","events_url":"https://api.github.com/users/diegocedrim/events{/privacy}","received_events_url":"https://api.github.com/users/diegocedrim/received_events","type":"User","site_admin":false},"labels":[{"id":464983420,"url":"https://api.github.com/repos/diegocedrim/organic/labels/feature","name":"feature","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":{"login":"diegocedrim","id":5018248,"avatar_url":"https://avatars.githubusercontent.com/u/5018248?v=3","gravatar_id":"","url":"https://api.github.com/users/diegocedrim","html_url":"https://github.com/diegocedrim","followers_url":"https://api.github.com/users/diegocedrim/followers","following_url":"https://api.github.com/users/diegocedrim/following{/other_user}","gists_url":"https://api.github.com/users/diegocedrim/gists{/gist_id}","starred_url":"https://api.github.com/users/diegocedrim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegocedrim/subscriptions","organizations_url":"https://api.github.com/users/diegocedrim/orgs","repos_url":"https://api.github.com/users/diegocedrim/repos","events_url":"https://api.github.com/users/diegocedrim/events{/privacy}","received_events_url":"https://api.github.com/users/diegocedrim/received_events","type":"User","site_admin":false},"assignees":[{"login":"diegocedrim","id":5018248,"avatar_url":"https://avatars.githubusercontent.com/u/5018248?v=3","gravatar_id":"","url":"https://api.github.com/users/diegocedrim","html_url":"https://github.com/diegocedrim","followers_url":"https://api.github.com/users/diegocedrim/followers","following_url":"https://api.github.com/users/diegocedrim/following{/other_user}","gists_url":"https://api.github.com/users/diegocedrim/gists{/gist_id}","starred_url":"https://api.github.com/users/diegocedrim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegocedrim/subscriptions","organizations_url":"https://api.github.com/users/diegocedrim/orgs","repos_url":"https://api.github.com/users/diegocedrim/repos","events_url":"https://api.github.com/users/diegocedrim/events{/privacy}","received_events_url":"https://api.github.com/users/diegocedrim/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/diegocedrim/organic/milestones/1","html_url":"https://github.com/diegocedrim/organic/milestones/1.0.0","labels_url":"https://api.github.com/repos/diegocedrim/organic/milestones/1/labels","id":2081497,"number":1,"title":"1.0.0","description":"This version will have the first version of the Organic tool with command line interface","creator":{"login":"diegocedrim","id":5018248,"avatar_url":"https://avatars.githubusercontent.com/u/5018248?v=3","gravatar_id":"","url":"https://api.github.com/users/diegocedrim","html_url":"https://github.com/diegocedrim","followers_url":"https://api.github.com/users/diegocedrim/followers","following_url":"https://api.github.com/users/diegocedrim/following{/other_user}","gists_url":"https://api.github.com/users/diegocedrim/gists{/gist_id}","starred_url":"https://api.github.com/users/diegocedrim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegocedrim/subscriptions","organizations_url":"https://api.github.com/users/diegocedrim/orgs","repos_url":"https://api.github.com/users/diegocedrim/repos","events_url":"https://api.github.com/users/diegocedrim/events{/privacy}","received_events_url":"https://api.github.com/users/diegocedrim/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":1,"state":"open","created_at":"2016-10-20T03:10:09Z","updated_at":"2016-11-13T23:53:36Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-11-13T23:53:36Z","updated_at":"2016-11-13T23:53:36Z","closed_at":null,"body":"According to Lanza & Marinescu:\r\n\r\n> This design disharmony is about complex classes that tend to accumulate an excessive amount of intelligence, usually in form of several methods affected by _Brain Method_\r\n\r\nConsider the following conditions:\r\n\r\n## Condition 1\r\nClass contains more than one Brain Method and is very large. \r\n\r\n```python\r\ncount(Brain Method) > 1 and LOC >= VERY_HIGH\r\n```\r\n\r\n## Condition 2\r\nClass contains only one Brain Method, but it is extremely large and complex\r\n\r\n```python\r\ncount(Brain Method) == 1 and LOC >= 2*VERY_HIGH and WMC >= 2*VERY_HIGH\r\n```\r\n\r\n## Condition 3\r\nClass is very complex and non-cohesive\r\n\r\n```python\r\nWMC >= VERY_HIGH and TCC < HALF\r\n```\r\n\r\n## Brain Class Detection Rule\r\nA class is a _Brain Class_ if:\r\n\r\n```python\r\n(Condition_1 or Condition_2) and (Condition_3)\r\n```\r\n"}}
{"actor":{"display_login":"diegocedrim"}}