ctran / annotate_models

Annotate Rails classes with schema and routes info
Other
4.42k stars 620 forks source link

Allow annotating models and routes using sorbet's static checks #1029

Open wteuber opened 2 months ago

wteuber commented 2 months ago

This PR allows Annotate to recognize and keep Sorbet's static checks sigils.

Diff after running annotate for models and routes with Sorbet static check sigils:

Before

-# typed: true
 # frozen_string_literal: true

+# == Schema Information
+#
+# Table name: …
+#
+#  …
+#
+# typed: true
+

After

 # typed: true
 # frozen_string_literal: true

+# == Schema Information
+#
+# Table name: …
+#
+#  …
+#