PHPCheckstyle / phpcheckstyle

PHPCheckstyle is an open-source tool that helps PHP programmers adhere to certain coding conventions.
https://github.com/PHPCheckstyle/phpcheckstyle
GNU Lesser General Public License v3.0
164 stars 31 forks source link

set maximum errors #84

Closed hafah closed 6 years ago

hafah commented 6 years ago

I'm working in a project with 103 errors apparently. I want to tell codeship to review every pull request if it has more than 103 errors it should not allow for a merge.

This way every programmer is responsible for their errors.

so something like

php run.php --max-errors 103

if there are more than 103 errors return 1

else return 0

tchule commented 6 years ago

You provided the question and the answer, nice job ^^