{"action":"created","issue":{"url":"https://api.github.com/repos/AtomLinter/linter-phpcs/issues/37","labels_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/issues/37/comments","events_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/issues/37/events","html_url":"https://github.com/AtomLinter/linter-phpcs/issues/37","id":94305876,"number":37,"title":"Using a custom standard causes a syntax error","user":{"login":"davidbarratt","id":868364,"avatar_url":"https://avatars.githubusercontent.com/u/868364?v=3","gravatar_id":"","url":"https://api.github.com/users/davidbarratt","html_url":"https://github.com/davidbarratt","followers_url":"https://api.github.com/users/davidbarratt/followers","following_url":"https://api.github.com/users/davidbarratt/following{/other_user}","gists_url":"https://api.github.com/users/davidbarratt/gists{/gist_id}","starred_url":"https://api.github.com/users/davidbarratt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidbarratt/subscriptions","organizations_url":"https://api.github.com/users/davidbarratt/orgs","repos_url":"https://api.github.com/users/davidbarratt/repos","events_url":"https://api.github.com/users/davidbarratt/events{/privacy}","received_events_url":"https://api.github.com/users/davidbarratt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-07-10T13:19:52Z","updated_at":"2015-07-10T15:07:41Z","closed_at":"2015-07-10T13:58:17Z","body":"Whenever i use the `Drupal` Standard:\r\nhttps://www.drupal.org/node/1419988\r\n\r\nI have phpcs configured correctly as it executes fine on the command line:\r\n```\r\n$ phpcs --standard=Drupal /Users/dbarratt/sites/awesomesite/docroot/profiles/standard/modules/custom/some_module/some_module.inc\r\n\r\nFILE: some_module.inc\r\n----------------------------------------------------------------------\r\nFOUND 61 ERRORS AND 1 WARNING AFFECTING 32 LINES\r\n----------------------------------------------------------------------\r\n  1 | ERROR   | [x] Missing file doc comment\r\n  1 | ERROR   | [ ] Parameter comment must end with a full stop\r\n  1 | ERROR   | [ ] Parameter comment must end with a full stop\r\n  6 | ERROR   | [x] Doc comment short description must end with a\r\n```\r\n\r\nHowever, when I set the standard to `Drupal` in this packages setting and I save the same file, I get this syntax error:\r\n```\r\nUnexpected token N\r\nSyntaxError: Unexpected token N\r\n  at Object.parse (native)\r\n  at /Users/dbarratt/.atom/packages/linter-phpcs/lib/main.coffee:69:25\r\n  at process._tickCallback (node.js:367:9)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/AtomLinter/linter-phpcs/issues/comments/120431611","html_url":"https://github.com/AtomLinter/linter-phpcs/issues/37#issuecomment-120431611","issue_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/issues/37","id":120431611,"user":{"login":"davidbarratt","id":868364,"avatar_url":"https://avatars.githubusercontent.com/u/868364?v=3","gravatar_id":"","url":"https://api.github.com/users/davidbarratt","html_url":"https://github.com/davidbarratt","followers_url":"https://api.github.com/users/davidbarratt/followers","following_url":"https://api.github.com/users/davidbarratt/following{/other_user}","gists_url":"https://api.github.com/users/davidbarratt/gists{/gist_id}","starred_url":"https://api.github.com/users/davidbarratt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidbarratt/subscriptions","organizations_url":"https://api.github.com/users/davidbarratt/orgs","repos_url":"https://api.github.com/users/davidbarratt/repos","events_url":"https://api.github.com/users/davidbarratt/events{/privacy}","received_events_url":"https://api.github.com/users/davidbarratt/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T15:07:41Z","updated_at":"2015-07-10T15:07:41Z","body":"@steelbrain,\r\n\r\nIf I change phpcs to be the one in my repo, I get this error:\r\n```\r\nPHPCS Response \r\nFatal error: Uncaught exception 'UnexpectedValueException' with message 'DirectoryIterator::__construct(vendor/drupal/coder/coder_sniffer): failed to open dir: No such file or directory' in /Users/dbarratt/sites/golfchannel/vendor/squizlabs/php_codesniffer/CodeSniffer.php:2153\r\nStack trace:\r\n#0 /Users/dbarratt/sites/somesite/vendor/squizlabs/php_codesniffer/CodeSniffer.php(2153): DirectoryIterator->__construct('vendor/drupal/c...')\r\n#1 /Users/dbarratt/sites/somesite/vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php(1032): PHP_CodeSniffer::getInstalledStandards()\r\n#2 /Users/dbarratt/sites/somesite/vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php(809): PHP_CodeSniffer_CLI->validateStandard(Array)\r\n#3 /Users/dbarratt/sites/somesite/vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php(95): PHP_CodeSniffer_CLI->process()\r\n#4 /Users/dbarratt/sites/somesite/vendor/squizlabs/php_codesniffer/scripts/phpcs(25): PHP_CodeSniffer_CLI->runphpcs()\r\n#5 {main}\r\n  thrown in /Users/dbarratt/sites/somesite/vendor/squizlabs/php_codesniffer/CodeSniffer.php on line 2153\r\n```"}}