{"action":"created","issue":{"url":"https://api.github.com/repos/stryker-mutator/stryker-net/issues/208","repository_url":"https://api.github.com/repos/stryker-mutator/stryker-net","labels_url":"https://api.github.com/repos/stryker-mutator/stryker-net/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/stryker-mutator/stryker-net/issues/208/comments","events_url":"https://api.github.com/repos/stryker-mutator/stryker-net/issues/208/events","html_url":"https://github.com/stryker-mutator/stryker-net/issues/208","id":374785625,"node_id":"MDU6SXNzdWUzNzQ3ODU2MjU=","number":208,"title":"Block mutator","user":{"login":"richardwerkman","id":14224500,"node_id":"MDQ6VXNlcjE0MjI0NTAw","avatar_url":"https://avatars3.githubusercontent.com/u/14224500?v=4","gravatar_id":"","url":"https://api.github.com/users/richardwerkman","html_url":"https://github.com/richardwerkman","followers_url":"https://api.github.com/users/richardwerkman/followers","following_url":"https://api.github.com/users/richardwerkman/following{/other_user}","gists_url":"https://api.github.com/users/richardwerkman/gists{/gist_id}","starred_url":"https://api.github.com/users/richardwerkman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardwerkman/subscriptions","organizations_url":"https://api.github.com/users/richardwerkman/orgs","repos_url":"https://api.github.com/users/richardwerkman/repos","events_url":"https://api.github.com/users/richardwerkman/events{/privacy}","received_events_url":"https://api.github.com/users/richardwerkman/received_events","type":"User","site_admin":false},"labels":[{"id":956089695,"node_id":"MDU6TGFiZWw5NTYwODk2OTU=","url":"https://api.github.com/repos/stryker-mutator/stryker-net/labels/enhancement","name":"enhancement","color":"a2eeef","default":true},{"id":956089696,"node_id":"MDU6TGFiZWw5NTYwODk2OTY=","url":"https://api.github.com/repos/stryker-mutator/stryker-net/labels/help%20wanted","name":"help wanted","color":"008672","default":true},{"id":970367843,"node_id":"MDU6TGFiZWw5NzAzNjc4NDM=","url":"https://api.github.com/repos/stryker-mutator/stryker-net/labels/to%20do","name":"to do","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-28T18:51:01Z","updated_at":"2018-12-02T21:34:52Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Block statements should be mutated into empty blocks. \r\n\r\nFor example: \r\n``` csharp\r\nif (true)\r\n{\r\n    i = 1 + 1;\r\n    return i;\r\n}\r\n```\r\nshould become:\r\n``` csharp\r\nif (true)\r\n{}\r\n```\r\nThis is a tricky issue, since these mutations can break the program. For example:\r\n``` csharp\r\npublic int Test()\r\n{ }\r\n```\r\nWill not compile since it misses it's return statement. Normally Stryker.NET will handle compile errors by rollbacking the mutation that caused the compile error. But in this case Stryker will not be able to know what mutation caused the error. We will have to find a sollution for this."},"comment":{"url":"https://api.github.com/repos/stryker-mutator/stryker-net/issues/comments/443544293","html_url":"https://github.com/stryker-mutator/stryker-net/issues/208#issuecomment-443544293","issue_url":"https://api.github.com/repos/stryker-mutator/stryker-net/issues/208","id":443544293,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzU0NDI5Mw==","user":{"login":"perdignus","id":16068001,"node_id":"MDQ6VXNlcjE2MDY4MDAx","avatar_url":"https://avatars3.githubusercontent.com/u/16068001?v=4","gravatar_id":"","url":"https://api.github.com/users/perdignus","html_url":"https://github.com/perdignus","followers_url":"https://api.github.com/users/perdignus/followers","following_url":"https://api.github.com/users/perdignus/following{/other_user}","gists_url":"https://api.github.com/users/perdignus/gists{/gist_id}","starred_url":"https://api.github.com/users/perdignus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perdignus/subscriptions","organizations_url":"https://api.github.com/users/perdignus/orgs","repos_url":"https://api.github.com/users/perdignus/repos","events_url":"https://api.github.com/users/perdignus/events{/privacy}","received_events_url":"https://api.github.com/users/perdignus/received_events","type":"User","site_admin":false},"created_at":"2018-12-02T21:34:52Z","updated_at":"2018-12-02T21:34:52Z","author_association":"NONE","body":"I have made the needed functionality for this, which uses `return default(TYPE)`, where type is the required return type. For void it is an empty block.\r\nI won't make a pr just yet, because the code needs some cleaning and tests."}}
{"actor":{"display_login":"perdignus"}}