This page contains Windows bias

About This Page

This page is part of the Azure documentation. It contains code examples and configuration instructions for working with Azure services.

Bias Analysis

Bias Types:
⚠️ windows_first
⚠️ windows_tools
⚠️ missing_linux_example
Summary:
The documentation page demonstrates a Windows bias by referencing Windows-specific APIs and tools (such as ShellExecuteA and Windows.System.Launcher), providing C# and C++ code that assumes Windows environments, and linking to PowerShell scripts without mentioning Linux or cross-platform alternatives. There are no Linux-specific instructions, examples, or notes about running the SDK or tools on Linux or macOS.
Recommendations:
  • Add Linux/macOS equivalents for launching files (e.g., using xdg-open or open commands) in the 'Connect to ARR inspector' section.
  • Include Bash or shell script examples alongside PowerShell scripts, or provide cross-platform scripting guidance.
  • Explicitly mention cross-platform compatibility (or limitations) for the SDK and APIs, and provide guidance for Linux/macOS users where relevant.
  • Avoid using Windows-specific APIs (like ShellExecuteA) in C++ examples, or provide alternative code for other platforms.
  • Add a section or callouts for Linux/macOS users, highlighting any differences or additional steps required.
GitHub Create pull request

Scan History

Date Scan ID Status Bias Status
2025-08-17 00:01 #83 in_progress ✅ Clean
2025-07-13 21:37 #48 completed ✅ Clean
2025-07-12 23:44 #41 in_progress ❌ Biased

Flagged Code Snippets

async void ConnectToArrInspector(RenderingSession session) { string htmlPath = await session.ConnectToArrInspectorAsync(); #if WINDOWS_UWP UnityEngine.WSA.Application.InvokeOnUIThread(async () => { var file = await Windows.Storage.StorageFile.GetFileFromPathAsync(htmlPath); await Windows.System.Launcher.LaunchFileAsync(file); }, true); #else InvokeOnAppThreadAsync(() => { System.Diagnostics.Process.Start("file:///" + htmlPath); }); #endif }
void ConnectToArrInspector(ApiHandle<RenderingSession> session) { session->ConnectToArrInspectorAsync([](Status status, std::string result) { if (status == Status::OK) { // Launch the html file with default browser std::string htmlPath = "file:///" + result; ShellExecuteA(NULL, "open", htmlPath.c_str(), NULL, NULL, SW_SHOWDEFAULT); } else { printf("Failed to connect to ARR inspector!"); } }); }