PHP 8.2.30
Preview: emacs.py Size: 767 B
/proc/thread-self/root/opt/cloudlinux/venv/lib/python3.11/site-packages/prospector/formatters/emacs.py

from prospector.formatters.text import TextFormatter

__all__ = ("EmacsFormatter",)


class EmacsFormatter(TextFormatter):
    def render_message(self, message):
        output = [
            "%s:%s:%d:"
            % (
                self._make_path(message.location.path),
                message.location.line,
                (message.location.character or 0) + 1,
            ),
            "    L%s:%s %s: %s - %s"
            % (
                message.location.line or "-",
                message.location.character if message.location.line else "-",
                message.location.function,
                message.source,
                message.code,
            ),
            "    %s" % message.message,
        ]

        return "\n".join(output)

Directory Contents

Dirs: 1 × Files: 10

Name Size Perms Modified Actions
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
1.22 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
767 B lrw-r--r-- 2026-01-20 13:01:48
Edit Download
1.21 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
930 B lrw-r--r-- 2026-01-20 13:01:48
Edit Download
1.70 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
2.95 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
1.26 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
2.37 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
613 B lrw-r--r-- 2026-01-20 13:01:48
Edit Download
439 B lrw-r--r-- 2026-01-20 13:01:48
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).