def display_reports()

in teamcity/pylint_reporter.py [0:0]


    def display_reports(self, layout):
        """Issues the final PyLint score as a TeamCity build statistic value"""
        try:
            stats = self.linter.stats
            score = getattr(stats, 'global_note', None)

            # Backwards compatibility for pylint version <2.12
            if score is None:
                score = stats['global_note']
        except (AttributeError, KeyError):
            pass
        else:
            self.tc.message('buildStatisticValue', key='PyLintScore', value=str(score))