Currently, if an analyzer produces more than 50 comments in a CL, the comments are not sent, but the analyzer is still marked as success and there's no clear indication of why the comments weren't sent.
One option: in gerrit/rpc_report_results.cc, when sending results, for analyzers that had too many results, send a single message instead saying "analyzer X produced too many comments"
Another option: Extract a "max comments" constant out to some common place, and use it in analyzers to abort or truncate analysis.