In the last post, we saw how we can use the Microsoft.PowerApps.Checker.PowerShell module to analyze the Solution (Unmanaged and Managed – Online or On-Premise) outside the PowerApps Maker Portal.
The reports generated by the tool are in SARIF format i.e. Static Analysis Results Interchange Format (JSON based) standard for the output format of the static analysis tool. This format originated at Microsoft.
To view the result, we can use the below tools
For Visual Studio :
After installing the extension, navigate to Tools à Import Static Analysis Log files for Error List à Import SARIF file and select the result file generated.
It will list down the details in the Error List Window as shown below.
For Visual Studio Code :
For Visual Studio Code, after installing the SARIF Viewer, simply open the file
Below is how the result is displayed in the UI inside Visual studio code.
Hope it helps..
Great article. Thank you! After importing the SARIF file into Visual Studio or VSCode the paths to the problematic files are wrong. Is there a way that these can be mapped to paths in an already unpacked solution (held in source control)?
Documentation on the SARIF file format and the Visual Studio or VS Code extensions is very sparse!
LikeLike
Did you check this Phil https://github.com/microsoft/sarif-vscode-extension/blob/master/src/FileMapper.ts
LikeLike
It’s a pity that I have to use VS or VS code to view these files…
LikeLike