Open jrfnl opened 4 years ago
I've had a quick initial look at this sniff with an eye on #552 / PHPCS 4.x.
The sniff currently examines both PHP and JS files, but does not have a test case file for the JS side of things, nor any JS syntax specific sniff code.
Questions: As PHPCS 4.x may still be a year or more before it is released:
js
files.
Review the
WordPressVIPMinimum.Security.Twig
sniff for the following in as far as relevant to that sniff:list
statements::class
use function/const
Other:
Sniff basics, but changes need to be lined up for next major release:
public
properties (#234)Once PHPCS/PHPCSUtils supports this:
match
expressions