Skip to content

Instantly share code, notes, and snippets.

@luanpcweb
Forked from SmetDenis/ignores.php
Created October 9, 2020 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luanpcweb/cb3450db2e1fe0988e9b498b615349ed to your computer and use it in GitHub Desktop.
Save luanpcweb/cb3450db2e1fe0988e9b498b615349ed to your computer and use it in GitHub Desktop.
Ignores for PHP inspections
<?php
// https://pear.php.net/manual/en/package.php.php-codesniffer.advanced-usage.php
// @codingStandardsIgnoreLine
// @codingStandardsIgnoreFile
// @codingStandardsIgnoreStart
// @codingStandardsIgnoreEnd
// https://phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.annotations.codeCoverageIgnore
// @codeCoverageIgnore
// @codeCoverageIgnoreStart
// @codeCoverageIgnoreEnd
// https://phpmd.org/documentation/suppress-warnings.html
// Other
// @SuppressWarnings(PHPMD.Superglobals)
// @SuppressWarnings(PHPMD.ExitExpression)
// @SuppressWarnings(PHPMD.DevelopmentCodeFragment)
// Length
// @SuppressWarnings(PHPMD.ExcessiveMethodLength)
// @SuppressWarnings(PHPMD.ExcessiveClassLength)
// @SuppressWarnings(PHPMD.TooManyMethods)
// @SuppressWarnings(PHPMD.TooManyPublicMethods)
// @SuppressWarnings(PHPMD.ExcessivePublicCount)
// Complex
// @SuppressWarnings(PHPMD.NPathComplexity)
// @SuppressWarnings(PHPMD.CyclomaticComplexity)
// @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
// @SuppressWarnings(PHPMD.CouplingBetweenObjects)
// @SuppressWarnings(PHPMD)
/** @psalm-suppress MissingClosureParamType */
/** @phan-suppress-next-line PhanUndeclaredStaticMethod */
/** @suppress PhanUndeclaredStaticMethod */
// @phpstan-ignore-line
// @phpstan-ignore-next-line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment