Commit 2026-11-20 11:56 e237a521
View on Github →feat(Linter/Header): use StatefulLinter (#45853)
This PR makes the header linter into a stateful linter. The state keeps track of whether the syntax in question is at the start of the file. As a result, the linter doesn't need to do any parsing to figure out whether it is at the start.
This approach also lets us support set_option doc.verso true at the start of the file in a natural way.
Additionally, this PR removes withSetOptionIn from the linter. This means that it can no longer be turned off using set_option linter.style.header false in. Instead, one should use a global set_option linter.style.header false, which I think is much more intuitive.