-
Notifications
You must be signed in to change notification settings - Fork 40
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
Bump VariableAnalysis to ^2.9.0 to allow use of the backported options #588
Comments
Note that the latest VariableAnalysis is 2.11.10, and it includes a lot of the 3.x benefits backported into 2.x. Edit: 2.11.1 was made the minimum version of VA in VIPCS 2.3.3, so this just needs configuring. |
Ref: #691 |
I've just been looking at this, but this ticket looks like a duplicate of Automattic/vip-go-ci#120 (different repo), which was fixed by a combination of PR #690 (VA configuration) and #691 (VA version bump), both of which were included in the 2.3.3 release. I have a feeling this ticket should be closed as fixed in 2.3.3. What am I missing ? |
I agree - this looks like it was handled with later PRs (which just didn't mark this one as fixed). |
Marking as a duplicate, since #691 is already associated with the 2.3.3 milestone. |
What problem would the enhancement address for VIP?
When template partials are
require
'd from within a class, then the partial may use$this->
to insert display a value. At PHP runtime, it works, but for PHPCS analysis, it sees a PHP file with an undefined$this
and so reports it via the VariableAnalysis package. Technically it's correct, and while it could be ignored, it's not practical or desirable to do that.Describe the solution you'd like
VariableAnalysis 2.9.0 includes two new options that can control whether these violations are raised. I'd like to have VIPCS require this update in package, so to be able to make use of these options in the default configuration of VIPCS.
VIPCS currently requires
^2.8.3
, so we'd need to bump the minimum version.What code should be reported as a violation?
–
What code should not be reported as a violation?
Don't report on
$this
:Don't report on
$args
(new feature in WP 5.5):The text was updated successfully, but these errors were encountered: