{"action":"opened","issue":{"url":"https://api.github.com/repos/sensiolabs-de/deprecation-detector/issues/105","repository_url":"https://api.github.com/repos/sensiolabs-de/deprecation-detector","labels_url":"https://api.github.com/repos/sensiolabs-de/deprecation-detector/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/sensiolabs-de/deprecation-detector/issues/105/comments","events_url":"https://api.github.com/repos/sensiolabs-de/deprecation-detector/issues/105/events","html_url":"https://github.com/sensiolabs-de/deprecation-detector/issues/105","id":132669765,"number":105,"title":"Checks against your own code","user":{"login":"theofidry","id":5175937,"avatar_url":"https://avatars.githubusercontent.com/u/5175937?v=3","gravatar_id":"","url":"https://api.github.com/users/theofidry","html_url":"https://github.com/theofidry","followers_url":"https://api.github.com/users/theofidry/followers","following_url":"https://api.github.com/users/theofidry/following{/other_user}","gists_url":"https://api.github.com/users/theofidry/gists{/gist_id}","starred_url":"https://api.github.com/users/theofidry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theofidry/subscriptions","organizations_url":"https://api.github.com/users/theofidry/orgs","repos_url":"https://api.github.com/users/theofidry/repos","events_url":"https://api.github.com/users/theofidry/events{/privacy}","received_events_url":"https://api.github.com/users/theofidry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-10T11:08:00Z","updated_at":"2016-02-10T11:08:00Z","closed_at":null,"body":"If I understand right right now running `check script ruleset`, it check any usage of deprecated call inside script based on the `@deprecated` annotations defined by the ruleset (usually `vendor` or `composer.lock`).\r\n\r\nHowever you might want to use this tool four handling migration in your own app, ex:\r\n\r\n```php\r\n@deprecated Use NewModel instead\r\nclass LegacyModel {...}\r\n\r\nclass NewModel {...}\r\n```\r\n\r\nThis is doable by running `deprecation-detector src src` for example, but I find it weird. Plus that means in this use case, you actually have to run two times the command:\r\n\r\n```php\r\n$ deprecation-detector src composer.lock\r\n$ deprecation-detector src src\r\n```\r\n\r\nIt would make more sense IMO to include `src` (or rather the directory being checked) to the ruleset by default."}}