mamuz / PhpDependencyAnalysis

Static code analysis to find violations in a dependency graph
http://mamuz.github.io/PhpDependencyAnalysis/
MIT License
561 stars 45 forks source link

Return proper Status Code after running command #4

Closed mjacobus closed 9 years ago

mjacobus commented 9 years ago

Hey Marco!

It would be cool if phpda returned a proper code when it finds violations. If it returns 1 (or any nonzero) it could be used in the building process. The build would fail if any violation is found.

I think here you can find an exemple on how to manipulate the return code.

Cheers!

mamuz commented 9 years ago

@mjacobus

..great idea! Thanks for the issue.