Skip to content

Instantly share code, notes, and snippets.

@SmetDenis
Last active October 9, 2020 14:00
Show Gist options
  • Select an option

  • Save SmetDenis/c20a5f6e72b0efac5027 to your computer and use it in GitHub Desktop.

Select an option

Save SmetDenis/c20a5f6e72b0efac5027 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
// @SuppressWarnings(PHPMD.Superglobals)
// @SuppressWarnings(PHPMD.ExitExpression)
// @SuppressWarnings(PHPMD.ExcessiveMethodLength)
// @SuppressWarnings(PHPMD.NPathComplexity)
// @SuppressWarnings(PHPMD.CyclomaticComplexity)
// @SuppressWarnings(PHPMD.ExcessiveMethodLength)
// @SuppressWarnings(PHPMD.ExcessiveClassLength)
// @SuppressWarnings(PHPMD.DevelopmentCodeFragment)
// @SuppressWarnings(PHPMD.CouplingBetweenObjects)
// @SuppressWarnings(PHPMD)
/** @psalm-suppress MissingClosureParamType */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment