denzyldick / phanalist

Performant static analyzer for PHP, which is extremely easy to use. It helps you catch common mistakes in your PHP code.
https://denzyldick.github.io/phanalist/
MIT License
127 stars 5 forks source link

CD/CI output format. #41

Closed denzyldick closed 2 months ago

denzyldick commented 7 months ago

To successfully implement Phanalist into a CI/CD pipeline Phanalist should be able to format the output into different formats that are supported by all of the major CI/CD platforms.

These formats are:

SerheyDolgushev commented 7 months ago

Right now, Phanalist returns 0 exit code if no violations were found, and 70 exit code if any violations were found: https://github.com/denzyldick/phanalist/blob/4ebc62711e60b0d277846859f96ed55dbf1c8cd4/src/main.rs#L69-L73. And the main intention for this was to use it in CI/CD integrations. Do you think, in addition to this, we should return the data about found violations in CI/CD-specific format?