Skip to:
Content

bbPress.org

Changeset 7375 for trunk/phpcs.xml.dist


Ignore:
Timestamp:
11/19/2025 06:00:52 PM (7 months ago)
Author:
johnjamesjacoby
Message:

Tools - Code Improvement: stop ignoring some MySQL prepare sniffs.

This commit ensures that all SQL is correctly prepared, and that specific queries are tagged to be ignored by PHPCS due to them not using the literal $wpdb global as required by the sniffs.

See #3658.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpcs.xml.dist

    r7374 r7375  
    508508    </rule>
    509509
    510     <rule ref="WordPress.DB.PreparedSQL.InterpolatedNotPrepared">
    511         <exclude-pattern>/src/*</exclude-pattern>
    512     </rule>
    513 
    514     <rule ref="WordPress.DB.PreparedSQL.NotPrepared">
    515         <exclude-pattern>/src/*</exclude-pattern>
    516     </rule>
    517 
    518     <rule ref="WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare">
    519         <exclude-pattern>/src/*</exclude-pattern>
    520     </rule>
    521 
    522510    <rule ref="WordPress.DateTime.CurrentTimeTimestamp.Requested">
    523511        <exclude-pattern>/src/*</exclude-pattern>
Note: See TracChangeset for help on using the changeset viewer.