Skip to content
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

Coding Standards: WordPress DB rules #968

Open
remyperona opened this issue Feb 5, 2025 · 0 comments
Open

Coding Standards: WordPress DB rules #968

remyperona opened this issue Feb 5, 2025 · 0 comments

Comments

@remyperona
Copy link
Contributor

The configuration currently contains a number of global exclusions about WP DB queries. The migration to PHPCSv3 also made new related issues show up in the analysis.

To-Do:

  • Remove the global exclusions from the config file
  • Review the errors showing in the analysis
  • Either fix the issue or ignore it using the inline comment
WordPress.DB.PreparedSQL.InterpolatedNotPrepared
WordPress.DB.DirectDatabaseQuery.DirectQuery 
WordPress.DB.DirectDatabaseQuery.NoCaching
WordPress.DB.PreparedSQL.NotPrepared 
WordPress.DB.DirectDatabaseQuery.SchemaChange 
WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare
WordPress.DB.SlowDBQuery.slow_db_query_meta_query
WordPress.DB.SlowDBQuery.slow_db_query_meta_key
WordPress.DB.SlowDBQuery.slow_db_query_meta_value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant