Create alias fo command psalm
alias psalm="docker run --rm -it -v \${PWD}:/app quay.io/opsway/actions:psalm"
Create config where config_level represents how strict you want Psalm to be.
1
is the strictest,8
is the most lenient
psalm --init src 8
Hide current statistical analysis errors ;)
psalm --set-baseline=psalm-debt.xml
Run local
psalm --show-info=false
Run on GitHub Action, create .github/main.workflow
workflow "Main" {
on = "push"
resolves = ["Psalm"]
}
action "Psalm" {
uses = "docker://quay.io/opsway/actions:psalm"
args = "--show-info=false"
}