Skip to content

Tag reference

@phan-file-suppress

The @phan-file-suppress tag silences the listed issue types for the whole file it appears in, rather than just a single element or line.

Grammar

"@phan-file-suppress" <IssueName> [ "," <IssueName> ... ] [ <Description> ]

Examples

Silencing issues for the whole file.
/**
* @phan-file-suppress PhanUnreferencedUseNormal, PhanUnusedVariable
*/

Names by platform

phan
@phan-file-suppress

Parsing a @phan-file-suppress tag produces a PhanFileSuppressTag instance, carrying the listed $issues alongside the $name and optional $description every Tag already provides.

final class PhanFileSuppressTag extends IssueListTag {}

Defined by Phan’s Annotating Your Source Code wiki.