Skip to content

feat: Add wp search-replace file subcommand for SQL file processing #417

feat: Add wp search-replace file subcommand for SQL file processing

feat: Add wp search-replace file subcommand for SQL file processing #417

Triggered via pull request May 10, 2026 01:21
Status Failure
Total duration 26s
Artifacts

code-quality.yml

on: pull_request
code-quality  /  Lint GitHub Actions workflows
6s
code-quality / Lint GitHub Actions workflows
code-quality  /  Lint PHP files
14s
code-quality / Lint PHP files
code-quality  /  Lint Gherkin Feature files
12s
code-quality / Lint Gherkin Feature files
code-quality  /  Spell check
7s
code-quality / Spell check
code-quality  /  PHPCS
19s
code-quality / PHPCS
code-quality  /  PHPStan
23s
code-quality / PHPStan
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 20 warnings
code-quality / Spell check
Process completed with exit code 2.
code-quality / PHPCS
Process completed with exit code 1.
code-quality / PHPCS: src/WP_CLI/FileSearchReplacer.php#L165
The use of strlen() inside a loop condition is not allowed; assign the return value to a variable and use the variable in the loop condition instead
code-quality / PHPCS
Process completed with exit code 2.
code-quality / Spell check: tests/FileSearchReplacerTest.php#L212
"automattic" should be "automatic".
code-quality / Spell check: tests/FileSearchReplacerTest.php#L85
"automattic" should be "automatic".
code-quality / Spell check: tests/FileSearchReplacerTest.php#L84
"automattic" should be "automatic".
code-quality / Spell check: tests/FileSearchReplacerTest.php#L75
"automattic" should be "automatic".
code-quality / Spell check: tests/FileSearchReplacerTest.php#L74
"automattic" should be "automatic".
code-quality / Spell check: tests/FileSearchReplacerTest.php#L65
"automattic" should be "automatic".
code-quality / Spell check: tests/FileSearchReplacerTest.php#L64
"automattic" should be "automatic".
code-quality / Spell check: src/WP_CLI/FileSearchReplacer.php#L6
"Automattic" should be "Automatic".
code-quality / Spell check: src/Search_Replace_File_Command.php#L10
"Automattic" should be "Automatic".
code-quality / PHPCS: src/WP_CLI/FileSearchReplacer.php#L201
Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
code-quality / PHPCS: src/WP_CLI/FileSearchReplacer.php#L200
Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
code-quality / PHPCS: src/WP_CLI/FileSearchReplacer.php#L193
Stand-alone post-increment statement found. Use pre-increment instead: ++$current_content_index.
code-quality / PHPCS: src/WP_CLI/FileSearchReplacer.php#L192
Stand-alone post-increment statement found. Use pre-increment instead: ++$content_byte_count.
code-quality / PHPCS: src/WP_CLI/FileSearchReplacer.php#L184
Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
code-quality / PHPCS: src/WP_CLI/FileSearchReplacer.php#L182
Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
code-quality / PHPCS: src/WP_CLI/FileSearchReplacer.php#L176
Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
code-quality / PHPCS: src/WP_CLI/FileSearchReplacer.php#L175
Equals sign not aligned with surrounding assignments; expected 14 spaces but found 1 space
code-quality / PHPCS: src/WP_CLI/FileSearchReplacer.php#L170
Equals sign not aligned with surrounding assignments; expected 8 spaces but found 7 spaces
code-quality / PHPCS: src/WP_CLI/FileSearchReplacer.php#L119
Equals sign not aligned correctly; expected 1 space but found 2 spaces