[ruff] Indented form feeds (RUF054) (#16049)

## Summary

Resolves #12321.

The physical-line-based `RUF054` checks for form feed characters that
are preceded by only tabs and spaces, but not any other characters,
including form feeds.

## Test Plan

`cargo nextest run` and `cargo insta test`.
This commit is contained in:
InSync 2025-02-10 07:23:48 +07:00 committed by GitHub
parent 9ae98d4a09
commit f367aa8367
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 157 additions and 2 deletions

View file

@ -97,6 +97,7 @@ KNOWN_FORMATTING_VIOLATIONS = [
KNOWN_PARSE_ERRORS = [
"blank-line-with-whitespace",
"indentation-with-invalid-multiple-comment",
"indented-form-feed",
"missing-newline-at-end-of-file",
"mixed-spaces-and-tabs",
"no-indented-block",