{"action":"created","issue":{"url":"https://api.github.com/repos/coala-analyzer/coala/issues/2582","repository_url":"https://api.github.com/repos/coala-analyzer/coala","labels_url":"https://api.github.com/repos/coala-analyzer/coala/issues/2582/labels{/name}","comments_url":"https://api.github.com/repos/coala-analyzer/coala/issues/2582/comments","events_url":"https://api.github.com/repos/coala-analyzer/coala/issues/2582/events","html_url":"https://github.com/coala-analyzer/coala/issues/2582","id":169089535,"number":2582,"title":"better dependency mechanism","user":{"login":"abhsag24","id":8532031,"avatar_url":"https://avatars.githubusercontent.com/u/8532031?v=3","gravatar_id":"","url":"https://api.github.com/users/abhsag24","html_url":"https://github.com/abhsag24","followers_url":"https://api.github.com/users/abhsag24/followers","following_url":"https://api.github.com/users/abhsag24/following{/other_user}","gists_url":"https://api.github.com/users/abhsag24/gists{/gist_id}","starred_url":"https://api.github.com/users/abhsag24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhsag24/subscriptions","organizations_url":"https://api.github.com/users/abhsag24/orgs","repos_url":"https://api.github.com/users/abhsag24/repos","events_url":"https://api.github.com/users/abhsag24/events{/privacy}","received_events_url":"https://api.github.com/users/abhsag24/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-03T09:40:18Z","updated_at":"2016-08-03T09:40:29Z","closed_at":null,"body":"Right now we have dependency mechanism where bears that are dependencies on some other bear have to return `HiddenResults` but what if we need a certain bear as a dependency that can act as a stand-alone bear. \r\nUsing such stand-alone bears as dependencies, displays the results of the dependencies as well which is not expected behaviour since the user never specified the bear in his/her .coafile.\r\nFor example: I'm working on a `LineBreakBear` which has `LineLengthBear` as a dependency.\r\n2 solutions come to mind:\r\n\r\n1>use `DependancyBear.execute()` within the dependent bear, but then with this approach increases redundancy since the same bear can be a dependency on some other bear and then we would run the routine twice. Maybe caching of results and then returning the cached results on execute is an alternative? idk\r\n\r\n2> only display the results of bears that are in the .coafile\r\n\r\ni personally like 2. as it is easy and simple :P "},"comment":{"url":"https://api.github.com/repos/coala-analyzer/coala/issues/comments/237191676","html_url":"https://github.com/coala-analyzer/coala/issues/2582#issuecomment-237191676","issue_url":"https://api.github.com/repos/coala-analyzer/coala/issues/2582","id":237191676,"user":{"login":"gitmate-bot","id":15421488,"avatar_url":"https://avatars.githubusercontent.com/u/15421488?v=3","gravatar_id":"","url":"https://api.github.com/users/gitmate-bot","html_url":"https://github.com/gitmate-bot","followers_url":"https://api.github.com/users/gitmate-bot/followers","following_url":"https://api.github.com/users/gitmate-bot/following{/other_user}","gists_url":"https://api.github.com/users/gitmate-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/gitmate-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitmate-bot/subscriptions","organizations_url":"https://api.github.com/users/gitmate-bot/orgs","repos_url":"https://api.github.com/users/gitmate-bot/repos","events_url":"https://api.github.com/users/gitmate-bot/events{/privacy}","received_events_url":"https://api.github.com/users/gitmate-bot/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T09:40:29Z","updated_at":"2016-08-03T09:40:29Z","body":"Thanks for reporting this issue! A coalaian will look at it soon."}}
{"actor":{"display_login":"gitmate-bot"}}