codegram/pelusa — pull request #25 by carlosramireziii (2012-03-23 04:11:10+00:00)
Title: Return reporters from Runner

After the CLI interface was [added](https://github.com/codegram/pelusa/commit/b057b1d058f7ad03ca3578b5035ab7c8a4af031f), the `Runner#run` method returned an exit code instead of the value of each reporter's `report` method. This change prohibits the use of other types of reporters which do not print to stdout. For example, if `RubyReporter` is used there would be no way to access or capture its output after the files have been analyzed because those reporters are not exposed by the `Runner` class itself nor are they returned from the `run` method.

I changed the `Runner#run` method to return the list of reporters. The command-line interface should still work because the `Cli` class assumes the responsibility of running the reporters' reports and also returning the appropriate exit code (which I think is appropriate since the exit code is only useful to the bin command).

Looking forward to hearing your thoughts on this change. Thanks!