add_violation( $file_path, $line_number, "Use rsxrealpath() instead of realpath() RSpade uses symlinks for the /rsx/ directory mapping: - /var/www/html/system/rsx -> /var/www/html/rsx (symlink) realpath() resolves symlinks to their physical paths, which breaks path-based comparisons and deduplication when files are accessed via different symlink paths. rsxrealpath() normalizes paths without resolving symlinks, ensuring consistent path handling throughout the framework.", $snippet, "Replace: realpath(\$path) With: rsxrealpath(\$path) If you need symlink resolution for security (path traversal prevention), add: // @REALPATH-EXCEPTION - Security: path traversal prevention \$real_path = realpath(\$path);", 'high' ); } } } }