-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Sniff to ensure file only uses PHP native functions or functions defined in the current file #315
Comments
Notes which I previously already shared about this feature request:
Source: https://core.trac.wordpress.org/ticket/61694#comment:8 Regarding PHPCSUtils 1.2.0:The specific utility in PHPCSUtils 1.2.0 which I'm talking about is a namespace aware Additionally, PHPCSUtils 1.2.0 is expected to include a Mind: it will still take a while before PHPCSUtils 1.2.0 is released (I'm currently still finishing off the 1.1.0 release). Other caveats/Open questions
|
Is your feature request related to a problem?
In WordPress, there are a handful of files that need to function on their own. A sniff that detects the use of functions besides those available from PHP itself and those declared in the file itself.
Describe the solution you'd like
File 1 which would pass without issue:
File 2 which would raise an issue
Additional context (optional)
This is discussed in https://core.trac.wordpress.org/ticket/61694 which is a follow up to prevent issues like the one described in https://core.trac.wordpress.org/ticket/61680
The text was updated successfully, but these errors were encountered: