{"action":"created","issue":{"url":"https://api.github.com/repos/YorickPeterse/ruby-lint/issues/151","labels_url":"https://api.github.com/repos/YorickPeterse/ruby-lint/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/YorickPeterse/ruby-lint/issues/151/comments","events_url":"https://api.github.com/repos/YorickPeterse/ruby-lint/issues/151/events","html_url":"https://github.com/YorickPeterse/ruby-lint/issues/151","id":95925371,"number":151,"title":"Various method from Rake not recognized","user":{"login":"mtuchowski","id":8456055,"avatar_url":"https://avatars.githubusercontent.com/u/8456055?v=3","gravatar_id":"","url":"https://api.github.com/users/mtuchowski","html_url":"https://github.com/mtuchowski","followers_url":"https://api.github.com/users/mtuchowski/followers","following_url":"https://api.github.com/users/mtuchowski/following{/other_user}","gists_url":"https://api.github.com/users/mtuchowski/gists{/gist_id}","starred_url":"https://api.github.com/users/mtuchowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtuchowski/subscriptions","organizations_url":"https://api.github.com/users/mtuchowski/orgs","repos_url":"https://api.github.com/users/mtuchowski/repos","events_url":"https://api.github.com/users/mtuchowski/events{/privacy}","received_events_url":"https://api.github.com/users/mtuchowski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-19T15:45:12Z","updated_at":"2015-07-19T18:49:32Z","closed_at":null,"body":"I would like to use ruby-lint for checking my Rake tasks but it doesn't recognize things like `namespace`, `desc`, `task` etc.\r\n\r\nBasic `Rakefile` that fails the lint:\r\n\r\n```ruby\r\nnamespace :check do\r\n  desc 'Check requirements for application'\r\n  task :bundler do\r\n    sh 'bundler check'\r\n  end\r\nend\r\n\r\n```\r\n\r\nI looked for a way to contribute but it seams that you somehow generate definitions in `lib/ruby-lint/definitions/gems/`. Is there a documentation for that for people wanting to help?"},"comment":{"url":"https://api.github.com/repos/YorickPeterse/ruby-lint/issues/comments/122694928","html_url":"https://github.com/YorickPeterse/ruby-lint/issues/151#issuecomment-122694928","issue_url":"https://api.github.com/repos/YorickPeterse/ruby-lint/issues/151","id":122694928,"user":{"login":"mtuchowski","id":8456055,"avatar_url":"https://avatars.githubusercontent.com/u/8456055?v=3","gravatar_id":"","url":"https://api.github.com/users/mtuchowski","html_url":"https://github.com/mtuchowski","followers_url":"https://api.github.com/users/mtuchowski/followers","following_url":"https://api.github.com/users/mtuchowski/following{/other_user}","gists_url":"https://api.github.com/users/mtuchowski/gists{/gist_id}","starred_url":"https://api.github.com/users/mtuchowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtuchowski/subscriptions","organizations_url":"https://api.github.com/users/mtuchowski/orgs","repos_url":"https://api.github.com/users/mtuchowski/repos","events_url":"https://api.github.com/users/mtuchowski/events{/privacy}","received_events_url":"https://api.github.com/users/mtuchowski/received_events","type":"User","site_admin":false},"created_at":"2015-07-19T18:49:32Z","updated_at":"2015-07-19T18:49:32Z","body":"Even after generating definitions for Rake and rewriting the `Rakefile` to use `Rake` constant like below, ruby-lint still has problems. Close the issue, sadly we are getting nowhere here...\r\n\r\n```ruby\r\nnamespace :check do\r\n  desc 'Check requirements for application'\r\n  task :bundler do\r\n    sh 'bundler check'\r\n  end\r\nend\r\n\r\ntask :check do\r\n  Rake::Task['check:bundler].invoke\r\nend\r\n```\r\n\r\nPs. `ruby-lint` is not perfect but it's still a good utility to have. You have a star from me :smile:"}}