{"action":"created","issue":{"url":"https://api.github.com/repos/stevegrunwell/wp-enforcer/issues/11","labels_url":"https://api.github.com/repos/stevegrunwell/wp-enforcer/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/stevegrunwell/wp-enforcer/issues/11/comments","events_url":"https://api.github.com/repos/stevegrunwell/wp-enforcer/issues/11/events","html_url":"https://github.com/stevegrunwell/wp-enforcer/issues/11","id":119578196,"number":11,"title":"Sample phpcs.xml / hooks should include explicit paths","user":{"login":"leewillis77","id":1097338,"avatar_url":"https://avatars.githubusercontent.com/u/1097338?v=3","gravatar_id":"","url":"https://api.github.com/users/leewillis77","html_url":"https://github.com/leewillis77","followers_url":"https://api.github.com/users/leewillis77/followers","following_url":"https://api.github.com/users/leewillis77/following{/other_user}","gists_url":"https://api.github.com/users/leewillis77/gists{/gist_id}","starred_url":"https://api.github.com/users/leewillis77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leewillis77/subscriptions","organizations_url":"https://api.github.com/users/leewillis77/orgs","repos_url":"https://api.github.com/users/leewillis77/repos","events_url":"https://api.github.com/users/leewillis77/events{/privacy}","received_events_url":"https://api.github.com/users/leewillis77/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stevegrunwell/wp-enforcer/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/stevegrunwell/wp-enforcer/milestones/3","html_url":"https://github.com/stevegrunwell/wp-enforcer/milestones/0.4.0","labels_url":"https://api.github.com/repos/stevegrunwell/wp-enforcer/milestones/3/labels","id":1434395,"number":3,"title":"0.4.0","description":"","creator":{"login":"stevegrunwell","id":233836,"avatar_url":"https://avatars.githubusercontent.com/u/233836?v=3","gravatar_id":"","url":"https://api.github.com/users/stevegrunwell","html_url":"https://github.com/stevegrunwell","followers_url":"https://api.github.com/users/stevegrunwell/followers","following_url":"https://api.github.com/users/stevegrunwell/following{/other_user}","gists_url":"https://api.github.com/users/stevegrunwell/gists{/gist_id}","starred_url":"https://api.github.com/users/stevegrunwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevegrunwell/subscriptions","organizations_url":"https://api.github.com/users/stevegrunwell/orgs","repos_url":"https://api.github.com/users/stevegrunwell/repos","events_url":"https://api.github.com/users/stevegrunwell/events{/privacy}","received_events_url":"https://api.github.com/users/stevegrunwell/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2015-11-30T03:27:15Z","updated_at":"2015-11-30T20:51:12Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-11-30T20:49:49Z","updated_at":"2015-11-30T21:13:46Z","closed_at":null,"body":"Context:\r\n* I have phpcs installed already (/usr/local/bin/phpcs).\r\n* I have (an older version) of the WP coding standards installed (Which happens not to have WordPress-Docs)\r\n\r\nWhen setting up with an out-of-the-box install, everything fails since the pre-commit hook is using my \"normal\" phpcs which knows nothing about the standards under vendor, specifically it knows nothing about WordPress-Docs\r\n\r\nI can see the arguments both ways about global installs vs locals, but I think if we're taking the time to download the dependencies then we should set things up to use them. This would allow different projects to use different versions if required.\r\n\r\nThis would mean prefixing phpcs in the pre-commit hook with an explicit patch, and I think also providing a path for the standards to use, not just the name. "},"comment":{"url":"https://api.github.com/repos/stevegrunwell/wp-enforcer/issues/comments/160763325","html_url":"https://github.com/stevegrunwell/wp-enforcer/issues/11#issuecomment-160763325","issue_url":"https://api.github.com/repos/stevegrunwell/wp-enforcer/issues/11","id":160763325,"user":{"login":"leewillis77","id":1097338,"avatar_url":"https://avatars.githubusercontent.com/u/1097338?v=3","gravatar_id":"","url":"https://api.github.com/users/leewillis77","html_url":"https://github.com/leewillis77","followers_url":"https://api.github.com/users/leewillis77/followers","following_url":"https://api.github.com/users/leewillis77/following{/other_user}","gists_url":"https://api.github.com/users/leewillis77/gists{/gist_id}","starred_url":"https://api.github.com/users/leewillis77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leewillis77/subscriptions","organizations_url":"https://api.github.com/users/leewillis77/orgs","repos_url":"https://api.github.com/users/leewillis77/repos","events_url":"https://api.github.com/users/leewillis77/events{/privacy}","received_events_url":"https://api.github.com/users/leewillis77/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T21:13:46Z","updated_at":"2015-11-30T21:13:46Z","body":"Yes, and I can confirm that changing that to include the specific path to the local phpcs resolves the issue with it being able to find the relevant standards. Happy to raise a PR?"}}