Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore HTML Processor until PHPCS bug is resolved.
See squizlabs/PHP_CodeSniffer#3685 PHP Code Sniffer mistakes the following code, thinking that it throws an exception even though the exception is caught in place. ```php try { throw new WP_HTML_Unsupported_Exception( 'The outside never sees me.' ); } catch ( WP_HTML_Unsupported_Excepted $e ) { return false; } ``` This patch adds an exclude for the HTML Processor where PHPCS is confused. Until that bug is fixed this is a pragmatic solution to avoiding the need to change actual code around a bug in a linting tool. When that bug is fixed and it no longer gets confused this exclusion should be removed.
- Loading branch information