rinq / rinq-php

A cross-language command bus and distributed ephemeral data store.
Other
4 stars 0 forks source link

Add phpstan to the build toolchain. #7

Open jmalloc opened 7 years ago

jmalloc commented 7 years ago

https://github.com/phpstan/phpstan

PHPStan is a static analyser that I'd like to try instead of Scrutinizer. It's be handy if it were executed in the prepare and ci make targets.

I've never tried it before, but I'm hopeful it will be a good replacement for Scrutinizer, since we typically only use that for it's static analysis features.

jmalloc commented 7 years ago

See https://github.com/phpstan/phpstan#rule-levels specifically. We'd want to run at least rule-level 4, but we should give 5 a go.