AaronC81 / sord

Convert YARD docs to Sorbet RBI and Ruby 3/Steep RBS files
https://sord.aaronc.cc
MIT License
299 stars 18 forks source link

Add sort_params step #108

Closed connorshea closed 4 years ago

connorshea commented 4 years ago

Sorbet requires that, e.g. required kwargs go before optional kwargs, so this fixes the method's parameter ordering when generating RBIs. Otherwise, invalid RBIs will be generated.

This is especially noticeable when running Sord on https://github.com/rmosolgo/graphql-ruby.

See also #107.