Skip to content

Commit f1c03ef

Browse files
authored
updates
1 parent 67f216a commit f1c03ef

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/ISSUE_TEMPLATE/phpmd-failure.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ This issue has been automatically created because the Simple WP Site Exporter pl
2929
5. **Unused Code**: Dead code that should be removed
3030

3131
#### WordPress-Specific Configuration
32-
This project uses a WordPress-specific PHPMD configuration (`phpmd-wordpress.xml`) that suppresses WordPress-standard patterns:
32+
This project uses a WordPress-specific PHPMD configuration (`phpmd.xml`) that suppresses WordPress-standard patterns:
3333
- **Superglobals**: WordPress safely uses `$_GET`, `$_POST` with proper sanitization
3434
- **Exit Expressions**: Required for file downloads and security redirects
3535
- **Missing Imports**: WordPress core classes like `WP_Error` are auto-loaded
@@ -60,13 +60,13 @@ This project uses a WordPress-specific PHPMD configuration (`phpmd-wordpress.xml
6060
composer install
6161

6262
# Run PHPMD with WordPress-specific configuration (recommended)
63-
./vendor/bin/phpmd simple-wp-site-exporter.php text phpmd-wordpress.xml
63+
./vendor/bin/phpmd simple-wp-site-exporter.php text phpmd.xml
6464

6565
# Run PHPMD with standard rules (may show WordPress-specific warnings)
6666
./vendor/bin/phpmd simple-wp-site-exporter.php text cleancode,codesize,design,naming,unusedcode
6767

6868
# Generate HTML report with WordPress config
69-
./vendor/bin/phpmd simple-wp-site-exporter.php html phpmd-wordpress.xml --reportfile phpmd-report.html
69+
./vendor/bin/phpmd simple-wp-site-exporter.php html phpmd.xml --reportfile phpmd-report.html
7070

7171
# Check specific rules with high priority
7272
./vendor/bin/phpmd simple-wp-site-exporter.php text codesize --minimumpriority 1

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
6161
- name: Create Release
6262
if: steps.check_release.outputs.exists == 'false'
63-
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8
63+
uses: softprops/action-gh-release@v2
6464
with:
6565
tag_name: v${{ steps.get_version.outputs.version }}
6666
name: Release v${{ steps.get_version.outputs.version }}

.github/workflows/wp-compatibility-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ jobs:
190190
run: |
191191
# Use WordPress-specific PHPMD configuration (WordPress snake_case compatible)
192192
echo "Using WordPress-specific PHPMD configuration (WordPress snake_case compatible)..."
193-
phpmd simple-wp-site-exporter.php text phpmd-wordpress.xml
193+
phpmd simple-wp-site-exporter.php text phpmd.xml
194194
195195
- name: Create issue on PHPMD failure
196196
if: ${{ failure() }}

COMPLIANCE-SUMMARY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This document summarizes all the compliance improvements made to ensure the Simp
1313
- **Missing Imports**: Properly documented WordPress core class usage
1414

1515
### WordPress-Specific PHPMD Configuration
16-
- Created `phpmd-wordpress.xml` custom ruleset
16+
- Created `phpmd.xml` custom ruleset
1717
- Suppresses false positives for WordPress patterns:
1818
- Superglobals usage (with proper sanitization)
1919
- WordPress core class imports (WP_Error, etc.)
@@ -94,7 +94,7 @@ Broke down complex functions into smaller, focused units:
9494
- `readme.txt` - Version and changelog updates
9595

9696
### Configuration Files
97-
- `phpmd-wordpress.xml` - Custom PHPMD ruleset for WordPress
97+
- `phpmd.xml` - Custom PHPMD ruleset for WordPress
9898
- `.github/workflows/wp-compatibility-test.yml` - Updated to use custom PHPMD config
9999

100100
### Documentation

0 commit comments

Comments
 (0)