INNER CODE UNIT · Python

_print_results

nf-core/tools · nf_core/components/lint/__init__.py:226

    def _print_results(self, show_passed=False, sort_by="test", plain_text=False):
        """Print linting results to the command line.

        Uses the ``rich`` library to print a set of formatted tables to the command line
        summarising the linting results.
        """

        log.debug("Printing final results")

        sort_order = ["lint_test", "component_name", "message"]
        if sort_by == "module" or sort_by == "subworkflow":
            sort_order = ["component_name", "lint_test", "message"]

        # Sort the results
        self.passed.sort(key=operator.attrgetter(*sort_order))
        self.warned.sort(key=operator.attrgetter(*sort_order))
        self.failed.sort(key=operator.attrgetter(*sort_order))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…