Takes the standard ReSharper CLT output and converts it into a human-readable HMTL report or console output.
The package can be used inside docker. See the example.
-
Generate a report file using the standard ReSharper CLT commands, e.g.:
inspectCode.exe -o="<path_to_report_xml>" <path_to_solution>
-
Run the powershell script:
write-console.ps1 -ResharperReport <path_to_report_xml> -Colorize -FailOnIssues
-
See the console output
inspectCode.exe -o=".\example-resharper-output\resharper-output.xml" ..\GitlabTelegramChannel\src\TGramIntegration.sln
write-console.ps1 -ResharperReport .\example-resharper-output\resharper-output.xml -OutputFile .\example-report\report.html
write-console.ps1
supports the following options
Type: string
Description: Path to ReSharper CTL output xml file
Mandatory: yes
Type: boolean
Description: Should the output be colorized
Default: false
Type: boolean
Description: Should the 1
exit code be returned in case of any issues detected by ReSharper
Default: false
-
Generate a report file using the standard ReSharper CLT commands, e.g.:
inspectCode.exe -o="<path_to_report_xml>" <path_to_solution>
-
Run the powershell script:
make-html.ps1 -ResharperReport <path_to_report_xml> -OutputFile <path_to_report_html> -FailOnIssues
-
Use the generated HTML file as desired
inspectCode.exe -o=".\example-resharper-output\resharper-output.xml" ..\GitlabTelegramChannel\src\TGramIntegration.sln
make-html.ps1 -ResharperReport .\example-resharper-output\resharper-output.xml -OutputFile .\example-report\report.html -FailOnIssues
make-html.ps1
supports the following options
Type: string
Description: Path to ReSharper CTL output xml file
Mandatory: yes
Type: string
Description: Path to the resulting HTML file
Mandatory: yes
Type: string
Description: Project name to show in the resulting HTML file
Mandatory: no
Default: Unknown project
Type: string
Description: Items in the resulting HTML report are intended to work as hyperlinks and target to files at some source control (BitBucket/GitHub/GitLab). Use this parameter to specify address of your source control. The template strings has the following parameters
{0}
- will be replaced with a file name{1}
- will be replaced with a line number
Mandatory: no
Example:
-UrlFormat "https://github.com/winseros/GitlabTelegramChannel/tree/v1.0.1/src/{0}#L{1}"
Default: {0}#{1}
Type: boolean
Description: Should the 1
exit code be returned in case of any issues detected by ReSharper
Default: false