(self, findings: FindingsMap)
return out
Prints an ordered histogram of "top hits" per tool.

        E.g.:
            r2c.eslint:
              no-undef                  16015 ++++++++++++++++++++++++++++++++++++++++++++++++++
              no-var                     7880 ++++++++++++++++++++++++
              @typescript-eslint/explic  4864 +++++++++++++++
              object-shorthand           1399 ++++
              @typescript-eslint/no-var   157
              Other                      1178 +++

            r2c.flake8:
              B008:                       453 +
              A003                        103
              F405                         62
              B007                         56
              B006                         52
              Other                       116
Prints an ordered histogram of "top hits" per tool.
Prints an ordered histogram of top hits per tool .
def dump(self, findings: FindingsMap) -> Collection[str]:
        """
        Prints an ordered histogram of "top hits" per tool.

        E.g.:
            r2c.eslint:
              no-undef                  16015 ++++++++++++++++++++++++++++++++++++++++++++++++++
              no-var                     7880 ++++++++++++++++++++++++
              @typescript-eslint/explic  4864 +++++++++++++++
              object-shorthand           1399 ++++
              @typescript-eslint/no-var   157
              Other                      1178 +++

            r2c.flake8:
              B008:                       453 +
              A003                        103
              F405                         62
              B007                         56
              B006                         52
              Other                       116
        """
        if not findings:
            return []

        all_hits = self._all_hits(findings)
        max_count = max(h.max_count for h in all_hits)
        check_width = max(h.max_check_width for h in all_hits)
        check_width = max(
            min(check_width, Histo.MAX_CHECK_WIDTH), Histo.MIN_CHECK_WIDTH
        )
        out = []
        for tool_hits in sorted(all_hits, key=(lambda h: h.max_count), reverse=True):
            if tool_hits.hits:
                out.append(click.style(f"{tool_hits.tool_id}:", bold=True))
                for hit in tool_hits.hits:
                    out.append(self._render_hit(hit, max_count, check_width))
                out.append("")
        return out
def dump ( self , findings : FindingsMap ) -> Collection [ str ] : if not findings : return [ ] all_hits = self . _all_hits ( findings ) max_count = max ( h . max_count for h in all_hits ) check_width = max ( h . max_check_width for h in all_hits ) check_width = max ( min ( check_width , Histo . MAX_CHECK_WIDTH ) , Histo . MIN_CHECK_WIDTH ) out = [ ] for tool_hits in sorted ( all_hits , key = ( lambda h : h . max_count ) , reverse = True ) : if tool_hits . hits : out . append ( click . style ( f"{tool_hits.tool_id}:" , bold = True ) ) for hit in tool_hits . hits : out . append ( self . _render_hit ( hit , max_count , check_width ) ) out . append ( "" ) return out