Skip to content

Instantly share code, notes, and snippets.

@SmetDenis
Last active October 9, 2020 14:00
Show Gist options
  • Save SmetDenis/c20a5f6e72b0efac5027 to your computer and use it in GitHub Desktop.
Save SmetDenis/c20a5f6e72b0efac5027 to your computer and use it in GitHub Desktop.

Revisions

  1. SmetDenis revised this gist Aug 2, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ignores.php
    Original file line number Diff line number Diff line change
    @@ -35,6 +35,7 @@
    /** @psalm-suppress MissingClosureParamType */

    /** @phan-suppress-next-line PhanUndeclaredStaticMethod */
    /** @suppress PhanUndeclaredStaticMethod */

    // @phpstan-ignore-line
    // @phpstan-ignore-next-line
  2. SmetDenis revised this gist Jun 14, 2020. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions ignores.php
    Original file line number Diff line number Diff line change
    @@ -35,3 +35,6 @@
    /** @psalm-suppress MissingClosureParamType */

    /** @phan-suppress-next-line PhanUndeclaredStaticMethod */

    // @phpstan-ignore-line
    // @phpstan-ignore-next-line
  3. SmetDenis revised this gist Jun 13, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ignores.php
    Original file line number Diff line number Diff line change
    @@ -22,6 +22,7 @@
    // @SuppressWarnings(PHPMD.ExcessiveClassLength)
    // @SuppressWarnings(PHPMD.TooManyMethods)
    // @SuppressWarnings(PHPMD.TooManyPublicMethods)
    // @SuppressWarnings(PHPMD.ExcessivePublicCount)

    // Complex
    // @SuppressWarnings(PHPMD.NPathComplexity)
  4. SmetDenis revised this gist Jun 12, 2020. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions ignores.php
    Original file line number Diff line number Diff line change
    @@ -32,3 +32,5 @@
    // @SuppressWarnings(PHPMD)

    /** @psalm-suppress MissingClosureParamType */

    /** @phan-suppress-next-line PhanUndeclaredStaticMethod */
  5. SmetDenis revised this gist Jun 9, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ignores.php
    Original file line number Diff line number Diff line change
    @@ -21,6 +21,7 @@
    // @SuppressWarnings(PHPMD.ExcessiveMethodLength)
    // @SuppressWarnings(PHPMD.ExcessiveClassLength)
    // @SuppressWarnings(PHPMD.TooManyMethods)
    // @SuppressWarnings(PHPMD.TooManyPublicMethods)

    // Complex
    // @SuppressWarnings(PHPMD.NPathComplexity)
  6. SmetDenis revised this gist Jun 9, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ignores.php
    Original file line number Diff line number Diff line change
    @@ -20,6 +20,7 @@
    // Length
    // @SuppressWarnings(PHPMD.ExcessiveMethodLength)
    // @SuppressWarnings(PHPMD.ExcessiveClassLength)
    // @SuppressWarnings(PHPMD.TooManyMethods)

    // Complex
    // @SuppressWarnings(PHPMD.NPathComplexity)
  7. SmetDenis revised this gist Jun 9, 2020. 1 changed file with 8 additions and 3 deletions.
    11 changes: 8 additions & 3 deletions ignores.php
    Original file line number Diff line number Diff line change
    @@ -12,14 +12,19 @@
    // @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)

    // Complex
    // @SuppressWarnings(PHPMD.NPathComplexity)
    // @SuppressWarnings(PHPMD.CyclomaticComplexity)
    // @SuppressWarnings(PHPMD.ExcessiveMethodLength)
    // @SuppressWarnings(PHPMD.ExcessiveClassLength)
    // @SuppressWarnings(PHPMD.DevelopmentCodeFragment)
    // @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
    // @SuppressWarnings(PHPMD.CouplingBetweenObjects)

    // @SuppressWarnings(PHPMD)
  8. SmetDenis revised this gist May 24, 2020. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions ignores.php
    Original file line number Diff line number Diff line change
    @@ -23,3 +23,5 @@
    // @SuppressWarnings(PHPMD.CouplingBetweenObjects)

    // @SuppressWarnings(PHPMD)

    /** @psalm-suppress MissingClosureParamType */
  9. SmetDenis revised this gist Jan 6, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ignores.php
    Original file line number Diff line number Diff line change
    @@ -20,5 +20,6 @@
    // @SuppressWarnings(PHPMD.ExcessiveMethodLength)
    // @SuppressWarnings(PHPMD.ExcessiveClassLength)
    // @SuppressWarnings(PHPMD.DevelopmentCodeFragment)
    // @SuppressWarnings(PHPMD.CouplingBetweenObjects)

    // @SuppressWarnings(PHPMD)
  10. SmetDenis revised this gist Dec 30, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ignores.php
    Original file line number Diff line number Diff line change
    @@ -19,5 +19,6 @@
    // @SuppressWarnings(PHPMD.CyclomaticComplexity)
    // @SuppressWarnings(PHPMD.ExcessiveMethodLength)
    // @SuppressWarnings(PHPMD.ExcessiveClassLength)
    // @SuppressWarnings(PHPMD.DevelopmentCodeFragment)

    // @SuppressWarnings(PHPMD)
  11. SmetDenis revised this gist Feb 27, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions ignores.php
    Original file line number Diff line number Diff line change
    @@ -18,4 +18,6 @@
    // @SuppressWarnings(PHPMD.NPathComplexity)
    // @SuppressWarnings(PHPMD.CyclomaticComplexity)
    // @SuppressWarnings(PHPMD.ExcessiveMethodLength)
    // @SuppressWarnings(PHPMD.ExcessiveClassLength)

    // @SuppressWarnings(PHPMD)
  12. SmetDenis revised this gist Feb 16, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ignores.php
    Original file line number Diff line number Diff line change
    @@ -17,4 +17,5 @@
    // @SuppressWarnings(PHPMD.ExcessiveMethodLength)
    // @SuppressWarnings(PHPMD.NPathComplexity)
    // @SuppressWarnings(PHPMD.CyclomaticComplexity)
    // @SuppressWarnings(PHPMD.ExcessiveMethodLength)
    // @SuppressWarnings(PHPMD)
  13. SmetDenis revised this gist Dec 6, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ignores.php
    Original file line number Diff line number Diff line change
    @@ -14,6 +14,7 @@
    // https://phpmd.org/documentation/suppress-warnings.html
    // @SuppressWarnings(PHPMD.Superglobals)
    // @SuppressWarnings(PHPMD.ExitExpression)
    // @SuppressWarnings(PHPMD.ExcessiveMethodLength)
    // @SuppressWarnings(PHPMD.NPathComplexity)
    // @SuppressWarnings(PHPMD.CyclomaticComplexity)
    // @SuppressWarnings(PHPMD)
  14. SmetDenis revised this gist Jul 1, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ignores.php
    Original file line number Diff line number Diff line change
    @@ -15,4 +15,5 @@
    // @SuppressWarnings(PHPMD.Superglobals)
    // @SuppressWarnings(PHPMD.ExitExpression)
    // @SuppressWarnings(PHPMD.NPathComplexity)
    // @SuppressWarnings(PHPMD.CyclomaticComplexity)
    // @SuppressWarnings(PHPMD)
  15. SmetDenis revised this gist Jun 23, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ignores.php
    Original file line number Diff line number Diff line change
    @@ -15,3 +15,4 @@
    // @SuppressWarnings(PHPMD.Superglobals)
    // @SuppressWarnings(PHPMD.ExitExpression)
    // @SuppressWarnings(PHPMD.NPathComplexity)
    // @SuppressWarnings(PHPMD)
  16. SmetDenis revised this gist Mar 23, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ignores.php
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,7 @@
    <?php

    // https://pear.php.net/manual/en/package.php.php-codesniffer.advanced-usage.php
    // @codingStandardsIgnoreLine
    // @codingStandardsIgnoreFile
    // @codingStandardsIgnoreStart
    // @codingStandardsIgnoreEnd
  17. SmetDenis created this gist Mar 18, 2016.
    16 changes: 16 additions & 0 deletions ignores.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    <?php

    // https://pear.php.net/manual/en/package.php.php-codesniffer.advanced-usage.php
    // @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.NPathComplexity)