Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 7e3b19a

Browse files
authored
Disable suspicious commands for now (#1204)
* Disable suspicious commands for now This is not quite the right place for the code check to go. --------- Signed-off-by: nigel brown <nigel@stacklok.com>
1 parent a9951dd commit 7e3b19a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/codegate/pipeline/comment/output.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
)
1313
from codegate.pipeline.base import PipelineContext
1414
from codegate.pipeline.output import OutputPipelineContext, OutputPipelineStep
15-
from codegate.pipeline.suspicious_commands.suspicious_commands import check_suspicious_code
1615
from codegate.storage import StorageEngine
1716
from codegate.utils.package_extractor import PackageExtractor
1817

@@ -52,15 +51,16 @@ async def _snippet_comment(self, snippet: CodeSnippet, context: PipelineContext)
5251
"""Create a comment for a snippet"""
5352
comment = ""
5453

55-
if (
56-
snippet.filepath is None
57-
and snippet.file_extension is None
58-
and "filepath" not in snippet.code
59-
and "existing code" not in snippet.code
60-
):
61-
new_comment, is_suspicious = await check_suspicious_code(snippet.code, snippet.language)
62-
if is_suspicious:
63-
comment += new_comment
54+
# if (
55+
# snippet.filepath is None
56+
# and snippet.file_extension is None
57+
# and "filepath" not in snippet.code
58+
# and "existing code" not in snippet.code
59+
# ):
60+
# new_comment, is_suspicious = await check_suspicious_code(snippet.code,
61+
# snippet.language)
62+
# if is_suspicious:
63+
# comment += new_comment
6464

6565
snippet.libraries = PackageExtractor.extract_packages(snippet.code, snippet.language)
6666

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy