- autoloader.php load() + migration-runner.php class_to_file(): rename $class
parameter to $class_name to satisfy
Universal.NamingConventions.NoReservedKeywordParameterNames.classFound
- dosing-repository.php line 81: add phpcs:ignore UnfinishedPrepare on
$wpdb->prepare() — {} is a builder-constructed safe value,
not an unfinished placeholder
- phpcs.xml.dist: remove incorrect rule names (WordPress.WP.ReservedKeyword.class,
WordPress.DB.PreparedSQLPlaceholders.ReplacementsFound); fix excluded names to
match actual sniff IDs from CI logs
Agent-Session: claude-adopt-ci-20260616
phpcs:ignore appended after */ on a property docblock causes PHPCS to
discard the docblock entirely, leading to VariableComment.Missing on the
property line. Fix: expand to proper 3-line format with summary on first
line. Constants are unaffected (PHPCS links @var to const differently).
Agent-Session: claude-adopt-ci-20260616
- Single-line /** @var type Desc. */ docblocks on constants/properties trigger
Generic.Commenting.DocComment.MissingShort because PHPCS cannot extract a
short description from a single-line block that starts with a tag.
Fix: add phpcs:ignore inline on all single-line @var blocks:
includes/admin/class-pr-core-settings.php (7 constants)
includes/api/class-pr-core-rest-controller.php (1 property)
includes/migrations/class-pr-core-migration-0004 (4 constants/property)
- peptide-metaboxes.php line 252: add phpcs:ignore InputNotSanitized on
wp_unslash() call — actual sanitization via config['sanitize'] callback
on the following line; PHPCS cannot see through the callable dispatch
Agent-Session: claude-adopt-ci-20260616
PHPCS Squiz.Commenting.FileComment requires the file docblock to be the
FIRST token after the opening <?php tag. Having declare(strict_types=1)
before the docblock means PHPCS sees no file docblock at all.
Fix: in every includes/*.php file, insert a minimal /** @package ... */
docblock immediately after <?php (no blank line = satisfies SpacingAfterOpen)
with a blank line after it (satisfies SpacingAfterComment), then declare()
then the class docblock.
Also fixes peptide-repo-core.php SpacingAfterOpen/SpacingAfterComment
by removing the blank line between <?php and the existing file docblock
and ensuring one blank line after it.
Agent-Session: claude-adopt-ci-20260616