Last active
December 12, 2023 21:50
-
-
Save kirtangajjar/06a9ddd96e480a8300058330dddaa652 to your computer and use it in GitHub Desktop.
This file contains 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
╰─➤ phpcs --standard=PHPCompatibilityWP,WordPress-VIP-Go -s --report=source --ignore=third-party,includes/vendor,assets plugins/web-stories | |
PHP CODE SNIFFER VIOLATION SOURCE SUMMARY | |
------------------------------------------------------------------------------------------- | |
SOURCE COUNT | |
------------------------------------------------------------------------------------------- | |
WordPressVIPMinimum.Functions.RestrictedFunctions.flush_rewrite_rules_flush_rewrite_ 5 | |
Squiz.PHP.CommentedOutCode.Found 2 | |
------------------------------------------------------------------------------------------- | |
A TOTAL OF 7 SNIFF VIOLATIONS WERE FOUND IN 2 SOURCES | |
------------------------------------------------------------------------------------------- | |
Time: 18.87 secs; Memory: 28MB |
This file contains 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
╰─➤ phpcs --standard=PHPCompatibilityWP,WordPress-VIP-Go -s --ignore=third-party,includes/vendor,assets plugins/web-stories | |
FILE: /home/kirtan/Local Sites/outdoorlife/app/public/wp-content/plugins/web-stories/includes/Story_Archive.php | |
------------------------------------------------------------------------------------------------------------------------------- | |
FOUND 1 ERROR AFFECTING 1 LINE | |
------------------------------------------------------------------------------------------------------------------------------- | |
131 | ERROR | `flush_rewrite_rules` should not be used in any normal circumstances in the theme code. | |
| | (WordPressVIPMinimum.Functions.RestrictedFunctions.flush_rewrite_rules_flush_rewrite_rules) | |
------------------------------------------------------------------------------------------------------------------------------- | |
FILE: /home/kirtan/Local Sites/outdoorlife/app/public/wp-content/plugins/web-stories/includes/KSES.php | |
---------------------------------------------------------------------------------------------------------------- | |
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES | |
---------------------------------------------------------------------------------------------------------------- | |
489 | WARNING | This comment is 38% valid code; is this commented out code? | |
| | (Squiz.PHP.CommentedOutCode.Found) | |
492 | WARNING | This comment is 37% valid code; is this commented out code? | |
| | (Squiz.PHP.CommentedOutCode.Found) | |
---------------------------------------------------------------------------------------------------------------- | |
FILE: ...e/kirtan/Local Sites/outdoorlife/app/public/wp-content/plugins/web-stories/includes/Infrastructure/ServiceBasedPlugin.php | |
------------------------------------------------------------------------------------------------------------------------------- | |
FOUND 3 ERRORS AFFECTING 3 LINES | |
------------------------------------------------------------------------------------------------------------------------------- | |
141 | ERROR | `flush_rewrite_rules` should not be used in any normal circumstances in the theme code. | |
| | (WordPressVIPMinimum.Functions.RestrictedFunctions.flush_rewrite_rules_flush_rewrite_rules) | |
170 | ERROR | `flush_rewrite_rules` should not be used in any normal circumstances in the theme code. | |
| | (WordPressVIPMinimum.Functions.RestrictedFunctions.flush_rewrite_rules_flush_rewrite_rules) | |
204 | ERROR | `flush_rewrite_rules` should not be used in any normal circumstances in the theme code. | |
| | (WordPressVIPMinimum.Functions.RestrictedFunctions.flush_rewrite_rules_flush_rewrite_rules) | |
------------------------------------------------------------------------------------------------------------------------------- | |
FILE: /home/kirtan/Local Sites/outdoorlife/app/public/wp-content/plugins/web-stories/includes/Migrations/Rewrite_Flush.php | |
------------------------------------------------------------------------------------------------------------------------------- | |
FOUND 1 ERROR AFFECTING 1 LINE | |
------------------------------------------------------------------------------------------------------------------------------- | |
45 | ERROR | `flush_rewrite_rules` should not be used in any normal circumstances in the theme code. | |
| | (WordPressVIPMinimum.Functions.RestrictedFunctions.flush_rewrite_rules_flush_rewrite_rules) | |
------------------------------------------------------------------------------------------------------------------------------- | |
Time: 19.24 secs; Memory: 26MB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment