manual/cops_sorbet.md in rubocop-sorbet-0.6.9 vs manual/cops_sorbet.md in rubocop-sorbet-0.6.10
- old
+ new
@@ -272,21 +272,21 @@
## Sorbet/ForbidIncludeConstLiteral
Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
-Disabled | Yes | No | 0.2.0 | 0.5.0
+Disabled | Yes | Yes | 0.2.0 | 0.5.0
No documentation
## Sorbet/ForbidRBIOutsideOfAllowedPaths
Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Enabled | Yes | No | 0.6.1 | -
-This cop makes sure that RBI files are always located under the defined allowed paths
+This cop makes sure that RBI files are always located under the defined allowed paths.
Options:
* `AllowedPaths`: A list of the paths where RBI files are allowed (default: ["sorbet/rbi/**"])
@@ -337,9 +337,29 @@
# bad
T.unsafe(foo)
# good
foo
+```
+
+## Sorbet/ForbidTUntyped
+
+Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
+--- | --- | --- | --- | ---
+Disabled | Yes | No | 0.6.9 | 0.7.0
+
+This cop disallows using `T.untyped` anywhere.
+
+### Examples
+
+```ruby
+# bad
+sig { params(my_argument: T.untyped).void }
+def foo(my_argument); end
+
+# good
+sig { params(my_argument: String).void }
+def foo(my_argument); end
```
## Sorbet/ForbidUntypedStructProps
Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged