manual/cops_sorbet.md in rubocop-sorbet-0.8.3 vs manual/cops_sorbet.md in rubocop-sorbet-0.8.4
- old
+ new
@@ -201,12 +201,14 @@
Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Enabled | Yes | Yes | 0.3.4 | -
-Checks that the Sorbet sigil comes as the first magic comment in the file.
+Checks that the Sorbet sigil comes as the first magic comment in the file, after the encoding comment if any.
The expected order for magic comments is: (en)?coding, typed, warn_indent then frozen_string_literal.
+
+The ordering is for consistency only, except for the encoding comment which must be first, if present.
For example, the following bad ordering:
```ruby
# frozen_string_literal: true