{"action":"created","issue":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/981","repository_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer","labels_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/981/labels{/name}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/981/comments","events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/981/events","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/981","id":151474303,"number":981,"title":"Exclude files relative to the root of the project","user":{"login":"glen-84","id":261509,"avatar_url":"https://avatars.githubusercontent.com/u/261509?v=3","gravatar_id":"","url":"https://api.github.com/users/glen-84","html_url":"https://github.com/glen-84","followers_url":"https://api.github.com/users/glen-84/followers","following_url":"https://api.github.com/users/glen-84/following{/other_user}","gists_url":"https://api.github.com/users/glen-84/gists{/gist_id}","starred_url":"https://api.github.com/users/glen-84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glen-84/subscriptions","organizations_url":"https://api.github.com/users/glen-84/orgs","repos_url":"https://api.github.com/users/glen-84/repos","events_url":"https://api.github.com/users/glen-84/events{/privacy}","received_events_url":"https://api.github.com/users/glen-84/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/labels/Question","name":"Question","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-27T19:46:04Z","updated_at":"2016-05-06T06:57:08Z","closed_at":null,"body":"I want to be able to exclude everything under the `/data` folder. There appear to be two options here, neither of which solve the problem:\r\n\r\n1. `<exclude-pattern>*/data/*</exclude-pattern>` – this will exclude files under *any* `data` folder, not just the one in the root of the project.\r\n2. `<exclude-pattern type=\"relative\">^/data/*</exclude-pattern>` – this will exclude files under the `data` folder, but it won't work if you run phpcs for a specific file (which is how I assume most editor extensions work).\r\n\r\nIs it somehow possible to have an exclusion of `/data/*` that works relative to the root of the project?"},"comment":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/comments/217363274","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/981#issuecomment-217363274","issue_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/981","id":217363274,"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":"2016-05-06T06:57:08Z","updated_at":"2016-05-06T06:57:08Z","body":"If standard is included through composer and folder structure is like this, then this won't be much helpful:\r\n\r\n```\r\n/path/to/project\r\n/path/to/project/vendor/aik099/coding-standard/CodingStandard/ruleset.xml\r\n```\r\n"}}