Skip to:
Content

BuddyPress.org

Changeset 14242 for trunk/phpcs.xml.dist


Ignore:
Timestamp:
08/02/2026 02:15:42 PM (2 months ago)
Author:
espellcaste
Message:

WPCS: intentional formatting and generated block assets are skipped.

  • Exclude the complete Generic.WhiteSpace.ScopeIndent sniff so PHPCBF preserves intentional nested bp_get_*() indentation.
  • Exclude generated block index.asset.php files from PHPCS and PHPCBF as whole files.

Props espellcaste.
See #9174.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpcs.xml.dist

    r14124 r14242  
    3535        <exclude-pattern>*/**/tests/</exclude-pattern>
    3636        <exclude-pattern>*/**/deprecated/</exclude-pattern>
     37        <exclude-pattern>*/src/bp-*/blocks/*/index.asset.php</exclude-pattern>
    3738
    3839        <!-- Exclude those rules. -->
    … …  
    4950
    5051                <exclude name="WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound" />
    51                 <exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" />
    52                 <exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact" />
     52                <exclude name="Generic.WhiteSpace.ScopeIndent" />
    5353
    5454                <!-- Usually harmless, let's skip them. -->
Note: See TracChangeset for help on using the changeset viewer.