Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ def analyze_code_complexity(code: str) -> list:
|
|
| 19 |
"""Analyzes the cyclomatic complexity of functions in the given code.
|
| 20 |
|
| 21 |
Args:
|
| 22 |
-
code
|
| 23 |
|
| 24 |
Returns:
|
| 25 |
list: A list of warnings if any function has high complexity.
|
|
@@ -41,7 +41,7 @@ def detect_code_issues(code: str) -> list:
|
|
| 41 |
undefined variables, unused imports, and function complexity.
|
| 42 |
|
| 43 |
Args:
|
| 44 |
-
code
|
| 45 |
|
| 46 |
Returns:
|
| 47 |
list: A list of detected issues in the code.
|
|
|
|
| 19 |
"""Analyzes the cyclomatic complexity of functions in the given code.
|
| 20 |
|
| 21 |
Args:
|
| 22 |
+
code: The Python source code as a string.
|
| 23 |
|
| 24 |
Returns:
|
| 25 |
list: A list of warnings if any function has high complexity.
|
|
|
|
| 41 |
undefined variables, unused imports, and function complexity.
|
| 42 |
|
| 43 |
Args:
|
| 44 |
+
code: The Python source code to analyze.
|
| 45 |
|
| 46 |
Returns:
|
| 47 |
list: A list of detected issues in the code.
|