Benign pypi Download

clangd-tidy 1.0.0

“A faster alternative to clang-tidy”

Imports Python's subprocess moduleCalls Python os.getcwd

Evidence

HTTP Content-Length header json_rpc_endpoint.py · lines 1–16
⋯5 lines
6from . import lsp_structs
7
8JSON_RPC_REQ_FORMAT = "Content-Length: {json_string_len}\r\n\r\n{json_string}"
9LEN_HEADER = "Content-Length: "
10TYPE_HEADER = "Content-Type: "
⋯6 lines
Python redirects stdin to custom stream json_rpc_endpoint.py · lines 26–43
26:26… endpoint implementation. Responsible to recieve and send JSON RPC messages, as described in the
27 protocol. More information can be found: https://www.jsonrpc.org/
28 '''
29 def __init__(self, stdin, stdout):
30 self.stdin = stdin
31 self.stdout = stdout
32 self.read_lock = threading.Lock()
33 self.write_lock = threading.Lock()
⋯10 lines
Parses JSON data with Python json_rpc_endpoint.py · lines 92–95
92:102… ng size")
93
94 jsonrpc_res = self.stdout.read(message_size).decode("utf-8")
95 return json.loads(jsonrpc_res)
Imports Python's subprocess module main_cli.py · lines 1–13
1#!/usr/bin/env python3
2
3import argparse
4import os
5import signal
6import subprocess
7import sys
8import threading
⋯5 lines
References a public code-forge URL main_cli.py · lines 133–140
133:13… ="clangd-tidy",
134 description="Run clangd with clang-tidy and output diagnostics. This aims to serve as a faster alternative to clang-tidy.",
135 epilog="Find more information on https://github.com/lljbash/clangd-tidy.",
136 )
137 parser.add_argument(
138 "-V", "--version", action="version", version=f"%(prog)s {__version__}"
139 )
140 parser.ad …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.