$20 GRAYBYTE WORDPRESS FILE MANAGER $95

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/prospector/formatters/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/prospector/formatters//vscode.py
import os
import re

from prospector.formatters.base import Formatter


class VSCodeFormatter(Formatter):

    """
    This formatter outputs messages in the same way as vscode prospector linter expects.
    """

    def render(self, summary=True, messages=True, profile=False):
        # this formatter will always ignore the summary and profile
        cur_loc = None
        output = []

        for message in sorted(self.messages):
            if cur_loc != message.location.path:
                cur_loc = message.location.path
                module_name = self._make_path(message.location.path).replace(os.path.sep, ".")
                module_name = re.sub(r"(\.__init__)?\.py$", "", module_name)

                header = "************* Module %s" % module_name
                output.append(header)

            template = "%(line)s,%(character)s,%(code)s,%(code)s:%(source)s %(message)s"
            output.append(
                template
                % {
                    "line": message.location.line,
                    "character": message.location.character,
                    "source": message.source,
                    "code": message.code,
                    "message": message.message.strip(),
                }
            )

        return "\n".join(output)

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
14 Aug 2025 9.24 PM
root / root
0755
__pycache__
--
14 Aug 2025 9.24 PM
root / root
0755
__init__.py
0.429 KB
17 Apr 2025 8.10 PM
root / root
0644
base.py
1.223 KB
17 Apr 2025 8.10 PM
root / root
0644
emacs.py
0.749 KB
17 Apr 2025 8.10 PM
root / root
0644
grouped.py
1.21 KB
17 Apr 2025 8.10 PM
root / root
0644
json.py
0.908 KB
17 Apr 2025 8.10 PM
root / root
0644
pylint.py
1.7 KB
17 Apr 2025 8.10 PM
root / root
0644
text.py
2.949 KB
17 Apr 2025 8.10 PM
root / root
0644
vscode.py
1.264 KB
17 Apr 2025 8.10 PM
root / root
0644
xunit.py
2.374 KB
17 Apr 2025 8.10 PM
root / root
0644
yaml.py
0.599 KB
17 Apr 2025 8.10 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF