tapioca icon indicating copy to clipboard operation
tapioca copied to clipboard

The swiss army knife of RBI generation

Results 187 tapioca issues
Sort by recently updated
recently updated
newest added

### Motivation We often want to generate RBI for every model, worker, etc inside a namespace. Currently the only way to do that involves crawling ObjectSpace in a console or...

### Motivation When authoring a custom cop, one is likely to use the `def_node_matcher` or `def_node_search` macros, which generate methods. Sorbet will complain if the generated methods are used, as...

### Motivation If we change any aspect of gem generation in Tapioca, that gem's RBI can become stale even if it has not been upgraded. Currently, we only offer `gem...

enhancement

### Motivation On initially installing Tapioca I had no idea that it needed a migration in order to work from an existing Sorbet installation. This signals that need directly from...

cla-needed

### Motivation I wanted to extract a superclass from the current `Gem::Pipeline` but it proved a bit messier than what was required. This PR applies some cleaning to make it...

chore

### Motivation Currently Tapioca is unable to generate DSL RBIs for applications that are not Rails applications. This PR provides a way for the user to pass a custom loader...

feature

### Motivation This change is motivated by some work by team has been doing using `FrozenRecord`/`FrozenApplicationRecord` in Core. We noticed that Sorbet wasn't really giving us useful typing information for...

### Motivation One of Shopify's other gems, [measured-rails](https://github.com/Shopify/measured-rails), generates dynamic methods that obviously won't play nice with sorbet unless proper .rbi files are generated for. I could use this for...

Closes #570, #494 ### Motivation Tests that inherit from `ActionView::TestCase` have the respective helpers they are testing dynamically included when the test is instantiated. Basically, this is what Rails does:...

### Motivation [@ryanwilsonperkin caught a problem with the RBI output in Active Record relations generator](https://github.com/Shopify/tapioca/pull/236#discussion_r724279237), which reminded me that we should be checking RBI files for well-formedness automatically in every...

enhancement