{"action":"opened","issue":{"url":"https://api.github.com/repos/phpro/grumphp/issues/100","repository_url":"https://api.github.com/repos/phpro/grumphp","labels_url":"https://api.github.com/repos/phpro/grumphp/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/phpro/grumphp/issues/100/comments","events_url":"https://api.github.com/repos/phpro/grumphp/issues/100/events","html_url":"https://github.com/phpro/grumphp/issues/100","id":131015633,"number":100,"title":"Fail when file is both in staging and not","user":{"login":"keradus","id":2716794,"avatar_url":"https://avatars.githubusercontent.com/u/2716794?v=3","gravatar_id":"","url":"https://api.github.com/users/keradus","html_url":"https://github.com/keradus","followers_url":"https://api.github.com/users/keradus/followers","following_url":"https://api.github.com/users/keradus/following{/other_user}","gists_url":"https://api.github.com/users/keradus/gists{/gist_id}","starred_url":"https://api.github.com/users/keradus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keradus/subscriptions","organizations_url":"https://api.github.com/users/keradus/orgs","repos_url":"https://api.github.com/users/keradus/repos","events_url":"https://api.github.com/users/keradus/events{/privacy}","received_events_url":"https://api.github.com/users/keradus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-03T12:53:21Z","updated_at":"2016-02-03T12:53:21Z","closed_at":null,"body":"Hi. First of all - nice tool ! ;)\r\n\r\nMaybe it's a matter of configuration, but please consider the following scenario:\r\n- configure tool to use PHP CS Fixer, init git hooks\r\n- create foo.php file with CS violations\r\n- `git add foo.php`, `git commit -m \"foo\"` -> fails due to PHP CS Fixer violations\r\n- fix violations without adding the file (so `git status` will show unfixed-files in stage and fixed one in non-stage)\r\n- `git commit -m \"foo\"` will proceed, even if the file we are commiting is not valid\r\n\r\nPlease, could you help?"}}