{"action":"opened","issue":{"url":"https://api.github.com/repos/mgechev/codelyzer/issues/41","repository_url":"https://api.github.com/repos/mgechev/codelyzer","labels_url":"https://api.github.com/repos/mgechev/codelyzer/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/mgechev/codelyzer/issues/41/comments","events_url":"https://api.github.com/repos/mgechev/codelyzer/issues/41/events","html_url":"https://github.com/mgechev/codelyzer/issues/41","id":155185565,"number":41,"title":"Forbidden Imports","user":{"login":"nerumo","id":8597645,"avatar_url":"https://avatars.githubusercontent.com/u/8597645?v=3","gravatar_id":"","url":"https://api.github.com/users/nerumo","html_url":"https://github.com/nerumo","followers_url":"https://api.github.com/users/nerumo/followers","following_url":"https://api.github.com/users/nerumo/following{/other_user}","gists_url":"https://api.github.com/users/nerumo/gists{/gist_id}","starred_url":"https://api.github.com/users/nerumo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nerumo/subscriptions","organizations_url":"https://api.github.com/users/nerumo/orgs","repos_url":"https://api.github.com/users/nerumo/repos","events_url":"https://api.github.com/users/nerumo/events{/privacy}","received_events_url":"https://api.github.com/users/nerumo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-17T06:26:31Z","updated_at":"2016-05-17T06:26:31Z","closed_at":null,"body":"I'd like to forbid imports to a certain file to avoid that too much code is loaded even if not all is used. As an example I want to import rxjs. I do that through \r\n\r\nimport {Observable} from 'rxjs/Rx';\r\n\r\nand wow, I have all the operators available and no further import statement has to be made. But this loads all the 100 operators event if I just need the 'map' operator. What I should import is only\r\n\r\nimport {Observable} from 'rxjs/Observable';\r\nimport 'rxjs/add/observable/map';\r\n\r\nI'd like to tell codelyzer that 'rxjs/Rx' is a forbidden import."}}