-
Notifications
You must be signed in to change notification settings - Fork 26
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
Codacy fails to run PHPCS #955
Comments
Do we need to run PHPCS on Codacy, since we already do it directly in GH? |
Not necessarily, I can deactivate it for now. However, it seems weird that we have this error on Imagify and not WP Rocket 🤔 |
PHPCS is deactivated on Codacy now. Let's see if the analysis works as expected now, and it would be good to understand the root cause of this. |
It's something that never popped-up in WP Rocket because we never used it. We can update the configuration to fix the deprecation, might be a good time to review all its content too, as it has not been updated often. |
Update on this, the WPCS version used on Imagify was still 2.3. After updating to 3 and and fixing the configuration, we have new violations to handle, I'm looking into it. |
We will merge this into develop and with the next release we will do QA there because here we touched everything in the plugin. |
There is no need for QA on the currently open PR, it is specifically focused on style changes that have no impact on functionality of the plugin |
Context
On Codacy, the PHPCS analysis fails. For instance, go here and click the "1 problem" button: https://app.codacy.com/gh/wp-media/imagify-plugin/commits/411070d11c010900e4342e428bc3b4688284339a/issues
The logs say:
It seems to be an issue with
Property "customPropertiesWhitelist" does not exist on sniff WordPress.NamingConventions.ValidVariableName
, maybe from our phpcs.xml?Expected behavior
Codacy checks must run without issues.
Acceptance Criteria
Additional information
Asking ChatGPT, customPropertiesWhitelist might be deprecated and replaced with propertiesToCheck
The text was updated successfully, but these errors were encountered: