manual/cops_sorbet.md in rubocop-sorbet-0.7.4 vs manual/cops_sorbet.md in rubocop-sorbet-0.7.5
- old
+ new
@@ -182,12 +182,10 @@
--- | --- | --- | --- | ---
Enabled | Yes | Yes | 0.7.0 | -
Checks for blank lines after signatures.
-It also suggests an autocorrect
-
### Examples
```ruby
# bad
sig { void }
@@ -708,20 +706,31 @@
Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Enabled | Yes | Yes | 0.3.0 | -
-No documentation
+Checks for the correct order of sig builder methods:
+- abstract, override, or overridable
+- type_parameters
+- params
+- returns, or void
+- soft, checked, or on_failure
-## Sorbet/SignatureCop
+ # bad
+ sig { returns(Integer).params(x: Integer) }
-Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
---- | --- | --- | --- | ---
-Enabled | Yes | No | - | -
+ # good
+ sig { params(x: Integer).returns(Integer) }
-Abstract cop specific to Sorbet signatures
+### Examples
-You can subclass it to use the `on_signature` trigger and the `signature?` node matcher.
+```ruby
+# bad
+sig { void.abstract }
+
+# good
+sig { abstract.void }
+```
## Sorbet/SingleLineRbiClassModuleDefinitions
Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---