@@ -632,6 +632,60 @@ Name | Default value | Configurable values
632632--- | --- | ---
633633Exclude | ` db/migrate/*.rb ` | Array
634634
635+ ## Sorbet/ForbidTAbsurd
636+
637+ Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
638+ --- | --- | --- | --- | ---
639+ Disabled | Yes | No | <<next >> | -
640+
641+ Disallows using ` T.absurd ` anywhere.
642+
643+ ### Examples
644+
645+ ``` ruby
646+ # bad
647+ T .absurd(foo)
648+
649+ # good
650+ x # : absurd
651+ ```
652+
653+ ## Sorbet/ForbidTBind
654+
655+ Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
656+ --- | --- | --- | --- | ---
657+ Disabled | Yes | No | <<next >> | -
658+
659+ Disallows using ` T.bind ` anywhere.
660+
661+ ### Examples
662+
663+ ``` ruby
664+ # bad
665+ T .bind(self , Integer )
666+
667+ # good
668+ # : self as Integer
669+ ```
670+
671+ ## Sorbet/ForbidTCast
672+
673+ Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
674+ --- | --- | --- | --- | ---
675+ Disabled | Yes | No | <<next >> | -
676+
677+ Disallows using ` T.cast ` anywhere.
678+
679+ ### Examples
680+
681+ ``` ruby
682+ # bad
683+ T .cast(foo, Integer )
684+
685+ # good
686+ foo # : as Integer
687+ ```
688+
635689## Sorbet/ForbidTEnum
636690
637691Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
@@ -659,6 +713,42 @@ class MyEnum
659713end
660714```
661715
716+ ## Sorbet/ForbidTLet
717+
718+ Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
719+ --- | --- | --- | --- | ---
720+ Disabled | Yes | No | <<next >> | -
721+
722+ Disallows using ` T.let ` anywhere.
723+
724+ ### Examples
725+
726+ ``` ruby
727+ # bad
728+ T .let(foo, Integer )
729+
730+ # good
731+ foo # : Integer
732+ ```
733+
734+ ## Sorbet/ForbidTMust
735+
736+ Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
737+ --- | --- | --- | --- | ---
738+ Disabled | Yes | No | <<next >> | -
739+
740+ Disallows using ` T.must ` anywhere.
741+
742+ ### Examples
743+
744+ ``` ruby
745+ # bad
746+ T .must(foo)
747+
748+ # good
749+ foo # : as !nil
750+ ```
751+
662752## Sorbet/ForbidTStruct
663753
664754Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
@@ -698,6 +788,24 @@ class MyStruct
698788end
699789```
700790
791+ ## Sorbet/ForbidTTypeAlias
792+
793+ Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
794+ --- | --- | --- | --- | ---
795+ Disabled | Yes | No | <<next >> | -
796+
797+ Disallows using ` T.type_alias ` anywhere.
798+
799+ ### Examples
800+
801+ ``` ruby
802+ # bad
803+ STRING_OR_INTEGER = T .type_alias { T .any(Integer , String ) }
804+
805+ # good
806+ # : type string_or_integer = Integer | String
807+ ```
808+
701809## Sorbet/ForbidTUnsafe
702810
703811Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
0 commit comments