{"action":"created","issue":{"url":"https://api.github.com/repos/testdouble/standard/issues/64","repository_url":"https://api.github.com/repos/testdouble/standard","labels_url":"https://api.github.com/repos/testdouble/standard/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/testdouble/standard/issues/64/comments","events_url":"https://api.github.com/repos/testdouble/standard/issues/64/events","html_url":"https://github.com/testdouble/standard/issues/64","id":395414040,"node_id":"MDU6SXNzdWUzOTU0MTQwNDA=","number":64,"title":"Passing bare directories to check doesn't work","user":{"login":"cschneid","id":6119,"node_id":"MDQ6VXNlcjYxMTk=","avatar_url":"https://avatars2.githubusercontent.com/u/6119?v=4","gravatar_id":"","url":"https://api.github.com/users/cschneid","html_url":"https://github.com/cschneid","followers_url":"https://api.github.com/users/cschneid/followers","following_url":"https://api.github.com/users/cschneid/following{/other_user}","gists_url":"https://api.github.com/users/cschneid/gists{/gist_id}","starred_url":"https://api.github.com/users/cschneid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cschneid/subscriptions","organizations_url":"https://api.github.com/users/cschneid/orgs","repos_url":"https://api.github.com/users/cschneid/repos","events_url":"https://api.github.com/users/cschneid/events{/privacy}","received_events_url":"https://api.github.com/users/cschneid/received_events","type":"User","site_admin":false},"labels":[{"id":1119403502,"node_id":"MDU6TGFiZWwxMTE5NDAzNTAy","url":"https://api.github.com/repos/testdouble/standard/labels/enhancement%20%E2%9C%A8","name":"enhancement ✨","color":"a2eeef","default":false},{"id":1178400549,"node_id":"MDU6TGFiZWwxMTc4NDAwNTQ5","url":"https://api.github.com/repos/testdouble/standard/labels/rubocop%20bug%20%F0%9F%9A%A8","name":"rubocop bug 🚨","color":"bc0b66","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-01-02T23:27:47Z","updated_at":"2019-01-02T23:34:46Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Directory full of ruby files:\r\n\r\n```\r\n› ls -l lib/*.rb | wc -l\r\n      28\r\n```\r\n\r\n### Run standard on the whole dir:\r\n```\r\n› standardrb lib\r\n```\r\n\r\nNo output, not even the post-check notice. `--format json` says 0 files checked.\r\n\r\n\r\n### Run on a specific file in that dir:\r\n\r\nThis works fine - shows I have things to fix.\r\n\r\n```\r\n› standardrb lib/histogram.rb\r\nstandard: Use Ruby Standard Style (https://github.com/testdouble/standard)\r\nstandard: Run `standardrb --fix` to automatically fix some problems.\r\n  lib/histogram.rb:45:9: Layout/DotPosition: Place the . on the previous line, together with the method call receiver.\r\n  lib/histogram.rb:57:23: Layout/SpaceAfterComma: Space missing after comma.\r\n  lib/histogram.rb:58:19: Layout/SpaceBeforeBlockBraces: Space missing to the left of {.\r\n  lib/histogram.rb:60:1: Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.\r\n\r\nNotice: Disagree with these rules? While StandardRB is pre-1.0.0, feel free to submit suggestions to:\r\n  https://github.com/testdouble/standard/issues/new\r\n```\r\n\r\n### Running with a glob works\r\n\r\nA more explicit glob pattern appears to work:\r\n\r\n```\r\nstandardrb \"./lib/**/*.rb\"\r\n\r\n# ... lots of correct output\r\n```\r\n\r\n### Versions:\r\n\r\n```\r\n› standardrb --version\r\n0.0.24\r\n\r\n› ruby --version\r\nruby 2.4.5p335 (2018-10-18 revision 65137) [x86_64-darwin18]\r\n```"},"comment":{"url":"https://api.github.com/repos/testdouble/standard/issues/comments/451018345","html_url":"https://github.com/testdouble/standard/issues/64#issuecomment-451018345","issue_url":"https://api.github.com/repos/testdouble/standard/issues/64","id":451018345,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTAxODM0NQ==","user":{"login":"searls","id":79303,"node_id":"MDQ6VXNlcjc5MzAz","avatar_url":"https://avatars1.githubusercontent.com/u/79303?v=4","gravatar_id":"","url":"https://api.github.com/users/searls","html_url":"https://github.com/searls","followers_url":"https://api.github.com/users/searls/followers","following_url":"https://api.github.com/users/searls/following{/other_user}","gists_url":"https://api.github.com/users/searls/gists{/gist_id}","starred_url":"https://api.github.com/users/searls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/searls/subscriptions","organizations_url":"https://api.github.com/users/searls/orgs","repos_url":"https://api.github.com/users/searls/repos","events_url":"https://api.github.com/users/searls/events{/privacy}","received_events_url":"https://api.github.com/users/searls/received_events","type":"User","site_admin":false},"created_at":"2019-01-02T23:34:46Z","updated_at":"2019-01-02T23:34:46Z","author_association":"MEMBER","body":"Great point! FWIW, this matches Rubocop's behavior, but it sure seems like we ought to be able to solve this ourselves by massaging the input a bit. \r\n\r\nIt'll probably involve changing what we pass in here: https://github.com/testdouble/standard/blob/master/lib/standard/merges_settings.rb#L10"}}
{"actor":{"display_login":"searls"}}