Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 794 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 794 Bytes

Psalm HTML Output

Takes the XML output from Psalm and renders it as HTML.

Build

Installation

First, install xsltproc on your machine (for example, apt install xsltproc).

Then composer require --dev roave/psalm-html-output

Usage

vendor/bin/psalm --output-format=xml | xsltproc vendor/roave/psalm-html-output/psalm-html-output.xsl - > psalm-report.html

Run with Docker

To avoid having to install xsltproc if you already have Docker, first build the image with:

docker build . -t psalm-html-output:latest

Then to generate the HTML:

vendor/bin/psalm --output-format=xml | docker run --rm -i psalm-html-output:latest > psalm-report.html