add_violation( $file_path, 0, "Unauthorized file '{$filename}' found in project root. Only whitelisted build configuration files should exist in the root directory.", null, "This file appears to be a one-off test script that should be removed before commit. " . "LLM agents often create test files in the root directory for testing specific features. " . "These should be removed or moved to proper test directories. " . "If this file is legitimately needed in the root, add '{$filename}' to the whitelist in config/rsx.php under 'code_quality.root_whitelist'.", 'medium' ); } } }