diff --git a/package.json b/package.json index 5ecca68..f408644 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bsu/BSUWordPressCS", - "version": "1.2.0", + "version": "1.3.0", "description": "Custom PHPCS sniffs for BSU WordPress standards", "author": "BSU|NTC Web Services", "license": "Copyright Web Services, Bemidji State University - All Rights Reserved. Unauthorized copying of any files or code in this package, via any medium is strictly prohibited.", diff --git a/ruleset.xml b/ruleset.xml index 2e2cf1f..8a2052a 100644 --- a/ruleset.xml +++ b/ruleset.xml @@ -22,11 +22,11 @@ Covers: functions (bsu_), classes (BSU_), constants (BSU_). Hook names and global variables are excluded: - - Hook names: WordPress core hooks (the_content, gallery_style, etc.) cannot be - renamed. We hook into them via add_filter/apply_filters — not defining new ones. - - Global variables: WordPress core globals ($post, $wpdb, $wp_query) are accessed - with the global keyword inside methods. The rule cannot distinguish accessing an - existing global from declaring a new one. + - Hook names: WordPress core hooks cannot be renamed; hooking into them via + add_filter/apply_filters produces unavoidable false positives. + - Global variables: WordPress core globals ($post, $wpdb, $wp_query) accessed + with the global keyword inside methods cannot be distinguished from new + declarations by the rule. --> @@ -36,13 +36,16 @@ + */tests/*\.php$ + */crons/*\.php$ */template-parts/*\.php$ */template-*\.php$ */templateincludes-*\.php$ + */blocks-component-panel-postmeta/*\.php$ + */blocks/*\.php$ */functions/class-bsu\.php$ */Sniffs/*\.php$ */vendor/*\.php$