{"action":"opened","issue":{"url":"https://api.github.com/repos/skuzzle/restrict-imports-enforcer-rule/issues/18","repository_url":"https://api.github.com/repos/skuzzle/restrict-imports-enforcer-rule","labels_url":"https://api.github.com/repos/skuzzle/restrict-imports-enforcer-rule/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/skuzzle/restrict-imports-enforcer-rule/issues/18/comments","events_url":"https://api.github.com/repos/skuzzle/restrict-imports-enforcer-rule/issues/18/events","html_url":"https://github.com/skuzzle/restrict-imports-enforcer-rule/issues/18","id":348173817,"node_id":"MDU6SXNzdWUzNDgxNzM4MTc=","number":18,"title":"Block comments can lead to mismatches","user":{"login":"skuzzle","id":317179,"node_id":"MDQ6VXNlcjMxNzE3OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/317179?v=4","gravatar_id":"","url":"https://api.github.com/users/skuzzle","html_url":"https://github.com/skuzzle","followers_url":"https://api.github.com/users/skuzzle/followers","following_url":"https://api.github.com/users/skuzzle/following{/other_user}","gists_url":"https://api.github.com/users/skuzzle/gists{/gist_id}","starred_url":"https://api.github.com/users/skuzzle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skuzzle/subscriptions","organizations_url":"https://api.github.com/users/skuzzle/orgs","repos_url":"https://api.github.com/users/skuzzle/repos","events_url":"https://api.github.com/users/skuzzle/events{/privacy}","received_events_url":"https://api.github.com/users/skuzzle/received_events","type":"User","site_admin":false},"labels":[{"id":298537570,"node_id":"MDU6TGFiZWwyOTg1Mzc1NzA=","url":"https://api.github.com/repos/skuzzle/restrict-imports-enforcer-rule/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-07T05:37:17Z","updated_at":"2018-08-07T05:37:17Z","closed_at":null,"author_association":"OWNER","body":"Leading block comments will cause the class's own package not to be recognized so that it can not be matched against the base package.\r\n\r\nThen there is the possibilty of maximum strange comments like the following:\r\n```java\r\npackage de.skuzzle.test;\r\n/*Why\r\nwould you place a block comment like\r\nthis?*/import de.skuzzle.sample.Test;\r\n```\r\nIn this case the import line would not be recoognized as such.\r\n\r\nThe problem arises because we are currently reading the java file line by line.\r\nMaybe the best solution to this is to buld a real parser which only parses the beginning of the file until the last import statement. Parsing every Java file into a full syntax tree seems to be too unefficient."}}
{"actor":{"display_login":"skuzzle"}}