Last active
October 9, 2020 14:00
-
-
Save SmetDenis/c20a5f6e72b0efac5027 to your computer and use it in GitHub Desktop.
Ignores for PHP inspections
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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