Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/python/mozlint/mozlint/formatters/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 845 B image not shown  

Quelle  __init__.py   Sprache: Python

 
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

import json

from ..result import IssueEncoder
from .compact import CompactFormatter
from .stylish import StylishFormatter
from .summary import SummaryFormatter
from .treeherder import TreeherderFormatter
from .unix import UnixFormatter


class JSONFormatter(object):
    def __call__(self, result):
        return json.dumps(result.issues, cls=IssueEncoder)


all_formatters = {
    "compact": CompactFormatter,
    "json": JSONFormatter,
    "stylish": StylishFormatter,
    "summary": SummaryFormatter,
    "treeherder": TreeherderFormatter,
    "unix": UnixFormatter,
}


def get(name, **fmtargs):
    return all_formatters[name](**fmtargs)

Messung V0.5
C=96 H=100 G=97

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.