{"action":"created","issue":{"url":"https://api.github.com/repos/mpeterv/luacheck/issues/59","repository_url":"https://api.github.com/repos/mpeterv/luacheck","labels_url":"https://api.github.com/repos/mpeterv/luacheck/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/mpeterv/luacheck/issues/59/comments","events_url":"https://api.github.com/repos/mpeterv/luacheck/issues/59/events","html_url":"https://github.com/mpeterv/luacheck/issues/59","id":148956448,"number":59,"title":"Run luacheck on files in subdirectories.","user":{"login":"siffiejoe","id":930147,"avatar_url":"https://avatars.githubusercontent.com/u/930147?v=3","gravatar_id":"","url":"https://api.github.com/users/siffiejoe","html_url":"https://github.com/siffiejoe","followers_url":"https://api.github.com/users/siffiejoe/followers","following_url":"https://api.github.com/users/siffiejoe/following{/other_user}","gists_url":"https://api.github.com/users/siffiejoe/gists{/gist_id}","starred_url":"https://api.github.com/users/siffiejoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siffiejoe/subscriptions","organizations_url":"https://api.github.com/users/siffiejoe/orgs","repos_url":"https://api.github.com/users/siffiejoe/repos","events_url":"https://api.github.com/users/siffiejoe/events{/privacy}","received_events_url":"https://api.github.com/users/siffiejoe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mpeterv/luacheck/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-17T14:21:59Z","updated_at":"2016-04-17T21:46:58Z","closed_at":"2016-04-17T15:12:13Z","body":"Running luacheck on a Lua file in a subdirectory fails with an I/O error:\r\n```\r\nsiffiejoe@Merkur:~/src/lua/u [SVN*] :) luacheck u/lenses.lua \r\nChecking lenses.lua                               I/O error\r\n\r\n    lenses.lua: couldn't read: No such file or directory\r\n\r\nTotal: 0 warnings / 0 errors in 0 files, couldn't check 1 file\r\nsiffiejoe@Merkur:~/src/lua/u [SVN*] :( cd u\r\nsiffiejoe@Merkur:~/src/lua/u/u [SVN*] :) luacheck lenses.lua\r\nChecking lenses.lua                               OK\r\n\r\nTotal: 0 warnings / 0 errors in 1 file\r\nsiffiejoe@Merkur:~/src/lua/u/u [SVN*] :) \r\n```\r\n\r\nGoing into the subdirectory and running from there works.\r\n\r\n\r\nAlso, the scm rockspec on LuaRocks.org seems to be outdated:\r\n```\r\nsiffiejoe@Merkur:~/src/lua/u [SVN*] :) LANGUAGE=en_US.UTF8 luarocks-5.2 install --server=http://luarocks.org/dev luacheck\r\nWarning: falling back to curl - install luasec to get native HTTPS support\r\nInstalling http://luarocks.org/dev/luacheck-scm-1.rockspec...\r\nUsing http://luarocks.org/dev/luacheck-scm-1.rockspec... switching to 'build' mode\r\nCloning into 'luacheck'...\r\nremote: Counting objects: 128, done.\r\nremote: Compressing objects: 100% (94/94), done.\r\nremote: Total 128 (delta 1), reused 62 (delta 0), pack-reused 0\r\nReceiving objects: 100% (128/128), 113.85 KiB | 0 bytes/s, done.\r\nResolving deltas: 100% (1/1), done.\r\nChecking connectivity... done.\r\n\r\nError: Directory 'doc' not found\r\nsiffiejoe@Merkur:~/src/lua/u [SVN*] :( \r\n```\r\n\r\nThe one on GitHub works fine."},"comment":{"url":"https://api.github.com/repos/mpeterv/luacheck/issues/comments/211120844","html_url":"https://github.com/mpeterv/luacheck/issues/59#issuecomment-211120844","issue_url":"https://api.github.com/repos/mpeterv/luacheck/issues/59","id":211120844,"user":{"login":"mpeterv","id":6032370,"avatar_url":"https://avatars.githubusercontent.com/u/6032370?v=3","gravatar_id":"","url":"https://api.github.com/users/mpeterv","html_url":"https://github.com/mpeterv","followers_url":"https://api.github.com/users/mpeterv/followers","following_url":"https://api.github.com/users/mpeterv/following{/other_user}","gists_url":"https://api.github.com/users/mpeterv/gists{/gist_id}","starred_url":"https://api.github.com/users/mpeterv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpeterv/subscriptions","organizations_url":"https://api.github.com/users/mpeterv/orgs","repos_url":"https://api.github.com/users/mpeterv/repos","events_url":"https://api.github.com/users/mpeterv/events{/privacy}","received_events_url":"https://api.github.com/users/mpeterv/received_events","type":"User","site_admin":false},"created_at":"2016-04-17T21:46:58Z","updated_at":"2016-04-17T21:46:58Z","body":"0.15.0 released."}}