{"action":"created","issue":{"url":"https://api.github.com/repos/sorbet/sorbet/issues/1104","repository_url":"https://api.github.com/repos/sorbet/sorbet","labels_url":"https://api.github.com/repos/sorbet/sorbet/issues/1104/labels{/name}","comments_url":"https://api.github.com/repos/sorbet/sorbet/issues/1104/comments","events_url":"https://api.github.com/repos/sorbet/sorbet/issues/1104/events","html_url":"https://github.com/sorbet/sorbet/issues/1104","id":461656694,"node_id":"MDU6SXNzdWU0NjE2NTY2OTQ=","number":1104,"title":"Support a :sorbet_ignore section in Gemfile","user":{"login":"elliottt","id":22708,"node_id":"MDQ6VXNlcjIyNzA4","avatar_url":"https://avatars2.githubusercontent.com/u/22708?v=4","gravatar_id":"","url":"https://api.github.com/users/elliottt","html_url":"https://github.com/elliottt","followers_url":"https://api.github.com/users/elliottt/followers","following_url":"https://api.github.com/users/elliottt/following{/other_user}","gists_url":"https://api.github.com/users/elliottt/gists{/gist_id}","starred_url":"https://api.github.com/users/elliottt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliottt/subscriptions","organizations_url":"https://api.github.com/users/elliottt/orgs","repos_url":"https://api.github.com/users/elliottt/repos","events_url":"https://api.github.com/users/elliottt/events{/privacy}","received_events_url":"https://api.github.com/users/elliottt/received_events","type":"User","site_admin":false},"labels":[{"id":976173799,"node_id":"MDU6TGFiZWw5NzYxNzM3OTk=","url":"https://api.github.com/repos/sorbet/sorbet/labels/enhancement","name":"enhancement","color":"00cc99","default":true},{"id":976173802,"node_id":"MDU6TGFiZWw5NzYxNzM4MDI=","url":"https://api.github.com/repos/sorbet/sorbet/labels/good%20first%20issue","name":"good first issue","color":"7057ff","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-06-27T17:30:01Z","updated_at":"2019-06-27T17:55:44Z","closed_at":null,"author_association":"COLLABORATOR","body":"<!--\r\n    Thanks for requesting a feature in Sorbet!\r\n\r\n    Know that we only have so much time to split between maintaining existing\r\n    features and developing new ones. From time to time, we close issues that we\r\n    don't think we'll be able to complete in the short to medium term, even if\r\n    we'd like to support it in the long term.\r\n-->\r\n\r\n### Problem\r\n\r\nSome dependencies listed in a project's `Gemfile` do not need to have rbis generated for them. For example, `rubocop` can be run during development, and not relied on as a library from within a project.\r\n\r\n### Proposed solution\r\n\r\nMake sorbet sensitive to a `:sorbet_ignore` `Gemfile` group. This would allow users to control which gems are provided to sorbet.\r\n\r\n```ruby\r\nsource 'https://rubygems.org'\r\ngem 'cantor'\r\ngem 'sorbet', :group => :development\r\ngem 'sorbet-runtime'\r\n\r\ngroup :sorbet_ignore do\r\n  gem 'rubocop'\r\nend\r\n```\r\n\r\n### Additional info\r\n\r\nThrough some experimentation, modifying the sites where we call `Bundler.load` to first run:\r\n```ruby\r\nBundler.settings.set_command_option :without, [:sorbet_ignore]\r\n```\r\ncauses gems in the `:sorbet_ignore` section to no longer show up in the spec set.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sorbet/sorbet/issues/comments/506448094","html_url":"https://github.com/sorbet/sorbet/issues/1104#issuecomment-506448094","issue_url":"https://api.github.com/repos/sorbet/sorbet/issues/1104","id":506448094,"node_id":"MDEyOklzc3VlQ29tbWVudDUwNjQ0ODA5NA==","user":{"login":"ptarjan","id":40143,"node_id":"MDQ6VXNlcjQwMTQz","avatar_url":"https://avatars0.githubusercontent.com/u/40143?v=4","gravatar_id":"","url":"https://api.github.com/users/ptarjan","html_url":"https://github.com/ptarjan","followers_url":"https://api.github.com/users/ptarjan/followers","following_url":"https://api.github.com/users/ptarjan/following{/other_user}","gists_url":"https://api.github.com/users/ptarjan/gists{/gist_id}","starred_url":"https://api.github.com/users/ptarjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptarjan/subscriptions","organizations_url":"https://api.github.com/users/ptarjan/orgs","repos_url":"https://api.github.com/users/ptarjan/repos","events_url":"https://api.github.com/users/ptarjan/events{/privacy}","received_events_url":"https://api.github.com/users/ptarjan/received_events","type":"User","site_admin":false},"created_at":"2019-06-27T17:55:44Z","updated_at":"2019-06-27T17:55:44Z","author_association":"COLLABORATOR","body":"+1 to using `require: false` for this"}}
{"actor":{"display_login":"ptarjan"}}