Skip to content

Add DisallowRenameFunctionSniff for rename() restrictions#18

Merged
jazzsequence merged 12 commits intomainfrom
15-add-rename-sniff
Jul 18, 2025
Merged

Add DisallowRenameFunctionSniff for rename() restrictions#18
jazzsequence merged 12 commits intomainfrom
15-add-rename-sniff

Conversation

@jazzsequence
Copy link
Contributor

@jazzsequence jazzsequence commented Jul 17, 2025

Introduce a new sniff to disallow the use of the rename() function due to file system restrictions on Pantheon. Update coding standards to include this sniff, remove deprecated checks, and add tests to ensure compliance. Implement a testing script and configure automated testing on push events.

NB: WordPress standards already warn against the rename function. We're erroring on the standard because it's a hard block on the platform.

fixes #15

@jazzsequence jazzsequence requested a review from a team as a code owner July 17, 2025 22:46
@jazzsequence jazzsequence changed the title Add DisallowRenameFunctionSniff for rename() restrictions Add DisallowRenameFunctionSniff for rename() restrictions Jul 17, 2025
@jazzsequence jazzsequence self-assigned this Jul 17, 2025
@jazzsequence jazzsequence merged commit 40c96b5 into main Jul 18, 2025
5 checks passed
@jazzsequence jazzsequence deleted the 15-add-rename-sniff branch July 18, 2025 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add rule at Pantheon-WP-Minimum level that blocks use of PHP rename function

1 participant