longyiqi/oclint — Issue #13: -stats command line flag is ignored
Author: ghorvath
Created: 2012-02-03 19:36:40+00:00
State: open

-stats flag has no effect. The corresponding method (reportDIagnostics) is never called in code.

I'd suggest a simple fix that always emits statistics to stdout, even if -o was specified. It'd be nice to do this only once all files had been examined, but that's a bit hard to do since the reporter is not a singleton (which I can't quite seem to figure out). Doesn't seem like there's any reason to create a new Reporter instance each time you need it (unless I'm missing something). Those classes could easily be static.