{"action":"created","issue":{"url":"https://api.github.com/repos/robotframework/robotframework/issues/1936","labels_url":"https://api.github.com/repos/robotframework/robotframework/issues/1936/labels{/name}","comments_url":"https://api.github.com/repos/robotframework/robotframework/issues/1936/comments","events_url":"https://api.github.com/repos/robotframework/robotframework/issues/1936/events","html_url":"https://github.com/robotframework/robotframework/issues/1936","id":59487701,"number":1936,"title":"Detect unused imports in dry-run mode","user":{"login":"pekkaklarck","id":114985,"avatar_url":"https://avatars.githubusercontent.com/u/114985?v=3","gravatar_id":"","url":"https://api.github.com/users/pekkaklarck","html_url":"https://github.com/pekkaklarck","followers_url":"https://api.github.com/users/pekkaklarck/followers","following_url":"https://api.github.com/users/pekkaklarck/following{/other_user}","gists_url":"https://api.github.com/users/pekkaklarck/gists{/gist_id}","starred_url":"https://api.github.com/users/pekkaklarck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pekkaklarck/subscriptions","organizations_url":"https://api.github.com/users/pekkaklarck/orgs","repos_url":"https://api.github.com/users/pekkaklarck/repos","events_url":"https://api.github.com/users/pekkaklarck/events{/privacy}","received_events_url":"https://api.github.com/users/pekkaklarck/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/robotframework/robotframework/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/robotframework/robotframework/labels/prio-high","name":"prio-high","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/robotframework/robotframework/milestones/16","html_url":"https://github.com/robotframework/robotframework/milestones/2.9","labels_url":"https://api.github.com/repos/robotframework/robotframework/milestones/16/labels","id":705012,"number":16,"title":"2.9","description":null,"creator":{"login":"spooning","id":1658993,"avatar_url":"https://avatars.githubusercontent.com/u/1658993?v=3","gravatar_id":"","url":"https://api.github.com/users/spooning","html_url":"https://github.com/spooning","followers_url":"https://api.github.com/users/spooning/followers","following_url":"https://api.github.com/users/spooning/following{/other_user}","gists_url":"https://api.github.com/users/spooning/gists{/gist_id}","starred_url":"https://api.github.com/users/spooning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spooning/subscriptions","organizations_url":"https://api.github.com/users/spooning/orgs","repos_url":"https://api.github.com/users/spooning/repos","events_url":"https://api.github.com/users/spooning/events{/privacy}","received_events_url":"https://api.github.com/users/spooning/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":71,"state":"open","created_at":"2014-06-29T21:43:00Z","updated_at":"2015-06-22T09:44:40Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-03-02T14:28:00Z","updated_at":"2015-06-22T09:56:55Z","closed_at":null,"body":"Detecting and reporting unused library and resource imports in dry-run mode would ease maintaining test data. Resource file should be considered used also if it contains any additional imports.\r\n\r\nUnfortunately we cannot really detect unused variable file imports because dry-run doesn't validate variables in general. Similarly resource files containing only variables will be incorrectly reported as unused. Need to think are these false positives so big a problem that it should be possible to somehow disable this functionality.\r\n\r\nThis functionality has been requested by Zhang Yu from NSN.\r\n"},"comment":{"url":"https://api.github.com/repos/robotframework/robotframework/issues/comments/114054898","html_url":"https://github.com/robotframework/robotframework/issues/1936#issuecomment-114054898","issue_url":"https://api.github.com/repos/robotframework/robotframework/issues/1936","id":114054898,"user":{"login":"pekkaklarck","id":114985,"avatar_url":"https://avatars.githubusercontent.com/u/114985?v=3","gravatar_id":"","url":"https://api.github.com/users/pekkaklarck","html_url":"https://github.com/pekkaklarck","followers_url":"https://api.github.com/users/pekkaklarck/followers","following_url":"https://api.github.com/users/pekkaklarck/following{/other_user}","gists_url":"https://api.github.com/users/pekkaklarck/gists{/gist_id}","starred_url":"https://api.github.com/users/pekkaklarck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pekkaklarck/subscriptions","organizations_url":"https://api.github.com/users/pekkaklarck/orgs","repos_url":"https://api.github.com/users/pekkaklarck/repos","events_url":"https://api.github.com/users/pekkaklarck/events{/privacy}","received_events_url":"https://api.github.com/users/pekkaklarck/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T09:56:55Z","updated_at":"2015-06-22T09:56:55Z","body":"We have decided to implement this using listeners. They already get a notification when a keyword is called, but they don't know what libraries or resource files are imported. Issue #2030 covers adding a new listener method to get that information and this issue is basically blocked until it has been implemented."}}