This repository has been archived by the owner on Dec 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Suppression comments for HHClientLinter don't mesh well with /**/ comments #407
Comments
The reason is that the Lines 42 to 45 in 01f1e17
To fix this issue, we can update the implementation of I think this is doable, it just needs us to move the existing AST based linters suppression implementation into |
This behavior is shared with line based linters; there's a few solutions.
|
This was referenced Nov 26, 2021
Something quite lazy and text based would probably do the trick. if supp on line
use supp
else if lastline contains "*/"
scan until "/*" or until start of file
else if last line contains "//"
scan while line contains "//"
else
no supp |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The numbered FIXME must be on the literal preceding line. Fixmes for other linters such as DontAwaitInALoopLinter can live anywhere in the preceding comment.
I am expecting this to be a wontfix. I just had to bring it up to be sure.
The text was updated successfully, but these errors were encountered: