invalid-ignore-comment¶
Added in 1.0.0 · Related issues · View source
Fix is always available.
What it does¶
Checks for djangofmt: suppression comments that are malformed or misplaced.
Why is this bad?¶
Invalid suppression comments are ignored by djangofmt, and should either be fixed or removed to avoid confusion.
Example¶
Use instead:
Or delete the invalid suppression comment.
Fix safety¶
Removing a malformed or misplaced comment is marked as unsafe because it deletes the whole comment, so any trailing free text is deleted too.