Allow disabling documentation generation for some gems
Some gems such as parser or rubocop are known to slowing down Tapioca RBI generation.
While we are thinking about an alternative way to generate the documentation for all gems, it would be nice if Tapioca offered a mechanism to disable documentation generation on a per-gem basis.
Maybe something like this in the configuration:
gem:
doc: true
doc-exclude:
- parser
- rubocop
Bumping this, it would be great to have this available. Would it be reasonably low effort to implement?
@marknuzz It'd be something like this
- Create an array CLI option called
doc-excludesimilar to exclude. - That information gets passed to the pipeline which triggers the Yarddoc generation 1,2.
- Notice that
Pipelinehas access to thegemthat is being generated, so before creatingGem::Listeners::YardDocwe should be able to check ifgem.nameis in thedoc-excludearray. - Add a test in pipeline spec with a similar setup to this. We could also have a cli test similar to this but I'm not sure it's worth it.
To test manually during development you can make edits and run bin/tapioca gem parser in this repo after changing sorbet/tapioca/config.yml. Or in another repo you can point your tapioca to your local clone in the Gemfile.