Skip to content

Instantly share code, notes, and snippets.

@Leland
Created October 18, 2016 15:29
Show Gist options
  • Save Leland/13958455550d8e9c234fc688d7e97c33 to your computer and use it in GitHub Desktop.
Save Leland/13958455550d8e9c234fc688d7e97c33 to your computer and use it in GitHub Desktop.
PHPCS Output on FoundationPress commit e2a487f
> foundationpress@2.7.1 phpcs /wp-content/themes/FoundationPress
> gulp phpcs
[11:27:18] Using gulpfile /wp-content/themes/FoundationPress/gulpfile.js
[11:27:18] Starting 'phpcs'...
[11:27:20] PHP Code Sniffer found a problem in /wp-content/themes/FoundationPress/archive.php
FILE: /wp-content/themes/FoundationPress/archive.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
35 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF
| | instead
| | (PSR2.ControlStructures.ElseIfDeclaration.NotAllowed)
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
Time: 136ms; Memory: 6Mb
[11:27:20] PHP Code Sniffer found a problem in /wp-content/themes/FoundationPress/footer.php
FILE: /wp-content/themes/FoundationPress/footer.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
24 | WARNING | Found: ==. Use strict comparisons (=== or !==).
| | (WordPress.PHP.StrictComparisons.LooseComparison)
----------------------------------------------------------------------
Time: 121ms; Memory: 5.75Mb
[11:27:21] PHP Code Sniffer found a problem in /wp-content/themes/FoundationPress/functions.php
FILE: /wp-content/themes/FoundationPress/functions.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
51 | WARNING | This comment is 63% valid code; is this commented out
| | code? (Squiz.PHP.CommentedOutCode.Found)
----------------------------------------------------------------------
Time: 129ms; Memory: 5.75Mb
[11:27:21] PHP Code Sniffer found a problem in /wp-content/themes/FoundationPress/header.php
FILE: /wp-content/themes/FoundationPress/header.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------
22 | WARNING | Found: ==. Use strict comparisons (=== or !==).
| | (WordPress.PHP.StrictComparisons.LooseComparison)
47 | WARNING | Found: ==. Use strict comparisons (=== or !==).
| | (WordPress.PHP.StrictComparisons.LooseComparison)
----------------------------------------------------------------------
Time: 127ms; Memory: 6Mb
[11:27:21] PHP Code Sniffer found a problem in /wp-content/themes/FoundationPress/index.php
FILE: /wp-content/themes/FoundationPress/index.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
33 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF
| | instead
| | (PSR2.ControlStructures.ElseIfDeclaration.NotAllowed)
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
Time: 135ms; Memory: 6Mb
[11:27:22] PHP Code Sniffer found a problem in /wp-content/themes/FoundationPress/search.php
FILE: /wp-content/themes/FoundationPress/search.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
31 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF
| | instead
| | (PSR2.ControlStructures.ElseIfDeclaration.NotAllowed)
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
Time: 130ms; Memory: 6Mb
[11:27:23] PHP Code Sniffer found a problem in /wp-content/themes/FoundationPress/library/custom-nav.php
FILE: /wp-content/themes/FoundationPress/library/custom-nav.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------
59 | WARNING | Found: ==. Use strict comparisons (=== or !==).
| | (WordPress.PHP.StrictComparisons.LooseComparison)
61 | WARNING | Found: ==. Use strict comparisons (=== or !==).
| | (WordPress.PHP.StrictComparisons.LooseComparison)
----------------------------------------------------------------------
Time: 134ms; Memory: 6.25Mb
[11:27:23] PHP Code Sniffer found a problem in /wp-content/themes/FoundationPress/library/foundation.php
FILE: /wp-content/themes/FoundationPress/library/foundation.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
----------------------------------------------------------------------
68 | WARNING | Found: ==. Use strict comparisons (=== or !==).
| | (WordPress.PHP.StrictComparisons.LooseComparison)
68 | WARNING | Found: ==. Use strict comparisons (=== or !==).
| | (WordPress.PHP.StrictComparisons.LooseComparison)
----------------------------------------------------------------------
Time: 171ms; Memory: 7.75Mb
[11:27:24] PHP Code Sniffer found a problem in /wp-content/themes/FoundationPress/library/navigation.php
FILE: /wp-content/themes/FoundationPress/library/navigation.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 11 WARNINGS AFFECTING 11 LINES
----------------------------------------------------------------------
113 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF
| | instead
| | (PSR2.ControlStructures.ElseIfDeclaration.NotAllowed)
118 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF
| | instead
| | (PSR2.ControlStructures.ElseIfDeclaration.NotAllowed)
150 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF
| | instead
| | (PSR2.ControlStructures.ElseIfDeclaration.NotAllowed)
180 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF
| | instead
| | (PSR2.ControlStructures.ElseIfDeclaration.NotAllowed)
192 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF
| | instead
| | (PSR2.ControlStructures.ElseIfDeclaration.NotAllowed)
197 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF
| | instead
| | (PSR2.ControlStructures.ElseIfDeclaration.NotAllowed)
207 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF
| | instead
| | (PSR2.ControlStructures.ElseIfDeclaration.NotAllowed)
212 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF
| | instead
| | (PSR2.ControlStructures.ElseIfDeclaration.NotAllowed)
221 | WARNING | [ ] This comment is 43% valid code; is this commented
| | out code? (Squiz.PHP.CommentedOutCode.Found)
226 | WARNING | [ ] This comment is 43% valid code; is this commented
| | out code? (Squiz.PHP.CommentedOutCode.Found)
229 | WARNING | [ ] This comment is 43% valid code; is this commented
| | out code? (Squiz.PHP.CommentedOutCode.Found)
----------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
Time: 205ms; Memory: 8.5Mb
[11:27:27] Finished 'phpcs' after 8.75 s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment