Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -43,9 +43,8 @@ def run_cppcheck(source_code: str):
|
|
43 |
# Check for the code checker tool
|
44 |
ensure_tool("cppcheck")
|
45 |
|
46 |
-
|
47 |
-
|
48 |
-
# choose suffix based on extension
|
49 |
ext = ".c" if source_code.strip().startswith("#include") and ".c" in source_code_name else ".cpp"
|
50 |
tf = NamedTemporaryFile(suffix=ext, delete=False)
|
51 |
print("ext" + ext)
|
|
|
43 |
# Check for the code checker tool
|
44 |
ensure_tool("cppcheck")
|
45 |
|
46 |
+
print(source_code)
|
47 |
+
|
|
|
48 |
ext = ".c" if source_code.strip().startswith("#include") and ".c" in source_code_name else ".cpp"
|
49 |
tf = NamedTemporaryFile(suffix=ext, delete=False)
|
50 |
print("ext" + ext)
|