{"action":"created","issue":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/678","labels_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/678/labels{/name}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/678/comments","events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/678/events","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/678","id":99960396,"number":678,"title":"Report only lines changed from diff","user":{"login":"sunnz","id":1378551,"avatar_url":"https://avatars.githubusercontent.com/u/1378551?v=3","gravatar_id":"","url":"https://api.github.com/users/sunnz","html_url":"https://github.com/sunnz","followers_url":"https://api.github.com/users/sunnz/followers","following_url":"https://api.github.com/users/sunnz/following{/other_user}","gists_url":"https://api.github.com/users/sunnz/gists{/gist_id}","starred_url":"https://api.github.com/users/sunnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunnz/subscriptions","organizations_url":"https://api.github.com/users/sunnz/orgs","repos_url":"https://api.github.com/users/sunnz/repos","events_url":"https://api.github.com/users/sunnz/events{/privacy}","received_events_url":"https://api.github.com/users/sunnz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-10T03:09:21Z","updated_at":"2015-08-10T10:24:30Z","closed_at":null,"body":"Is it possible use codesniffer against say git diff, so it only checks new code, like the `--diff` option in pep8:\r\n\r\nhttps://pep8.readthedocs.org/en/latest/intro.html#example-usage-and-output"},"comment":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/comments/129398161","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/678#issuecomment-129398161","issue_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/678","id":129398161,"user":{"login":"aik099","id":1277526,"avatar_url":"https://avatars.githubusercontent.com/u/1277526?v=3","gravatar_id":"","url":"https://api.github.com/users/aik099","html_url":"https://github.com/aik099","followers_url":"https://api.github.com/users/aik099/followers","following_url":"https://api.github.com/users/aik099/following{/other_user}","gists_url":"https://api.github.com/users/aik099/gists{/gist_id}","starred_url":"https://api.github.com/users/aik099/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aik099/subscriptions","organizations_url":"https://api.github.com/users/aik099/orgs","repos_url":"https://api.github.com/users/aik099/repos","events_url":"https://api.github.com/users/aik099/events{/privacy}","received_events_url":"https://api.github.com/users/aik099/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T10:24:30Z","updated_at":"2015-08-10T10:24:30Z","body":"You can use http://jenkins-php.org/ Jenkins template for PHP projects. It explains how to configure that. It uses Ant internally, but I've used Phing instead of it because their task file format is compatible."}}